MVC已部署的应用程序错误:无法加载文件或程序集 [英] MVC Deployed Application Error: Could not load file or assembly

查看:110
本文介绍了MVC已部署的应用程序错误:无法加载文件或程序集的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,



我已经发布了一个连接Oracle数据库的MVC网站。已根据需要配置所有服务器设置。



问题:当我在本地运行应用程序时它工作正常,但是从服务器我收到以下错误:无法加载文件或程序集''XXX.YYY ''或其中一个依赖项。系统找不到指定的文件。



这是我的第一个mvc应用程序,错误并不是很清楚,因为它是一般化的因为一切都在服务器上。



如果您对可能的内容有任何疑问,请协助。



关注

Hi there,

I have published a MVC website interfacing an Oracle Database. All server settings have been configured as necessary.

Problem: When I run the application locally it works fine, but from the server I get the following error: "Could not load file or assembly ''XXX.YYY'' or one of its dependencies. The system cannot find the file specified."

This is my first mvc application and the error is not really clear as it is generalized as everything is on the server.

If you have any suspicions on what it could be then please do assist.

Regards

推荐答案

确保您的应用程序使用的所有私有程序集都已正确部署到iis。你怎么识别?您说它正在运行其bin目录的本地应用程序和您部署的应用程序到iis bin目录文件的版本相同。
Make sure your application''s all private assemblies which you use to your application are properly deployed it to iis. How you can identify? Your local application which you say that it is working its bin directory and your deployed application to iis bin directory files are same with same version.


这篇关于MVC已部署的应用程序错误:无法加载文件或程序集的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆