我已经在公共托管register.it
上发布了我的应用,当我尝试查看该应用时,出现标题中提到的异常。
我尝试从codedom
中删除web.config
节,但是在这种情况下,我只会得到一个空白页。
以下是错误详细信息:
[SecurityException:请求失败。]
System.Security.CodeAccessSecurityEngine.ThrowSecurityException(RuntimeAssembly asm,已授予PermissionSet,拒绝了PermissionSet,RuntimeMethodHandleInternal rmh,SecurityAction操作,对象需求,IPermission permThatFailed)+96 System.Security.CodeAccessSecurityEngine.ThrowSecurityException(对象组件OrString,已授予PermissionSet,拒绝PermissionSet,RuntimeMethodHandleInternal rmh,SecurityAction操作,对象需求,IPermission permThatFailed)+80 System.Security.CodeAccessSecurityEngine.CheckSetHelper(PermissionSet授予,PermissionSet被拒绝,PermissionSet需求,RuntimeMethodHandleInternal rmh,Object assemblyOrString,SecurityAction操作,Boolean throwException)+288 System.Security.CodeAccessSecurityEngine.CheckSetHelper(CompressedStack CS,PermissionSet授权,PermissionSet被拒绝,PermissionSet要求,RuntimeMethodHandleInternal rmh,RuntimeAssembly asm,SecurityAction操作)+70 系统。 System.RuntimeTypeHandle.GetTypeByName(字符串名称,布尔throwOnError,布尔ignoreCase,布尔反射Only,StackCrawlMark和stackMark,IntPtr pPrivHostBinder,布尔loadTypeFromPartialName)+70 System.RuntimeType.GetType(字符串类型名称,布尔throwOnError,布尔ignoreCase,布尔反射Only,StackCrawlMark和stackMark)+40 System.Type.GetType(String typeName)+30 System.CodeDom.Compiler.CompilerInfo.get_IsCodeDomProviderTypeValid()+12 System.Web.Compilation.CompilationUtil.GetRecompilationHash(CompilationSection ps)+2045 System.Web.Configuration.CompilationSection.get_RecompilationHash()+107 System.Web.Compilation.BuildManager.CheckTopLevelFilesUpToDateInternal(Int64 cachedHash)+458 System.Web.Compilation.BuildManager.CheckTopLevelFilesUpToDate(Int64 cachedHash)+51 System.Web.Compilation.BuildManager.ExecutePreAppStart()+135 System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager,IApplicationHost appHost,IConfigMapPathFactory configMapPathFactory,HostingEnvironmentParametershostingParameters,PolicyLevel policyLevel,Exception appDomainCreationException)+549
你能帮我吗?