Security Exception

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
11/12/2009 7:55:24 AM
Gravatar
Total Posts 10

Security Exception

hi

i have migrated my site from IIS6 to IIS7and from now i m geting the error mention  when i  m trying to logging into system  and server is godaddy

 

System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

 



[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(Object demand, StackCrawlMark& stackMark, Boolean isPermSet) +0

System.Security.CodeAccessPermission.Demand() +58

System.Reflection.Assembly.VerifyCodeBaseDiscovery(String codeBase) +118

System.Reflection.Assembly.get_CodeBase() +35

System.Web.Handlers.ScriptResourceHandler.GetCodeBaseWithAssert(Assembly assembly) +31

System.Web.Handlers.ScriptResourceHandler.GetLastWriteTime(Assembly assembly) +36

System.Web.Handlers.ScriptResourceHandler.GetAssemblyInfoInternal(Assembly assembly) +61

System.Web.Handlers.ScriptResourceHandler.GetAssemblyInfo(Assembly assembly) +62

System.Web.Handlers.RuntimeScriptResourceHandler.System.Web.Handlers.IScriptResourceHandler.GetScriptResourceUrl(Assembly assembly, String resourceName, CultureInfo culture, Boolean zip, Boolean notifyScriptLoaded) +325

System.Web.Handlers.ScriptResourceHandler.GetScriptResourceUrl(Assembly assembly, String resourceName, CultureInfo culture, Boolean zip, Boolean notifyScriptLoaded) +33

System.Web.UI.ScriptManager.GetScriptResourceUrl(String resourceName, Assembly assembly) +89

System.Web.UI.ScriptRegistrationManager.RegisterClientScriptResource(Control control, Type type, String resourceName) +111

System.Web.UI.ScriptManager.RegisterClientScriptResource(Control control, Type type, String resourceName) +9

 

11/12/2009 8:01:27 AM
Gravatar
Total Posts 18439

Re: Security Exception

Hi,

This error looks like probably a file system permissions issue. Make sure your web process user has read permission on the entire web site and has full control on /Data folder so it can create, modify, and delete files and folders there.

Security exceptions can also indicate you are running in Medium Trust, in that case, you will need to disable NeatUpload and make sure the App_Data folder is writable.

http://www.mojoportal.com/mediumtrust.aspx

Hope it helps,

Joe

11/12/2009 8:02:20 AM
Gravatar
Total Posts 18439

Re: Security Exception

Also make sure the IIS 7 hosting has .NET 3.5 SP1

You must sign in to post in the forums. This thread is closed to new posts.