用vs2008打开aspx文档,总是提示“未能创建 AppDomain。”。日志查看器显示:
未能初始化 AppDomain:426cf25f
Exception: System.SystemException
Message: 未能创建 AppDomain。
StackTrace: 在 System.Web.Hosting.ApplicationManager.CreateAppDomainWithHostingEnvironment(String appId, IApplicationHost appHost, HostingEnvironmentParameters hostingParameters) 在 System.Web.Hosting.ApplicationManager.CreateAppDomainWithHostingEnvironmentAndReportErrors(String appId, IApplicationHost appHost, HostingEnvironmentParameters hostingParameters)
InnerException: System.IO.FileNotFoundException
Message: 未能加载文件或程序集“CodeSmith.VisualStudio.Package, Version=5.0.0.0, Culture=neutral, PublicKeyToken=940cfcde86f32efd”或它的某一个依赖项。系统找不到指定的文件。
StackTrace: 在 System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) 在 System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) 在 System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) 在 System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) 在 System.Reflection.Assembly.Load(String assemblyString) 在 System.Reflection.MemberInfoSerializationHolder..ctor(SerializationInfo info, StreamingContext context) 在 System.AppDomain.DoCallBack(CrossAppDomainDelegate callBackDelegate) 在 .CreateDomain(String friendlyName, Evidence securityInfo, AppDomainSetup appDomainInfo) 在 System.AppDomain.CreateDomain(String friendlyName, Evidence securityInfo, AppDomainSetup info) 在 System.Web.Hosting.ApplicationManager.CreateAppDomainWithHostingEnvironment(String appId, IApplicationHost appHost, HostingEnvironmentParameters hostingParameters)
有关更多信息,请参阅在 http://go.microsoft.com/fwlink/events.asp 的帮助和支持中心。
在错误日志中发现了这句“
Powered by: 博客园 Copyright © 2024 zqwuwei Powered by .NET 9.0 on Kubernetes