![]() |
|
|
#1 (permalink) |
|
Member
Join Date: Sep 2004
Posts: 40
|
System.Security.Permissions.FileIOPermission
Ive just uploaded a site on a brand new account which uses asp.net 2.0 and is working fine, but for the contact me page. It does nothing fancy other than validate a few text boxes and certainly has no fileIO involved, but when i request the page I get:
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.FileIOPermission, 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.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.] System.Security.CodeAccessSecurityEngine.Check(Obj ect demand, StackCrawlMark& stackMark, Boolean isPermSet) +0 System.Security.CodeAccessPermission.Demand() +59 System.Reflection.Assembly.VerifyCodeBaseDiscovery (String codeBase) +118 System.Reflection.Assembly.get_CodeBase() +32 System.Web.Handlers.ScriptResourceHandler.GetCodeB aseWithAssert(Assembly assembly) +31 System.Web.Handlers.ScriptResourceHandler.GetLastW riteTime(Assembly assembly) +36 System.Web.Handlers.ScriptResourceHandler.GetAssem blyInfoInternal(Assembly assembly) +58 System.Web.Handlers.ScriptResourceHandler.GetAssem blyInfo(Assembly assembly) +59 System.Web.Handlers.RuntimeScriptResourceHandler.S ystem.Web.Handlers.IScriptResourceHandler.GetScrip tResourceUrl(Assembly assembly, String resourceName, CultureInfo culture, Boolean zip, Boolean notifyScriptLoaded) +336 System.Web.UI.ScriptManager.GetScriptResourceUrl(S tring resourceName, Assembly assembly) +115 System.Web.UI.ScriptRegistrationManager.RegisterCl ientScriptResource(Control control, Type type, String resourceName) +115 System.Web.UI.ScriptManager.RegisterClientScriptRe source(Control control, Type type, String resourceName) +9 Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433 Does anyone know what is causing this or what i may have to change to fix it? Thanks
__________________
Me, me, me, me, me |
|
|
|
|
|
#2 (permalink) |
|
Administrator
Join Date: May 2003
Posts: 1,299
|
What trust level does the code require?
__________________
Jacob Colton jacob@catalyst2.com Open a ticket | Knowledgebase | Rate catalyst2 | Review catalyst2 |
|
|
|
|
|
#3 (permalink) |
|
Member
Join Date: Sep 2004
Posts: 40
|
Im not sure. It seems to be the asp.net ajax scriptmanager that's causing the issue, but i haven't got this problem on any other site that uses it that is also on the same hosting package with you guys...
__________________
Me, me, me, me, me |
|
|
|
|
|
#4 (permalink) |
|
Administrator
Join Date: May 2003
Posts: 1,299
|
Where can I see the error?
__________________
Jacob Colton jacob@catalyst2.com Open a ticket | Knowledgebase | Rate catalyst2 | Review catalyst2 |
|
|
|
|
|
#5 (permalink) |
|
Member
Join Date: Sep 2004
Posts: 40
|
Just sent you a URL to where it can be seen.
Thanks
__________________
Me, me, me, me, me |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|