an ASP.NET Open Source CMS & eCommerce platform
Search:
Last Post 5/21/2009 10:20:39 AM By jsduggan. 10 replies.
5/20/2009 9:42:03 AM
jsduggan
Posts: 52
Joined: 3/19/2009
Error Message Help
Luke,
 
I got (3) of these messages within the last hour.  I looked through it but cannot make much sense of it.  Can you please take a look at it for me and let me know the problem?  Thank you.
 
Type : System.Web.HttpUnhandledException, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
Message : Exception of type 'System.Web.HttpUnhandledException' was thrown.
Source : System.Web
Help link :
ErrorCode : -2147467259
Data : System.Collections.ListDictionaryInternal
TargetSite : Boolean HandleError(System.Exception)
Stack Trace :    at System.Web.UI.Page.HandleError(Exception e)
  at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
  at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
  at System.Web.UI.Page.ProcessRequest()
  at System.Web.UI.Page.ProcessRequest(HttpContext context)
  at ASP.store_paypalipnhandler_aspx.ProcessRequest(HttpContext context) in c:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\root\fbc07b59\23ff2ef1\App_Web_at6k_hbf.23.cs:line 0
  at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
  at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
Additional Info:
MachineName : CT11648
TimeStamp : 5/20/2009 4:32:42 PM
FullName : Microsoft.Practices.EnterpriseLibrary.ExceptionHandling, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null
AppDomainName : /LM/W3SVC/800143123/Root-1-128873107596825000
ThreadIdentity :
WindowsIdentity : NT AUTHORITY\NETWORK SERVICE
       Inner Exception
       ---------------
       Type : System.Collections.Generic.KeyNotFoundException, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
       Message : The given key was not present in the dictionary.
       Source : mscorlib
       Help link :
       Data : System.Collections.ListDictionaryInternal
       TargetSite : Void ThrowKeyNotFoundException()
       Stack Trace :    at System.ThrowHelper.ThrowKeyNotFoundException()
          at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
          at PaypalIPNHandler.Page_Load(Object sender, EventArgs e) in c:\temp\JeffWeb\Web\Store\PaypalIPNHandler.aspx.cs:line 40
          at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)
          at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
          at System.Web.UI.Control.OnLoad(EventArgs e)
          at System.Web.UI.Control.LoadRecursive()
          at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Category: General
Priority: 0
EventId: 100
Severity: Error
Title:Enterprise Library Exception Handling
Machine: CT11648
Application Domain: /LM/W3SVC/800143123/Root-1-128873107596825000
Process Id: 62188
Process Name: c:\windows\system32\inetsrv\w3wp.exe
Win32 Thread Id: 66568
- Show quoted text -
Thread Name:
Extended Properties: Url - https://www.portolacoffee.com/Store/PaypalIPNHandler.aspx
RawUrl - /Store/PaypalIPNHandler.aspx
UseAgent -
UrlReferrer -
IPAddress - 66.211.170.66
5/20/2009 10:50:07 AM
lukezy
Posts: 2109
Joined: 6/12/2007
Location:WA, US
Re: Error Message Help
Line 40 is string orderNumber = values["custom"];

This means that you set up your PayPal with DSC but you have the PayPal transactions that are not created by DSC. All the DSC PayPal transaction will have custom field as the order number. You can simply ignore this if it's true.

DotShoppingCart Staff
5/20/2009 11:28:27 AM
jsduggan
Posts: 52
Joined: 3/19/2009
Re: Error Message Help
So is there anything I need to do to correct the configuration?  The reason I ask is I setup DSC Paypal about a week ago.  My site is new and I have no real customers coming to it to place orders yet.  However, starting this morning, I have now gotten 8 of these same error messages.  I am wondering why I am just now getting them with such high frequency.  I got 8 within a couple of hours.  Thanks.
5/20/2009 12:32:49 PM
lukezy
Posts: 2109
Joined: 6/12/2007
Location:WA, US
Re: Error Message Help
As I said it is because you had non DSC transactions going through your PayPal account. If you don't like to receive the these error message any more, you can change store\PayPalIPNHandler.aspx line 40
 
from
 
string orderNumber = values["custom"];
 
to
 
if (!values.ContainsKey("custom"))
    return;
string orderNumber = values["custom"];
DotShoppingCart Staff
5/20/2009 1:10:51 PM
jsduggan
Posts: 52
Joined: 3/19/2009
Re: Error Message Help
I checked my Paypal account and I had one order go through my paypal account on 5/19 that was not placed through DSC.  Is it normal that I have gotten 15 of these messages today for 1 order that posted to my Paypal account yesterday?
 Thanks.
5/20/2009 1:20:27 PM
lukezy
Posts: 2109
Joined: 6/12/2007
Location:WA, US
Re: Error Message Help
Yes, PayPal keeps sending notification when it's not acknowledged while DSC doesn't know anything about this order so it just errored out.
DotShoppingCart Staff
5/20/2009 2:02:15 PM
jsduggan
Posts: 52
Joined: 3/19/2009
Re: Error Message Help
I see.  Thanks Luke!
5/20/2009 2:35:00 PM
jsduggan
Posts: 52
Joined: 3/19/2009
Re: Error Message Help
Luke,
 
I went into the file to make the changes you suggested, but this is all the code that particular file contains:

There is no "Line 40" and nothing that resembles the code you posted.  This is the "PaypalIPNHandler.aspx" file.

 

<%

<font color="#0000ff" size="2">@ <font color="#a31515" size="2">page <font color="#ff0000" size="2">language<font color="#0000ff" size="2">="C#" <font color="#ff0000" size="2">autoeventwireup<font color="#0000ff" size="2">="true" <font color="#ff0000" size="2">inherits<font color="#0000ff" size="2">="PaypalIPNHandler, App_Web_d2kfcezd" %><font color="#0000ff" size="2">

<!

<

<

<font color="#a31515" size="2">DOCTYPE <font color="#ff0000" size="2">html <font color="#ff0000" size="2">PUBLIC <font color="#0000ff" size="2">"-//W3C//DTD XHTML 1.0 Transitional//EN" <font color="#0000ff" size="2">"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><font color="#a31515" size="2">html <font color="#ff0000" size="2">xmlns<font color="#0000ff" size="2">="http://www.w3.org/1999/xhtml" <font color="#0000ff" size="2">><font color="#a31515" size="2">head <font color="#ff0000" size="2">runat<font color="#0000ff" size="2">="server">

 

</

<

<font color="#0000ff" size="2"><<font color="#a31515" size="2">title<font color="#0000ff" size="2">>Paypal IPN Handler<font color="#0000ff" size="2"></<font color="#a31515" size="2">title<font color="#0000ff" size="2">><font color="#a31515" size="2">head<font color="#0000ff" size="2">><font color="#a31515" size="2">body<font color="#0000ff" size="2">>

 

<font color="#0000ff" size="2"><<font color="#a31515" size="2">form <font color="#ff0000" size="2">id<font color="#0000ff" size="2">="form1" <font color="#ff0000" size="2">runat<font color="#0000ff" size="2">="server">

 

<font color="#0000ff" size="2"><<font color="#a31515" size="2">div<font color="#0000ff" size="2">>

 

 

<font color="#0000ff" size="2"></<font color="#a31515" size="2">div<font color="#0000ff" size="2">>

 

</

</html>

<font color="#0000ff" size="2"></<font color="#a31515" size="2">form<font color="#0000ff" size="2">><font color="#a31515" size="2">body
5/20/2009 2:35:00 PM
jsduggan
Posts: 52
Joined: 3/19/2009
Re: Error Message Help
Luke,
 
I went into the file to make the changes you suggested, but this is all the code that particular file contains:

There is no "Line 40" and nothing that resembles the code you posted.  This is the "PaypalIPNHandler.aspx" file.

 

<%

<font color="#0000ff" size="2">@ <font color="#a31515" size="2">page <font color="#ff0000" size="2">language<font color="#0000ff" size="2">="C#" <font color="#ff0000" size="2">autoeventwireup<font color="#0000ff" size="2">="true" <font color="#ff0000" size="2">inherits<font color="#0000ff" size="2">="PaypalIPNHandler, App_Web_d2kfcezd" %><font color="#0000ff" size="2">

<!

<

<

<font color="#a31515" size="2">DOCTYPE <font color="#ff0000" size="2">html <font color="#ff0000" size="2">PUBLIC <font color="#0000ff" size="2">"-//W3C//DTD XHTML 1.0 Transitional//EN" <font color="#0000ff" size="2">"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><font color="#a31515" size="2">html <font color="#ff0000" size="2">xmlns<font color="#0000ff" size="2">="http://www.w3.org/1999/xhtml" <font color="#0000ff" size="2">><font color="#a31515" size="2">head <font color="#ff0000" size="2">runat<font color="#0000ff" size="2">="server">

 

</

<

<font color="#0000ff" size="2"><<font color="#a31515" size="2">title<font color="#0000ff" size="2">>Paypal IPN Handler<font color="#0000ff" size="2"></<font color="#a31515" size="2">title<font color="#0000ff" size="2">><font color="#a31515" size="2">head<font color="#0000ff" size="2">><font color="#a31515" size="2">body<font color="#0000ff" size="2">>

 

<font color="#0000ff" size="2"><<font color="#a31515" size="2">form <font color="#ff0000" size="2">id<font color="#0000ff" size="2">="form1" <font color="#ff0000" size="2">runat<font color="#0000ff" size="2">="server">

 

<font color="#0000ff" size="2"><<font color="#a31515" size="2">div<font color="#0000ff" size="2">>

 

 

<font color="#0000ff" size="2"></<font color="#a31515" size="2">div<font color="#0000ff" size="2">>

 

</

</html>

<font color="#0000ff" size="2"></<font color="#a31515" size="2">form<font color="#0000ff" size="2">><font color="#a31515" size="2">body
5/21/2009 7:44:53 AM
lukezy
Posts: 2109
Joined: 6/12/2007
Location:WA, US
Re: Error Message Help
Your site has been compiled. Please check the orignial download package.
DotShoppingCart Staff
5/21/2009 10:20:39 AM
jsduggan
Posts: 52
Joined: 3/19/2009
Re: Error Message Help
By that do you mean "Web.old" directory or is there another directory you are referring to?
 
I found string orderNumber = values["custom"]; in the "PaypalIPNHandler.aspx.cs"  This was in the same directory as the .aspx file but I am not sure if this is the one
I need to change.  Can you direct me to where the file is located that you refer to?  Thanks.