0 votos

System.Security.Permissions.FileIOPermission, mscorlib en Hosting (dominio compartido)

Trabajo en visual studio .net 2010 (páginas: .aspx con .aspx.vb) sitio web en dominio compartido, pero tengo problemas con permisos y obtengo el siguiente error y quiero saber si debo cambiar de proveedor del hosting o que debo implementar para dar solución, ya que en mi pc funciona perfectamente, pero el hosting no.:

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=4.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=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.] System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet) +0 System.Security.CodeAccessSecurityEngine.Check(CodeAccessPermission cap, StackCrawlMark& stackMark) +31 System.Security.CodeAccessPermission.Demand() +46 System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) +637 System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share) +65 System.Configuration.Internal.InternalConfigHost.StaticOpenStreamForRead(String streamName) +85 System.Configuration.Internal.InternalConfigHost.System.Configuration.Internal.IInternalConfigHost.OpenStreamForRead(String streamName, Boolean assertPermissions) +116 System.Configuration.Internal.InternalConfigHost.System.Configuration.Internal.IInternalConfigHost.OpenStreamForRead(String streamName) +10 System.Configuration.Internal.DelegatingConfigHost.OpenStreamForRead(String streamName) +11 System.Configuration.UpdateConfigHost.OpenStreamForRead(String streamName) +38 System.Configuration.BaseConfigurationRecord.InitConfigFromFile() +319

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.34280

Iteramos.com

Iteramos es una comunidad de desarrolladores que busca expandir el conocimiento de la programación mas allá del inglés.
Tenemos una gran cantidad de contenido, y también puedes hacer tus propias preguntas o resolver las de los demás.

Powered by: