因为用了MVC,在本地是没有问题的,但是部署在服务器就出现了这个问题. 出错界面如下图 原因分析:上面的出错提示最后一句话翻译过来.找到的程序集清单定义与程序集引用不匹配.也就是程序引用的程序集版本和服务器版本是不一致的.比如我的mvc版本是3.0.1的,但运行版本是4.0的.Web服务器只装了mvc3,而没有装mvc4. 而必须保证网站的程序应用池版本与程序集运行版本一致.所以服务器需要安装mvc4.0 解决方法:在网站服务器安装mvc4.0…
环境 项目中使用了 System.Web.WebPages.Razor, Version=3.0.0.0,Nuget 还原缺失包后自动更新至 Version=3.2.5.0,编译成功,运行失败. 错误 “/”应用程序中的服务器错误.未能加载文件或程序集“System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35”或它的某一个依赖项.系统找不到指定的文件. 解决 方法1:在…
Error info: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. Solution: This is because Microsoft.We…
转自:http://www.cnblogs.com/taven/archive/2011/08/14/2138077.html 国内很多网站空间都只支持.NET 2.0 和 .NET 3.0 3.5,很少有空间商支持.NET 4的,即使有个别支持.NET 4,但是不支持MVC的默认路由访问形式. Go Daddy 的主机支持,并且费用很低,系统为 Win 2008 R2 64位,10GB网站空间,网站并发最便宜的也支持100个,PHP支持5.2和5.3,.NET支持 ASP.NET v1.0/2…
提示哪个引用修改哪个引用的属性: Could not load file or assembly 'System.Web.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. 系统找不到指定的文件.…
一.在Mvc 发布时出现如下错误: Could not load file or assembly 'System.Web.Mvc, Version=5.2.3.0... 出现错误的原因是 Mvc版本更新,发布版本号没有对应好. 解决方案: 1.web.config 修改版本号 2.views/web.config 和 area/views/web.config 修改升级后的版本号…
今天写的是一个小程序,采用webfrom 形式,.netframework4.0 项目中调用了System.Web.Helpers下的Json方法. 在本地测试没问题,结果搭建到服务器上,死活运行不正常. 报错: ex:Could not load file or assembly 'System.Web.Helpers, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its depend…
自从VS2010发布之后使用它来做开发的程序员越来越多,其中很多人使用了MVC来作为新的开发框架,但是在系统部署的时候我们也遇到诸多问题,因为目前大多数windows服务器采用的还是Windows Server 2003,所以我们就需要在服务器上安装.net framework 3.5 或4.0 之类的高版本来保证我们的系统运行. 接下来我们就来部署基于 .net framework 4.0 mvc 的应用系统,首先在服务器上安装.net framework 4.0,但是安装的时候常常遇到一个错…
试图加载格式不正确的程 异常类型 异常消息Could not load file or assembly 'System.Data.SQLite' or one of its dependencies. 试图加载格式不正确的程序. 异常环境当我把编译好的程序托管到IIS下后,访问时出现了以下问题,服务器环境是IIS 7,操作系统 Windows 7. 解决方法出现上述问题的原因是,所加载的程序集中有32位的,也有64位的,IIS 7 程序池 在Windows下.Net FrameWork是64位…
今天同事在一个服务器(winserver 2008 x64)上新建了一个IIS(7) 网站,但是报了如下错误: Could not load file or assembly 'System.Data.SQLite' or one of its dependencies. An attempt was made to load a program with an incorrect format.        如下图: 刚开始以为是权限问题,设置了所有权限还是报错: 然后又尝试了应用程序池.N…
Could not load file or assembly 'Oracle.ManagedDataAccessDTC.DLL' or one of its dependencies.  不是有效的 Win32 应用程序. (Exception from HRESULT: 0x800700C1) 解决办法 : 安装oracle 12c  客户端…
1.一般出现这个错误是因为Web.Config里面的版本号跟project用到的dll版本对应不上 更改webconfig <add assembly="System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> 或者直接把对应版本dll copy到web application folder 下面的bin PublicKeyToken可以使用sn -T命令得知…
使用FusLogVw https://stackoverflow.com/questions/4469929/could-not-load-file-or-assembly-or-one-of-its-dependencies?page=1&tab=votes#tab-top You can use FusLogVw to find out who is loading the old assemblies, just define a path for the log, and run you…
打开VS   TOOLS > OPTIONS > Projects and Solutions > WEB PROJECTS,选中 "Use the 64 bit version of IIS Express for web sites and projects".…
出现上述问题的原因是,所加载的程序集中有32位的,也有64位的,IIS 7 程序池 在Windows下.Net FrameWork是64位的,要想正确使用,需要对程序池进行配置.如下图所示:…
使用VS2010 测试ASP.NET MVC 4 Web API 在部署时候遇到了问题,发现园友有解决的方式,因此转载.         我的解决方式有两种:使用VS2015将VS2010的项目重新发布:按照下文示例将引用的dll设置为“复制本地”,重新发布即可 http://www.cnblogs.com/weiweithe/p/4218690.html#undefined 自从VS2010发布之后使用它来做开发的程序员越来越多,其中很多人使用了MVC来作为新的开发框架,但是在系统部署的时候我…
Could not load file or assembly 'System.Web.Http.WebHost, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. 系统找不到指定的文件. 如上提示错误,是缺少了System.Web.Http.WebHost,解决方法是将开发目录下的bin文件夹里的System.Web.Http.WebHost.dll拷贝到…
Could not load file or assembly 'System.EnterpriseServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. 系统找不到指定的文件. watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvemduc2ps/font/5a6L5L2T/fontsize/400/fi…
以下是从overFlow 复制过来的问题 I've read through many of the other questions posted on the same issue, but I still do not understand the cause and how to prevent it from happening. In my case, this happens on the production server. I get the same error that ha…
环境: web服务器: ip:192.168.1.32 ,安装有 Visual Studio Premium 2013 操作系统: Microsoft  Server 2008 r2+sp1 数据库服务器: ip:192.168.1.33,安装有Microsoft SQL Server 2012 操作系统: Microsoft  Server 2008 r2+sp1 操作过程: 在vs2013里利用向导SqlDataSource配置数据库连接时,点击测试连接提示成功,当点击确定时报错: ----…
本文转自:http://www.nopcommerce.com/boards/t/33637/4-errors.aspx 问题: The 3.5 solution compiles fine, and Nop.Web also compile fine, however when I try to publish to a local folder I get these four errors Error  1 Could not load file or assembly 'file:///…
Could not load file or assembly 'System.Core, Version=2.0.5.0 和autofac冲突的问题 来源:http://www.cnblogs.com/yelaiju/p/3375168.html 在部署到iis的时候会出现这个状况. 解决:下载安装这个补丁 http://support.microsoft.com/kb/2468871 http://www.microsoft.com/zh-cn/download/confirmation.a…
在部署到iis的时候会出现这个状况. 解决:下载安装这个补丁 http://support.microsoft.com/kb/2468871 http://www.microsoft.com/zh-cn/download/confirmation.aspx?id=3556 http://download.microsoft.com/download/2/B/F/2BF4D7D1-E781-4EE0-9E4F-FDD44A2F8934/NDP40-KB2468871-v2-IA64.exe 参见资…
I have installed a Web application on IIS 7.0 windows server 2008 R2 64 bit OS I am refering a oracle.DataAccess.dllWhen i try to acess the application i am getting the below message"Could not load file or assembly 'Oracle.DataAccess' or one of its d…
原文链接 Could you be missing the loaded assembly from your configuration file? Ensure you have something similar to the following within your web.config. NuGet would normally do this but maybe it hasn't and it doesn't know what to load in <dependentAsse…
Could not load file or assembly 'System.Net.Http, Version=4.2.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT…
Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. API 调用退出异常. (Exception from HRESULT: 0x800300FA (STG_E_ABNORMALAPIEXIT))  ----删除C:\WINDOWS\Microsoft.NET\Framework\版本号\Temporary ASP.NET Files 中的文件 (如果不能删除,restart)   Co…
具体提示: Could not load file or assembly 'Oracle.DataAccess' or one of its dependencies. 试图加载格式不正确的程序. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about…
IIS启动网站后报错: configuration error Could not load file or assembly 'crystaldecisions.reportappserver.clientdoc,...' 解决办法:下载SAP Crystal Reports runtime engine for .NET Framework 4 (32-bit) CrystalReportForVS_13_0_4.exe (http://pan.baidu.com/s/1sjrvCYT)…