|
Last Post 5/24/2008 5:39:46 PM By rampar.
5 replies.
5/1/2008 9:46:03 AM |
rampar
Posts: 32
Joined: 4/23/2008
|
PayPal IPN Invalid
|
I think I've posted more than anyone else here, I should be a pro by the end of it ; ) Anyway, below is an exception error I got in an email (I know weird), apparently somebody was doing something that involved PayPal IPN. It linked them to /virtual/PayPalIPNHandler.aspx which doesn't exist, but if I type in /virtualdirectory/STORE/PayplPNHandler.aspx it will recognize it as a valid page, and just give me a normal error that says the IPN is invalid.
So the question is, where do I need to go to have it redirected to includ /STORE/ so it's a valid link? Also, I only use PayPal standard, no Express or Pro.
Thanks!
Timestamp: 5/1/2008 8:34:11 AM Message: HandlingInstanceID: 35e2d9a2-10c4-4156-ab5a-3a5d54e0b43f An exception of type 'System.Web.HttpException' occurred and was caught. ------------------------------------------------------------------------ 05/01/2008 01:34:11 Type : System.Web.HttpException, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a Message : The file '/AKStore/PaypalIPNHandler.aspx' does not exist. Source : System.Web Help link : ErrorCode : -2147467259 Data : System.Collections.ListDictionaryInternal TargetSite : Void CheckVirtualFileExists(System.Web.VirtualPath) Stack Trace : at System.Web.UI.Util.CheckVirtualFileExists(VirtualPath virtualPath) at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean noAssert) at System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp, Boolean noAssert) at System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) at System.Web.UI.PageHandlerFactory.System.Web.IHttpHandlerFactory2.GetHandler(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) at System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig) at System.Web.HttpApplication.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) Additional Info: MachineName : CT3459 TimeStamp : 5/1/2008 8:34:11 AM FullName : Microsoft.Practices.EnterpriseLibrary.ExceptionHandling, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null AppDomainName : /LM/W3SVC/1/Root/AKStore-1-128541044491555366 ThreadIdentity : WindowsIdentity : NT AUTHORITY\NETWORK SERVICE Category: General Priority: 0 EventId: 100 Severity: Error Title:Enterprise Library Exception Handling Machine: CT3459 Application Domain: /LM/W3SVC/1/Root/AKStore-1-128541044491555366 Process Id: 49052 Process Name: c:\windows\system32\inetsrv\w3wp.exe Win32 Thread Id: 24012 Thread Name: Extended Properties: Url - <a target="_blank" href="http://www.ashlynkray.com/AKStore/PaypalIPNHandler.aspx">http://www.ashlynkray.com/AKStore/PaypalIPNHandler.aspx RawUrl - /AKStore/PaypalIPNHandler.aspx UseAgent - UrlReferrer - IPAddress - 66.211.170.66
|
5/1/2008 10:27:08 AM |
lukezy
Posts: 2109
Joined: 6/12/2007
Location:WA, US
|
Re: PayPal IPN Invalid
|
Check if you put the right path in your PayPal IPN call back notification. You can find configuration information from doc. PaypalIPNHandler.aspx expects a post form. That's why you see error when lauching the page directly.
DotShoppingCart Staff
|
5/1/2008 10:32:40 AM |
rampar
Posts: 32
Joined: 4/23/2008
|
Re: PayPal IPN Invalid
|
You know I even checked that originally and didn't see anything wrong with it. Man, I feel like an idiot. Anyway, it's up and working now. I'll post my website on Friday so you guys can check it out and give me some pointers.
|
5/2/2008 1:16:14 AM |
rampar
Posts: 32
Joined: 4/23/2008
|
Re: PayPal IPN Invalid
|
I just had a person place an order through after fixing the link for the IPNHandler.aspx, and we received these two Errors. Originally, when it wasn't pointing to the right place, it would show up as payment approved and would update the Admin panel, but this time, it says "Awaiting Payment through PayPal" in the Admin panel even though PayPal shows it's already been paid. Not sure if it's something I did, she did, or it's a bug. No errors showed up on her side and she says it went through smoothly.
First One:
Timestamp: 5/2/2008 7:44:23 AM Message: HandlingInstanceID: bf13105a-e9bc-4d15-bfc1-c799a815c792 An exception of type 'System.Web.HttpUnhandledException' occurred and was caught. --------------------------------------------------------------------------------- 05/02/2008 00:44:23 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.ProcessRequestWithNoAssert(HttpContext context) at System.Web.UI.Page.ProcessRequest(HttpContext context) at ASP.store_paypalipnhandler_aspx.ProcessRequest(HttpContext context) in c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\395c055d\bed154\App_Web_9nfu3nek.2.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 : CT3459 TimeStamp : 5/2/2008 7:44:23 AM FullName : Microsoft.Practices.EnterpriseLibrary.ExceptionHandling, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null AppDomainName : /LM/W3SVC/1/Root-2-128541866098876250 ThreadIdentity : WindowsIdentity : NT AUTHORITY\NETWORK SERVICE Inner Exception --------------- Type : System.FormatException, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 Message : String was not recognized as a valid DateTime. Source : mscorlib Help link : Data : System.Collections.ListDictionaryInternal TargetSite : System.DateTime Parse(System.String, System.Globalization.DateTimeFormatInfo, System.Globalization.DateTimeStyles) Stack Trace : at System.DateTimeParse.Parse(String s, DateTimeFormatInfo dtfi, DateTimeStyles styles) at System.DateTime.Parse(String s) at PaypalIPNHandler.Page_Load(Object sender, EventArgs e) in c:\AKDSC\web\Store\PaypalIPNHandler.aspx.cs:line 52 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: CT3459 Application Domain: /LM/W3SVC/1/Root-2-128541866098876250 Process Id: 12152 Process Name: c:\windows\system32\inetsrv\w3wp.exe Win32 Thread Id: 39760 Thread Name: Extended Properties: Url - <a target="_blank" href="http://www.ashlynkray.com/Store/PaypalIPNHandler.aspx">http://www.ashlynkray.com/Store/PaypalIPNHandler.aspx RawUrl - /Store/PaypalIPNHandler.aspx UseAgent - UrlReferrer - IPAddress - 66.211.170.66
Second One: Timestamp: 5/2/2008 7:44:36 AM Message: HandlingInstanceID: 2f89d86a-0295-4d54-8239-4e90cc82e14b An exception of type 'System.Web.HttpUnhandledException' occurred and was caught. --------------------------------------------------------------------------------- 05/02/2008 00:44:36 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.ProcessRequestWithNoAssert(HttpContext context) at System.Web.UI.Page.ProcessRequest(HttpContext context) at ASP.store_paypalipnhandler_aspx.ProcessRequest(HttpContext context) in c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\395c055d\bed154\App_Web_9nfu3nek.2.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 : CT3459 TimeStamp : 5/2/2008 7:44:36 AM FullName : Microsoft.Practices.EnterpriseLibrary.ExceptionHandling, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null AppDomainName : /LM/W3SVC/1/Root-2-128541866098876250 ThreadIdentity : WindowsIdentity : NT AUTHORITY\NETWORK SERVICE Inner Exception --------------- Type : System.FormatException, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 Message : String was not recognized as a valid DateTime. Source : mscorlib Help link : Data : System.Collections.ListDictionaryInternal TargetSite : System.DateTime Parse(System.String, System.Globalization.DateTimeFormatInfo, System.Globalization.DateTimeStyles) Stack Trace : at System.DateTimeParse.Parse(String s, DateTimeFormatInfo dtfi, DateTimeStyles styles) at System.DateTime.Parse(String s) at PaypalIPNHandler.Page_Load(Object sender, EventArgs e) in c:\AKDSC\web\Store\PaypalIPNHandler.aspx.cs:line 52 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: CT3459 Application Domain: /LM/W3SVC/1/Root-2-128541866098876250 Process Id: 12152 Process Name: c:\windows\system32\inetsrv\w3wp.exe Win32 Thread Id: 39760 Thread Name: Extended Properties: Url - <a target="_blank" href="http://www.ashlynkray.com/Store/PaypalIPNHandler.aspx">http://www.ashlynkray.com/Store/PaypalIPNHandler.aspx RawUrl - /Store/PaypalIPNHandler.aspx UseAgent - UrlReferrer - IPAddress - 66.211.170.66
|
5/2/2008 8:12:24 AM |
lukezy
Posts: 2109
Joined: 6/12/2007
Location:WA, US
|
Re: PayPal IPN Invalid
|
It might be a bug. Here is the exception.
at PaypalIPNHandler.Page_Load(Object sender, EventArgs e) in c:\AKDSC\web\Store\PaypalIPNHandler.aspx.cs:line 52
Line 52:
trans.TransactionDate = DateTime.Parse(values["payment_date"]);
It seems that payment_date is not a valid expected datetime. Try changing it to
trans.TransactionDate = DateTime.Now;
DotShoppingCart Staff
|
5/24/2008 5:39:46 PM |
rampar
Posts: 32
Joined: 4/23/2008
|
Re: PayPal IPN Invalid
|
I just received about 18 error emails all pretty much the same except here's the error:
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:\AKDSC\web\Store\PaypalIPNHandler.aspx.cs:line 46
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)
I checked line 46 and it says "string orderNumber = values["custom"];"
Any idea on what I should change this to?
Thanks!
|
| |