Try Now
More in this section

Forums / Set-up & Installation / Set Database for new site and installation of 3.7 SP1

Set Database for new site and installation of 3.7 SP1

2 posts, 0 answered
  1. Ken Knepple
    Ken Knepple avatar
    7 posts
    16 Sep 2009
    24 Sep 2009
    Link to this post
    I have been working for a few days trying to get this new installation to hook into a remote database I get this error.


    Server Error in '/' Application.

    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=, 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=, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.] System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet) +0 System.Security.CodeAccessPermission.Demand() +58 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) +644 System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share) +66 System.Configuration.Internal.InternalConfigHost.StaticOpenStreamForRead(String streamName) +85 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) +46 System.Configuration.BaseConfigurationRecord.InitConfigFromFile() +293 

    Version Information: Microsoft .NET Framework Version:2.0.50727.4918; ASP.NET Version:2.0.50727.4918

    This is for an install at MaxEsp their KB said to comment out health monitoring in the web.config, Plus to pay attention to the trust level settings as well.  The trust level in the <system.web> section of the web.config isn't set, so I don't think that is it.  I walked through the installation guide provided by Sitefinity and set permissions accordingly,  I hope I didn't miss anything.  Plus I have been working along with a gentleman at MaxEsp (my web host) and cannot get our heads around it.  What does this error I am receiving tell you?  Any help in this matter would be great, thanks!
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    25 Oct 2016
    24 Sep 2009
    Link to this post
    Hello Ken Knepple,

    The it seems that you do not have rights to install Sitefinity under your host server. Generally if you are trying to run the executable you should be an server administrator. Otherwise you need to install the project on your local machine and then deploy it on the host server using FTP.

    Most probably you are trying to run the website in medium trust level. Sitefinity can work under default policy of Medium Trust level. If there are any additional restrictions you could have problems running the website. More information about Medium Trust setup can be found at this forum post.

    Best wishes,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
2 posts, 0 answered