Forum


HomeHomePremiumPremiumDevelopmentDevelopmentDiffering behavior Differing behavior
Previous
 
Next
New Post
10/14/2014 1:41 PM
 

I have two websites and have installed a custom module on both. On my test environment, using IIS7, I have a Paypal redirect in the form of 

http://www.dnndev.me/Register.aspx/PayPalResponse/ReturnURL?token=EC-4FJ964294B7522901&PayerID=4XEXP2DKPBGJJ

which works great. It passes PayPalResponse = ReturnURL as a parameter. However, the production site returns a 404 error on

http://www.mydomain.org/Register.aspx/PayPalResponse/ReturnURL?token=EC-4FJ964294B7522901&PayerID=4XEXP2DKPBGJJ


Server Error in '/' Application.

The resource cannot be found.

Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable.  Please review the following URL and make sure that it is spelled correctly. 

Requested URL: /Register.aspx/PayPalResponse/ReturnURL

They are running the same version of dnn, though one is a test site (local host, IIS7). The other has been around for a few years. Is there a setting that will allow it to resolve the URL like the test site? What am I missing? If I remove the /PayPalResponse/ReturnURL from the URL, it loads properly.

 

Thanks

Kevin

 
New Post
10/14/2014 2:48 PM
 

Hi Kevin,

Sorry, I don't have much to add. But I find this URL you have posted quite strange. It has a ".aspx" followed by /PayPalResponse/ReturnURL?token=EC-4FJ964294B7522901&PayerID=4XEXP2DKPBGJJ

To be honest that doesn't look like a well-formed URL. I would have expected only a series of query strings after the ".aspx"

Maybe it has nothing to do with this problem, but I would try to have query strings only after the  ".aspx"

Cheers,

Aderson

 
New Post
10/14/2014 3:47 PM
 

Yeah, I was able to change it to just query strings. I used the friendly version for Paypal, but I just switched back since it wasn't working. No sweat. I originally used the Friendly version because PayPal also passes query strings and I wasn't clear if it would take a URL that already had a ? in it as a query string. The answer turned out to be yes. 

URL Rewriting is built into DNN. It is a valid way to pass variables, and usually works. The form becomes

http://www.mydomain.com/Register.aspx/Key1/Value1/Key2/Value2

Usually this loads register.aspx and passes Key1=Value1 and Key2=Value2 or basically the equivalent to 

http://www.mydomain.com/Register.aspx?Key1=Value1&Key2=Value2

Here is some light reading!

 http://www.dnnsoftware.com/wiki/page/url-rewriting


Thanks
Kevin

 
New Post
10/15/2014 4:26 AM
 

Thanks for the info Kevin! I was not aware you could have the extension in the middle.

Cheers,

Aderson

 
New Post
10/15/2014 4:58 AM
 

"ReturnUrl" itself is a querystring parameter that is evaluated by the Login module, but may also be evaluated by the registration module too (not sure).  I would expect the url "/PayPalResponse/ReturnURL?token=EC-4FJ964294B7522901&PayerID=4XEXP2DKPBGJJ" would not resolve unless you have a DNN page with path "PayPalResponse/ReturnURL".  Could you try sending Paypal a simplified path that you know works in the paypal autoreturn url?

 
Previous
 
Next
HomeHomePremiumPremiumDevelopmentDevelopmentDiffering behavior Differing behavior



Try FREE
30 days money back guaranteed