Support Forums
 
  Forum  Support  Installation He...  Ajax security Exception
Previous Previous
 
Next Next
New Post 5/5/2006 4:35 AM
  anonymous
0 posts
No Ranking


Ajax security Exception 

Hello,

I am trying to install the demo (v 1.5.0) on a DNN3.2.2 version. and I get teh following error:

Security Exception

Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.

Exception Details: System.Security.SecurityException: Request for the permission of type System.Security.Permissions.ReflectionPermission, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 failed.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[SecurityException: Request for the permission of type System.Security.Permissions.ReflectionPermission, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 failed.]
   System.Security.SecurityRuntime.FrameDescHelper(FrameSecurityDescriptor secDesc, IPermission demand, PermissionToken permToken) +549
   System.Type.GetType(String typeName, Boolean throwOnError) +0
   System.Web.Configuration.HandlerMapping..ctor(String requestType, String path, String typeName, Boolean defer) +141
   System.Web.Configuration.HttpHandlersSectionHandler.InternalCreate(Object parent, XmlNode node) +509

I can make the chat module work only if I remove the following line from the web.config:

 <trust level="Medium" originUrl="http://localhost/.*" />

or, if I change the trust level to Full and then (in both scenarios) recycle the ASPNET process.

Since in my hosting environment I cannot recycle the aspnet process, I would like to know if there is a solution when trust is set to medium, or do I need to use Full trust with Ajax?

Thank you in advance,

Andreas.

 
New Post 5/8/2006 10:22 AM
  Will Gillen
65 posts
No Ranking




Re: Ajax security Exception 

I have been researching this error, and I cannot seem to reproduce the error message that you are seeing.  There must be something specific in your hosting environment (i.e. "machine.config" file) that is generating this message.  The ajax framework does indeed use reflection.  But, I'm a bit puzzled because other parts of the DNN framework use reflection as well, and it seems that you would see this error in other parts of DNN (such as when trying to install just about any module)....

I will keep trying to reproduce this error in our lab with debugging turned on to try and trap the message, but I'm not sure if I will be able to without knowing exactly what the machine.config parameter are (and most hosting company's will not even think of handing out their machine.config parameters for obvious security reasons).

As a side note, we are able to run the chatroom in "Medium" trust in our environment, but yes, we must also recycle the ASP.NET services.

Please let us know if you have any further details about your environment, and if you are able to run the chatroom yet.

Thank you!

-- Will Gillen
-- Swirlhost Support


-- Will Gillen, Swirlhost Inc.
 
Previous Previous
 
Next Next
  Forum  Support  Installation He...  Ajax security Exception
     

DotNetNuke Gold Benefactor

Copyright (c) 2012 Swirl AJAX ChatRoom Module
Privacy Statement | Terms Of Use