Click here to register. Registration is required if you want to post to the forums.

If you register, we can also contact you with news on new module versions, and upgrades to new modules as we make them available. 

Use of your registration information is subject to our privacy policy.

Inventua Forums

Subject: Problem Automatically Adding Users to Specific Roles After Payment
Prev Next
Topic is locked

Author Messages
Ismet Dumlupinar

08 Jan 2009 5:11 PM  

Hello this is a follow up post for:


Both module and page has All Users access where Paypal module is placed.

Our site is running under Shared Hosting provider and Medium Trust Environment

DotNetNuke version is 4.9

Module version is latest (3.3.2 i guess)

Module Level Settings:

Payment Notification: Enabled

Log IPN Data Event Log: Enabled

However, i haven't got any records yet to troubleshoot the problem.

Add users to security roles after payment: I have one role selected here.

It has configured under Admin > Security Roles and has following settings:

Roll Group: Purchased Subscriptions

Public Role: Yes

Auto Assigned: Disabled

I'm not sure we have correct role settings for your module.

I would appreciate if you could assist us to solve the problem i stated.

I'm currently tracking this topic to monitor suggestions.

Warm regards.



Ismet Dumlupinar

08 Jan 2009 5:48 PM  
Ok my error code is here:
Inventua PayPal - IPN Notification Log: MODULE ID: 7885 TXN ID: SUBSCR ID: S-8YU46158W3082830E
ERROR: (TRUNCATED TO 500 CHARS): System.Security.SecurityException: Request for the permission of type 'System.Net.WebPermission, System, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet) at System.Security.CodeAccessPermission.Demand() at System.Net.HttpWebRequest.set_Proxy(IWebProxy value) at Inventua.DNN.Modules.PayPal.ProcessPayPalNotification() The action that failed was:
Namn på Server: P3SWH130

I think hosting provider has some issues with proxy, or either paypal ipn or module does not handshake with dnn environment.

Please advise.
Anthony Glenwright

11 Jan 2009 4:13 PM  
The problem is that "Medium Trust" does not grant System.Net.WebPermission - and this is required so that the module can query PayPal for the transaction details. So you need to either use "full trust", modify your .net configuration files to grant System.Net.WebPermission for medium trust, or edit the "trust originUrl" setting in your web.config (just search for "originurl") to include *
Ismet Dumlupinar

11 Jan 2009 4:25 PM  

It is impossible to change trust level to include originurl as * with Godaddy's medium trust environment.

Can you rebuild a solution that works with medium trusts that has restrictive configurations?

Otherwise we need to add users to roles manually or we would have to call godaddy's tech support whom does not want to help with 3rd party applications.


Anthony Glenwright

11 Jan 2009 4:43 PM  
The trust / security components that are blocking you are part of the .NET core & GoDaddy's configuration settings, there's nothing we can do in code to work around them. The code that is failing is a simple server-side Http request to the PayPal server - and for some reason, this is not included in the "medium" trust configuration.

The GoDaddy admins have the ability to allow access to the paypal server for IPN by editing their server-level config files - however, we have heard from customers before that they appear to be unwilling to do so, but I guess thats part of their "budget" service offering. You should still follow up with them though. This issue would affect all .net applications that were trying to do PayPal IPN, not just ours, so maybe you should let them know that this is something that would affect all .net IPN users on godaddy.
Anthony Glenwright

11 Jan 2009 4:46 PM  
PS: You may wish to direct the GoDaddy admins to this article:
Topic is locked
Forums > Inventua Forums > DotNetNuke Modules/Components Support > Problem Automatically Adding Users to Specific Roles After Payment

ActiveForums 3.7