Request for the permission of type 'System.Security.Permissions.FileIOPermission

I'm not sure if this is a trust issue or not, but I have a page that only pulls information from a database and it is generating this error. Never seen this error. The page has an asp:calendar control and doesn't do much of anything fancy.. Any suggestions?

An error occurred loading a configuration file: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. (machine.config)
 
that means yu are using either and absolute path, or trying to access a file outside of the application directory.
 
Actually it was none of those. You can't access the web.config appsettings using: System.Web.Configuration.WebConfigurationManager on medium trust. I changed it to System.Configuration.ConfigurationManager after a couple hours of researching and it is fine now.
 
Actually it was none of those. You can't access the web.config appsettings using: System.Web.Configuration.WebConfigurationManager on medium trust. I changed it to System.Configuration.ConfigurationManager after a couple hours of researching and it is fine now.

I think you do nice job by littel changes in your code.
but i cant understand what you r trying to say. pls describe in detail i face the same problem as u realize before
 
Back
Top