Internal error on admin page changing category variables using version 1.50

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
13 年 前
I have installed version 1.5 with very little problem, I have 2 instances, both are accessing the same database which is located on redfox, local instance works fine. I am getting the error below when I try to uncheck publish category and save the change using the instance on redfox.

It seems that redfox is a has medium trust environment and will not change this.

any help would be appriciated

steve


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 failed.

Source Error:


Line 11: <body>
Line 12:     <form id="form1" runat="server">

THIS IS THE LINE WHERE THE ERROR OCCURS
***************************
Line 13:     <asp:ScriptManager runat="server" ID="sm1" EnableScriptGlobalization="true" EnableScriptLocalization="true"
Line 14:         ScriptMode="Release" CompositeScript-ScriptMode="Release" />
*******************************

Line 15:     <div class="master-wrapper-page">


Source File: d:\smtest.com\wwwroot\Administration\main.master    Line: 13

Stack Trace:


[SecurityException: Request failed.]
   System.Security.CodeAccessSecurityEngine.ThrowSecurityException(RuntimeAssembly asm, PermissionSet granted, PermissionSet refused, RuntimeMethodHandleInternal rmh, SecurityAction action, Object demand, IPermission permThatFailed) +168
   System.Security.CodeAccessSecurityEngine.ThrowSecurityException(Object assemblyOrString, PermissionSet granted, PermissionSet refused, RuntimeMethodHandleInternal rmh, SecurityAction action, Object demand, IPermission permThatFailed) +100
   System.Security.CodeAccessSecurityEngine.CheckSetHelper(PermissionSet grants, PermissionSet refused, PermissionSet demands, RuntimeMethodHandleInternal rmh, Object assemblyOrString, SecurityAction action, Boolean throwException) +278
   System.Security.CodeAccessSecurityEngine.CheckSetHelper(CompressedStack cs, PermissionSet grants, PermissionSet refused, PermissionSet demands, RuntimeMethodHandleInternal rmh, RuntimeAssembly asm, SecurityAction action) +70
   System.RuntimeMethodHandle.CheckLinktimeDemands(IRuntimeMethodInfo method, RuntimeModule module, Boolean isDecoratedTargetSecurityTransparent) +0
   System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeModule decoratedModule, Int32 decoratedMetadataToken, Int32 pcaCount, RuntimeType attributeFilterType, Boolean mustBeInheritable, IList derivedAttributes, Boolean isDecoratedTargetSecurityTransparent) +482
   System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeAssembly assembly, RuntimeType caType) +103
   System.Reflection.RuntimeAssembly.GetCustomAttributes(Boolean inherit) +33
   System.Web.UI.AssemblyCache.GetAjaxFrameworkAssemblyAttribute(Assembly assembly) +62
   System.Web.UI.ScriptManager.get_DefaultAjaxFrameworkAssembly() +272
   System.Web.UI.ScriptManager..ctor() +11
   ASP.administration_main_master.__BuildControlsm1() in d:\smtest.com\wwwroot\Administration\main.master:13
   ASP.administration_main_master.__BuildControlform1() in d:\smtest.com\wwwroot\Administration\main.master:12
   ASP.administration_main_master.__BuildControlTree(administration_main_master __ctrl) in d:\smtest.com\wwwroot\Administration\main.master:1
   ASP.administration_main_master.FrameworkInitialize() in App_Web_yzguqdch.1.cs:0
   System.Web.UI.UserControl.InitializeAsUserControlInternal() +35
   System.Web.UI.MasterPage.CreateMaster(TemplateControl owner, HttpContext context, VirtualPath masterPageFile, IDictionary contentTemplateCollection) +8832342
   System.Web.UI.Page.get_Master() +54
   System.Web.UI.Page.ApplyMasterPage() +15
   System.Web.UI.Page.PerformPreInit() +45
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +8431
   System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +253
   System.Web.UI.Page.ProcessRequest() +78
   System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +21
   System.Web.UI.Page.ProcessRequest(HttpContext context) +49
   ASP.administration_default_aspx.ProcessRequest(HttpContext context) in App_Web_f2ckjjuh.11.cs:0
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +100
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75
13 年 前
your hosting company should be able to change your trust level for  you or you can add

<trust level="Full" />

into your web.config file (only applies if your hosting company offers full trust)

otherwise, i suggest you change your hosting company

You should also make sure you have provided user and network service the appropraite permissions to your application

- read write permission to images folder and files\ExportImport
13 年 前
I came across a solution that worked by accident, I had configured the project in VB 2010 to run dotnet 4, as this is available on RF, a collegue suggested trying dotnet 3.5 and hey presto all works fine, not sure why but will be putting a ticket into RF,

thanks for the help

Steve
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.