Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 2 of 2

Thread: Security Exception Error

  1. #1
    tytyguy is offline Senior Member
    Join Date
    Nov 2007
    Posts
    307

    Default Security Exception Error

    I have installed ML and am getting the following error....

    Code:
    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: If you are running in Medium Trust you may have virtual directories defined that are not accessible at this trust level,
    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: If you are running in Medium Trust you may have virtual directories defined that are not accessible at this trust level,
     Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.]
       AspDotNetStorefrontCommon.CommonLogic.SafeMapPath(String fname) +343
       AspDotNetStorefrontCommon.CommonLogic.FileExists(String fname) +41
       AspDotNetStorefrontCommon.AppLogic.CheckStringResourceExcelFileExists(String locale, String& path) +145
       AspDotNetStorefrontCommon.AppLogic.LoadStringResourceExcelFile(String LocaleSetting) +184
       AspDotNetStorefrontCommon.AppLogic.LoadStringResourcesFromDB(Boolean TryToReload) +702
       AspDotNetStorefront.Global.ZHUkUoDr2() +893
       AspDotNetStorefront.Global.B4Vherugs(Object , EventArgs ) +462
       AspDotNetStorefront.Global.Application_Start(Object sender, EventArgs e) +44
    
    
    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272

    I tried adding the following line to the web.config with no avail...

    Code:
    <securityPolicy>
    				<trustLevel name="Full" policyFile="internal"/>
    			</securityPolicy>
    Last edited by tytyguy; 06-06-2012 at 08:32 AM.

  2. #2
    Skriver is offline Senior Member
    Join Date
    Apr 2012
    Posts
    188

    Default

    Had a similar issue on a non ASPDNSF site a few years back. This did work but not sure if it will here.

    http://forums.yessoftware.com/posts.php?post_id=67135