YAFLogo

alexian
  • alexian
  • 52.4% (Neutral)
  • YAF Forumling Topic Starter
9 years ago
Everything works on localhost. After deploying on the server I can't access the forums: I get the following exception (on all forum pages, except the install)

Quote:

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) +597

System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share) +83

System.Configuration.Internal.InternalConfigHost.StaticOpenStreamForRead(String streamName) +79

System.Configuration.Internal.InternalConfigHost.System.Configuration.Internal.IInternalConfigHost.OpenStreamForRead(String streamName, Boolean assertPermissions) +124

System.Configuration.Internal.InternalConfigHost.System.Configuration.Internal.IInternalConfigHost.OpenStreamForRead(String streamName) +10

System.Configuration.Internal.DelegatingConfigHost.OpenStreamForRead(String streamName) +13

System.Configuration.UpdateConfigHost.OpenStreamForRead(String streamName) +38

System.Configuration.BaseConfigurationRecord.InitConfigFromFile() +450

Changing the trust level to full solves the issue but I can't have full trust level.

I would be very grateful for any help

Regards

Sponsor