2014-04-01 2 views
2

우리는 Asp.net 솔루션 (Ajax와 함께 C# 및 vb.net 코드 사용)이 있습니다. Test에서 잘 돌아가고 Prod로 이동하면 JavaScript 오류가 발생하기 시작했습니다. 그리고 체크 된 서버에 다음과 같은 오류가 발생하면 여러 페이지에서 발생합니다.이벤트 코드 : 3005 이벤트 메시지 : 처리되지 않은 예외가 발생했습니다.

Event code: 3005 
Event message: An unhandled exception has occurred. 
Event time: 31/03/2014 13:48:10 
Event time (UTC): 31/03/2014 12:48:10 
Event ID: 37dd3345a5964cf19ac94b2c05976457 
Event sequence: 3 
Event occurrence: 1 
Event detail code: 0 

Application information: 
    Application domain: /LM/W3SVC/7862/Root-4-130407436897106054 
    Trust level: Full 
    Application Virtual Path:/
    Application Path: D:\MSINetData\WWW\MT\ 
    Machine name: P01TSDES01 

Process information: 
    Process ID: 28140 
    Process name: w3wp.exe 
    Account name: NT AUTHORITY\NETWORK SERVICE 

Exception information: 
    Exception type: MethodAccessException 
    Exception message: Attempt to access method System.Management.Instrumentation.InstrumentedAttribute..ctor(System.String) in violation of security transparency rules failed. 
    at System.RuntimeMethodHandle.CheckLinktimeDemands(IRuntimeMethodInfo method, RuntimeModule module, Boolean isDecoratedTargetSecurityTransparent) 
    at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeModule decoratedModule, Int32 decoratedMetadataToken, Int32 pcaCount, RuntimeType attributeFilterType, Boolean mustBeInheritable, IList derivedAttributes, Boolean isDecoratedTargetSecurityTransparent) 
    at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeAssembly assembly, RuntimeType caType) 
    at System.Reflection.RuntimeAssembly.GetCustomAttributes(Boolean inherit) 
    at System.Web.UI.AssemblyCache.GetAjaxFrameworkAssemblyAttribute(Assembly assembly) 
    at System.Web.UI.ScriptManager.get_DefaultAjaxFrameworkAssembly() 
    at System.Web.UI.ScriptManager..ctor() 
    at ASP.repository_projectcontact_aspx.__BuildControlToolkitScriptManager1() 
    at ASP.repository_projectcontact_aspx.__BuildControlContent2(Control __ctrl) 
    at System.Web.UI.CompiledTemplateBuilder.InstantiateIn(Control container) 
    at System.Web.UI.MasterPage.InstantiateInContentPlaceHolder(Control contentPlaceHolder, ITemplate template) 
    at ASP.master_mt_master.__BuildControlMTMContent() 
    at ASP.master_mt_master.__BuildControlform1() 
    at ASP.master_mt_master.__BuildControlTree(master_mt_master __ctrl) 
    at ASP.master_mt_master.FrameworkInitialize() 
    at System.Web.UI.UserControl.InitializeAsUserControlInternal() 
    at System.Web.UI.MasterPage.CreateMaster(TemplateControl owner, HttpContext context, VirtualPath masterPageFile, IDictionary contentTemplateCollection) 
    at System.Web.UI.Page.get_Master() 
    at System.Web.UI.Page.ApplyMasterPage() 
    at System.Web.UI.Page.PerformPreInit() 
    at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) 



    Request information: 
    Request URL: 
    Request path: /Repository/ProjectContact.aspx 
    User host address: 
    User: 
    Is authenticated: False 
    Authentication Type: 
    Thread account name: P01TSDES01\MX-PAR 

Thread information: 
    Thread ID: 5 
    Thread account name: P01TSDES01\MX-PAR 
    Is impersonating: False 
    Stack trace: at System.RuntimeMethodHandle.CheckLinktimeDemands(IRuntimeMethodInfo method, RuntimeModule module, Boolean isDecoratedTargetSecurityTransparent) 
    at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeModule decoratedModule, Int32 decoratedMetadataToken, Int32 pcaCount, RuntimeType attributeFilterType, Boolean mustBeInheritable, IList derivedAttributes, Boolean isDecoratedTargetSecurityTransparent) 
    at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeAssembly assembly, RuntimeType caType) 
    at System.Reflection.RuntimeAssembly.GetCustomAttributes(Boolean inherit) 
    at System.Web.UI.AssemblyCache.GetAjaxFrameworkAssemblyAttribute(Assembly assembly) 
    at System.Web.UI.ScriptManager.get_DefaultAjaxFrameworkAssembly() 
    at System.Web.UI.ScriptManager..ctor() 
    at ASP.repository_projectcontact_aspx.__BuildControlToolkitScriptManager1() 
    at ASP.repository_projectcontact_aspx.__BuildControlContent2(Control __ctrl) 
    at System.Web.UI.CompiledTemplateBuilder.InstantiateIn(Control container) 
    at System.Web.UI.MasterPage.InstantiateInContentPlaceHolder(Control contentPlaceHolder, ITemplate template) 
    at ASP.master_mt_master.__BuildControlMTMContent() 
    at ASP.master_mt_master.__BuildControlform1() 
    at ASP.master_mt_master.__BuildControlTree(master_mt_master __ctrl) 
    at ASP.master_mt_master.FrameworkInitialize() 
    at System.Web.UI.UserControl.InitializeAsUserControlInternal() 
    at System.Web.UI.MasterPage.CreateMaster(TemplateControl owner, HttpContext context, VirtualPath masterPageFile, IDictionary contentTemplateCollection) 
    at System.Web.UI.Page.get_Master() 
    at System.Web.UI.Page.ApplyMasterPage() 
    at System.Web.UI.Page.PerformPreInit() 
    at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) 


Custom event details: 

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp. 

답변

1

보안 문제가있는 것 같습니다. asp : ScriptManager는이 오류의 일반적인 원인입니다. 어쩌면 이것을 web.config에 추가해야합니다.

<system.web> 
    <trust level="Full"/> 
</system.web> 
관련 문제