廣告:
環(huán)境:asp.net mvc2.0 asp.net 3.5 sp1
“/”應(yīng)用程序中的服務(wù)器錯誤。
--------------------------------------------------------------------------------
安全性異常
說明: 應(yīng)用程序試圖執(zhí)行安全策略不允許的操作。要授予此應(yīng)用程序所需的權(quán)限,請與系統(tǒng)管理員聯(lián)系,或在配置文件中更改該應(yīng)用程序的信任級別。
異常詳細(xì)信息: System.Security.SecurityException: 請求“System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089”類型的權(quán)限已失敗。
源錯誤:
執(zhí)行當(dāng)前 Web 請求期間生成了未處理的異常?梢允褂孟旅娴漠惓6褩8櫺畔⒋_定有關(guān)異常原因和發(fā)生位置的信息。
堆棧跟蹤:
[SecurityException: 請求“System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089”類型的權(quán)限已失敗。]
System.Reflection.Assembly._GetType(String name, Boolean throwOnError, Boolean ignoreCase) +0
System.Web.UI.Util.GetTypeFromAssemblies(ICollection assemblies, String typeName, Boolean ignoreCase) +201
System.Web.UI.TemplateParser.GetType(String typeName, Boolean ignoreCase, Boolean throwOnError) +323
System.Web.UI.TemplateParser.ProcessInheritsAttribute(String baseTypeName, String codeFileBaseTypeName, String src, Assembly assembly) +10879228
System.Web.UI.TemplateParser.PostProcessMainDirectiveAttributes(IDictionary parseData) +365
--------------------------------------------------------------------------------
版本信息: Microsoft .NET Framework 版本:2.0.50727.5420; ASP.NET 版本:2.0.50727.5420
解決方法:
應(yīng)用程序池,啟用32位,同時(shí)在應(yīng)用程序池高 級設(shè)置那里把進(jìn)程標(biāo)識 ApplicationPoolIdentity 改為 NetworkService
廣告: