简体   繁体   English

无法加载文件或程序集System.Web.Mvc,版本= 5.2.3.0

[英]Could not load file or assembly System.Web.Mvc, Version=5.2.3.0

I have an MVC project. 我有一个MVC项目。 I can run in my local environment. 我可以在本地环境中跑步。 When I deploy a web hosting on Godaddy, I get an error like this, Where do I have to look? 当我在Godaddy上部署虚拟主机时,会出现这样的错误,我该去哪里找?

Could not load file or assembly 'System.Web.Mvc, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. 无法加载文件或程序集'System.Web.Mvc,版本= 5.2.3.0,区域性=中性,PublicKeyToken = 31bf3856ad364e35'或其依赖项之一。 The system cannot find the file specified. 该系统找不到指定的文件。

<runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <dependentAssembly>
        <assemblyIdentity name="WebGrease" publicKeyToken="31BF3856AD364E35" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-1.5.2.14234" newVersion="1.5.2.14234" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="Newtonsoft.Json" culture="neutral" publicKeyToken="30ad4fe6b2a6aeed" />
        <bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="System.Web.Optimization" publicKeyToken="31bf3856ad364e35" />
        <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="1.1.0.0" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="WebGrease" publicKeyToken="31bf3856ad364e35" />
        <bindingRedirect oldVersion="0.0.0.0-1.5.2.14234" newVersion="1.5.2.14234" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35" />
        <bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35" />
        <bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
        <bindingRedirect oldVersion="1.0.0.0-5.2.3.0" newVersion="5.2.3.0" />
      </dependentAssembly>
    </assemblyBinding>
  </runtime>

Even know Godaddy is hosting the site, I don't think they are the culprit of the error. 即使知道Godaddy托管了该站点,我也不认为它们是错误的罪魁祸首。

I would check the version of your reference with the version in the config. 我会用配置中的版本检查您的参考版本。 You currently have 5.2.3 but the actual reference could be 5.2.2 or something of the sorts. 您目前有5.2.3,但实际参考可能是5.2.2或类似的东西。 An example would be... 一个例子是...

Under References I have EntityFramwork.dll Version 5.0 , But the web.config shows that I am using EntityFramwork.dll Version 6.0 . 在“引用”下,我有EntityFramwork.dll版本5.0 ,但是web.config显示我正在使用EntityFramwork.dll版本6.0 This dll will be in your bin folder as well. 该dll也将在您的bin文件夹中。

I would also check the iis settings in Godaddy. 我还将检查Godaddy中的iis设置。 If that still does not work check your framework and ensure that godaddy supports your version. 如果那仍然不起作用,请检查您的框架并确保Godaddy支持您的版本。 You should see this in the iis settings. 您应该在iis设置中看到它。

I use godaddy hosting too. 我也使用Godaddy托管。 I have not had much issue with this. 我对此没有太多问题。 I do set up my PC as a server and do my publishing there. 我确实将PC设置为服务器,并在那里进行发布。 Then I copy over the published files. 然后,我复制发布的文件。 This seems to help deter main were the bug is. 这似乎有助于阻止主要的bug。 On my side or godaddys. 在我这边还是哥们。

Sometimes people are quick to mark you down when they don't fully understand the issue. 有时,当人们不完全了解该问题时,他们会很快将您打倒。 I would like for those to remain quite. 我希望那些人保持不变。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 部署到Azure问题:无法加载文件或程序集&#39;System.Web.Mvc,版本= 5.2.3.0…清单不匹配问题 - Deploy to Azure issue: Could not load file or assembly 'System.Web.Mvc, Version=5.2.3.0…manifest not match issue 无法加载文件或程序集“ System.Web.MVC,版本4.0.0.0” - could not load file or assembly 'System.Web.MVC, version 4.0.0.0,' 无法在MVC 5中加载文件或程序集&#39;System.Web.Mvc&#39; - Could not load file or assembly 'System.Web.Mvc' in mvc 5 无法在单元测试中加载文件或程序集&#39;System.Web.Mvc - Could not load file or assembly 'System.Web.Mvc In Unit Test 无法加载文件或程序集System.Web.Mvc - Could not load file or assembly System.Web.Mvc 使用Autofac获取错误“无法加载文件或程序集&#39;system.web.mvc版本= 5.1.0.0” - Using Autofac get error “could not load file or assembly 'system.web.mvc version=5.1.0.0” 无法在“新”框中加载文件或程序集&#39;System.Web.Mvc,版本= 3.0.0.0 - Could not load file or assembly 'System.Web.Mvc, Version=3.0.0.0 on NEW box 无法在服务器上加载文件或程序集&#39;System.Web.Mvc,Version = 3.0.0.0 - Could not load file or assembly 'System.Web.Mvc, Version=3.0.0.0 at server 无法加载文件或程序集&#39;System.Web.Mvc,版本= 5.2.3,区域性=中性,公钥 - Could not load file or assembly 'System.Web.Mvc, Version=5.2.3, Culture=neutral, PublicKey 出现错误-无法加载文件或程序集&#39;System.Web.Mvc,版本= 4.0.0.0 - getting error-could not load file or assembly 'System.Web.Mvc, Version=4.0.0.0
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM