Error System.Security.Permissions.ReflectionPermission

G

Guest

I'm using DotNetNuke 3.1 and it works well.
I try to use Ajax with it. But if I add the Ajax specification in web.config :
<add verb="GET,POST" path="vbwrapper/*.ashx" type="Ajax.PageHandlerFactory,
Ajax" />
I receive the error :
System.Security.SecurityException: Request for the permission of type
System.Security.Permissions.ReflectionPermission, mscorlib,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 failed.

If I remove Trust line in web.config or if I replace trust level="Medium" by
other permission type, my project doesn't work for other reason :
An error occurred during the processing of a configuration file required to
service this request. Please review the specific error details below and
modify your configuration file appropriately.

Source File:
c:\windows\microsoft.net\framework\v1.1.4322\Config\machine.config
Red Line : <add assembly="*"/>

If I test Ajax in an other project, it is functional but I don't use Trust
level in web.config.

Have you got ideas to resolve that please ?
Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,776
Messages
2,569,603
Members
45,189
Latest member
CryptoTaxSoftware

Latest Threads

Top