System.Security.SecurityException. Can resolve for a long time the issue.

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

System.Security.SecurityException. Can resolve for a long time the issue.

Albert
I am trying to use the control with godaddy and I get this error:

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.SecurityPermission, mscorlib, Version=2.0.0.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.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.]
System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet) +0
System.Security.CodeAccessPermission.Demand() +58
System.Web.HttpContext.System.IServiceProvider.GetService(Type service) +54
Brettle.Web.NeatUpload.UploadHttpModule.GetCurrentWorkerRequest() +92
Brettle.Web.NeatUpload.UploadHttpModule.Application_BeginRequest(Object sender, EventArgs e) +87
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +68
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75

I was told that the trust environment for shared hosting is medium. Is the problem that It doesn't have a full trust? If so what can be done? I am stuck for a while with this.

Thank you.
Reply | Threaded
Open this post in threaded view
|

Re: System.Security.SecurityException. Can resolve for a long time the issue.

Dean Brettle
Administrator
Per the documentation, your porvider either needs to provide full trust or they need to install the Brettle.Web.NeatUpload.dll in the GAC. GoDaddy is unlikey to do either. SoftSys seems to allow Full-Trust hosting if you request it and seems to be getting good reviews.  I have no personal experience with them though
Reply | Threaded
Open this post in threaded view
|

Re: System.Security.SecurityException. Can resolve for a long time the issue.

Albert
Thanks for the prompt response. SoftSys has a lot of great features.

I have copied the dll file in the bin directory. What is a GAC? is it something besides the copying to bin?
Reply | Threaded
Open this post in threaded view
|

Re: System.Security.SecurityException. Can resolve for a long time the issue.

Dean Brettle
Administrator
GAC = Global Assembly Cache

--Dean
Reply | Threaded
Open this post in threaded view
|

Re: System.Security.SecurityException. Can resolve for a long time the issue.

Guest-997
Thank you.