Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/.net/20.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
&引用;由比当前加载的运行时更新的运行时生成;安装Visual Studio 2019 for ASP.NET 3.5 Web项目后_Asp.net_.net_Runtime Error_.net 3.5 - Fatal编程技术网

&引用;由比当前加载的运行时更新的运行时生成;安装Visual Studio 2019 for ASP.NET 3.5 Web项目后

&引用;由比当前加载的运行时更新的运行时生成;安装Visual Studio 2019 for ASP.NET 3.5 Web项目后,asp.net,.net,runtime-error,.net-3.5,Asp.net,.net,Runtime Error,.net 3.5,我刚买了一台新电脑,在拆除了一个现有的.NET3.5SP1Web项目、更改了一行C#、构建和部署之后,我发现了下面的错误。我以前使用的是Visual Studio 2017,但现在在我的新电脑上使用的是2019。我在VS2019中的项目上检查了我的.NET版本,它们没有更改,项目或解决方案文件也没有更改。知道为什么发布和部署到web服务器时运行时版本会有所不同吗 Could not load file or assembly 'MyApp.Web.XmlSerializers' or one o

我刚买了一台新电脑,在拆除了一个现有的.NET3.5SP1Web项目、更改了一行C#、构建和部署之后,我发现了下面的错误。我以前使用的是Visual Studio 2017,但现在在我的新电脑上使用的是2019。我在VS2019中的项目上检查了我的.NET版本,它们没有更改,项目或解决方案文件也没有更改。知道为什么发布和部署到web服务器时运行时版本会有所不同吗

Could not load file or assembly 'MyApp.Web.XmlSerializers' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded. 
  Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

 Exception Details: System.BadImageFormatException: Could not load file or assembly 'MyApp.Web.XmlSerializers' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.

我有时也会遇到同样的问题,导致重新创建项目并使用现有的代码文件


我曾尝试将软件包更新到最新版本,但这有时会很困难,因为所有软件包都相互引用

我有时会遇到相同的问题,导致重新创建项目并使用现有代码文件

我试图将包更新到最新版本,但这有时会很困难,因为所有包都相互引用