gpt4 book ai didi

c# - 无法加载文件或程序集“Microsoft.Web.Infrastructure,

转载 作者:IT王子 更新时间:2023-10-29 03:41:28 29 4
gpt4 key购买 nike

我试图将我的网站上传到服务器。它在我的本地主机上运行良好,所以我将本地主机 wwwroot 文件夹中的所有内容上传到服务器并更改了连接字符串。

但是有这个错误:

Exception information: 
Exception type: InvalidOperationException
Exception message: The pre-application start initialization method Start on type RouteDebug.PreApplicationStart threw an exception with the following error message: Could not load file or assembly 'Microsoft.Web.Infrastructure, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified..
at System.Web.Compilation.BuildManager.InvokePreStartInitMethods(ICollection`1 methods)
at System.Web.Compilation.BuildManager.CallPreStartInitMethods()
at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException)

Could not load file or assembly 'Microsoft.Web.Infrastructure, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
at RouteDebug.PreApplicationStart.Start()

该项目是nopcommerce

应该如何解决这个错误?

最佳答案

您需要将 dll 包含在您的项目中并添加对它的引用。

这是 Stack 上已有的类似问题的链接: MVC3 Deployment Dependency Problems

关于c# - 无法加载文件或程序集“Microsoft.Web.Infrastructure,,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13149851/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com