Asp.net 给定的程序集名称或代码基无效。(HRESULT的例外:0x80131047)-Visual Studio 2017
我有一个带有.NETFramework4.5.2的普通ASP.NET项目,它与Web站点项目(WSP)一样出色,但我尝试将此项目更改为Web应用程序项目(WAP)。我并没有改变项目代码体中的任何内容,我只添加了具有控件定义的设计器,并向WSP项目添加了所需的默认名称空间。但是aspnet_编译器崩溃,并显示以下消息(这是MSBuild进程的一部分): C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\aspnet\u compiler.exe-v/ -p E:\Projects\Arenda\u 5\MyArenda\ArendaNew\obj\Debug\aspnetcompiler\Source -d E:\Projects\Arenda\u 5\MyArenda\ArendaNew\obj\Debug\aspnetcompiler\tempbuildir -错误堆栈 Microsoft(R)ASP.NET编译工具版本4.8.3752.0实用程序 预编译ASP.NET应用程序版权(C)Microsoft Corporation。 版权所有。(0):警告:以下程序集已损坏 对高于的.NET Framework版本的依赖关系 目标和可能在运行时无法正确加载,从而导致 失败:ArendaNew,版本=1.0.0.0,区域性=中性, PublicKeyToken=null。依赖项为:Microsoft.VisualBasic, 版本=10.0.0.0,区域性=中性,PublicKeyToken=b03f5f7f11d50a3a。 您应该确保从属程序集在以下两种情况下都是正确的: 目标框架,或确保您的目标框架 寻址是依赖程序集的寻址 E:\Projects\Arenda\u 5\MyArenda\ArendaNew\obj\Debug\aspnetcompiler\Source\global.asax(41): 警告BC42025:访问共享成员、常量成员、枚举成员 或通过实例嵌套类型;限定表达式将不可用 评估 E:\Projects\Arenda\u 5\MyArenda\ArendaNew\obj\Debug\aspnetcompiler\Source\My\u Saved.ashx(43): 警告BC42025:访问共享成员、常量成员、枚举成员 或通过实例嵌套类型;限定表达式将不可用 评估 错误ASPPARSE:给定的程序集名称或代码基无效。 (来自HRESULT的异常:0x80131047) 错误ASPPARSE:给定的程序集名称或代码基无效。 (来自HRESULT的异常:0x80131047) 错误ASPPARSE:给定的程序集名称或代码基无效。 (来自HRESULT的异常:0x80131047) 错误ASPPARSE:给定的程序集名称或代码基无效。 (来自HRESULT的异常:0x80131047) 错误ASPPARSE:给定的程序集名称或代码基无效。 (来自HRESULT的异常:0x80131047) 错误ASPPARSE:给定的程序集名称或代码基无效。 (来自HRESULT的异常:0x80131047) [FileLoadException]:给定的程序集名称或代码基无效。 (来自HRESULT的异常:0x80131047)位于 System.Reflection.AssemblyName.nInit(RuntimeAssembly和assembly, 布尔值用于内省,布尔值RAISERESOVEREVENT)位于 System.Reflection.AssemblyName..ctor(字符串AssemblyName)位于 System.Web.Configuration.CompliationSection.LoadAssembly(字符串 assemblyName,布尔值throwOnFail)位于 System.Web.UI.TemplateParser.LoadAssembly(字符串assemblyName,布尔值 (失败)在 System.Web.UI.TemplateParser.AddAssemblyDependency(字符串 assemblyName,布尔addDependentAssembly)位于 System.Web.UI.MainTagNameToTypeMapper.ProcessTagNamespaceRegistrationCore(TagNamespaceRegisterEntry nsRegisterEntry)位于 System.Web.UI.MainTagNameToTypeMapper.ProcessTagNamespaceRegistration(ArrayList nsRegisterEntries) [HttpParseException]:给定的程序集名称或代码基无效。 (来自HRESULT的异常:0x80131047)位于 System.Web.UI.MainTagNameToTypeMapper.ProcessTagNamespaceRegistration(ArrayList nsRegisterEntries)位于 System.Web.UI.MainTagNameToTypeMapper.ProcessTagNamespaceRegistration(TagNamespaceRegisterEntry nsRegisterEntry)位于 System.Web.UI.BaseTemplateParser.ProcessDirective(字符串 directiveName,IDictionary指令)位于 System.Web.UI.TemplateControlParser.ProcessDirective(字符串 directiveName,IDictionary指令)位于 System.Web.UI.PageParser.ProcessDirective(字符串directiveName, IDictionary指令)在 System.Web.UI.TemplateParser.ParseStringInternal(字符串文本,编码 文件编码) [HttpParseException]:给定的程序集名称或代码基无效。 (来自HRESULT的异常:0x80131047)位于 System.Web.UI.TemplateParser.ParseString(字符串文本,VirtualPath virtualPath,编码文件编码)位于 System.Web.UI.TemplateParser.ParseReader(StreamReader reader, 虚拟路径(虚拟路径) System.Web.UI.TemplateParser.ParseFile(字符串physicalPath, 虚拟路径(虚拟路径) System.Web.UI.TemplateParser.ParseInternal()位于 System.Web.UI.TemplateParser.Parse()位于 System.Web.Compilation.BaseTemplateBuildProvider.get_CodeCompilerType() 在 System.Web.Compilation.BuildProvider.GetCompilerTypeFromBuildProvider(BuildProvider buildProvider)位于 System.Web.Compilation.WebDirectoryBatchCompiler.CompilenIndependentBuildProviders(ICollection 建筑供应商) [HttpParseException]:给定的程序集名称或代码基无效。 (来自HRESULT的异常:0x80131047)位于 System.Web.Compilation.WebDirectoryBatchCompiler.Process()位于 System.Web.Compilation.BuildManager.BatchCompileWebDirectoryInternal(虚拟目录 vdir,布尔信号错误)在 System.Web.Compilation.BuildManager.BatchCompileWebDirectory(虚拟目录 vdir、VirtualPath virtualDir、Boolean ignoreErrors)位于 System.Web.Compilation.BuildManager.PrecompileWebDirectoriesRecursive(虚拟目录 vdir,布尔顶级)在 System.Web.Compilation.BuildManager.PrecompileAppInternal(VirtualPath 启动VirtualDir,IEnumerableAsp.net 给定的程序集名称或代码基无效。(HRESULT的例外:0x80131047)-Visual Studio 2017,asp.net,.net,vb.net,aspnet-compiler,visual-studio-2017-build-tools,Asp.net,.net,Vb.net,Aspnet Compiler,Visual Studio 2017 Build Tools,我有一个带有.NETFramework4.5.2的普通ASP.NET项目,它与Web站点项目(WSP)一样出色,但我尝试将此项目更改为Web应用程序项目(WAP)。我并没有改变项目代码体中的任何内容,我只添加了具有控件定义的设计器,并向WSP项目添加了所需的默认名称空间。但是aspnet_编译器崩溃,并显示以下消息(这是MSBuild进程的一部分): C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\aspnet\u compiler.exe-v/ -p
1(不包括虚拟路径)
System.Web.Compilation.BuildManager.PrecompileApp(VirtualPath
明星