发布后无法在已编译的网站中加载程序集. [英] Could not load assembly in compiled website after publish.

查看:56
本文介绍了发布后无法在已编译的网站中加载程序集.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Milind我遇到了一个问题.我的网站在开发服务器上运行良好,但是当我在生产服务器上发布网站时,出现错误无法加载程序集,请确保在访问页面之前已遵守".我该怎么办?

预先感谢.

Hi I am Milind I faced one problem. My website works well in development server, but when I publish my website on production server, it gives an error ''could not load assembly make sure that it is complied before accessing the pages''. What should I do?

Thanks in advance.

推荐答案

让我猜,VS可能已经创建了虚拟目录并从开发目录复制了文件.
但是,该目录可能未标记为应用程序!

进入IIS,展开网站"树,在默认网站"下找到正确的文件夹,右键单击该文件夹并选择属性. ``目录''选项卡上有一个标记为``应用程序名称''的条目.它必须显示为灰色,并且文本框显示默认应用程序".
只需单击创建"按钮,然后单击确定"按钮.

事情应该开始按原样进行.如果这样做没有帮助,请告诉您所看到的内容,并提供更准确的错误.
Let me guess, VS might have created the virtual directory and copied the files from the development directory.
BUT, the directory might not be marked as an application!

Go into IIS, expand the ''Web Sites'' tree, find the correct folder under ''Default Web Site'', right-click on the folder and select properties. The ''Directory'' tab has an entry labeled ''Application Name''. It must be grayed out and the text box says ''Default Application''.
Just click on the ''Create'' button and then the OK button.

Things should start working as it should. If this does not help, do tell with what you see with more exact error.


这篇关于发布后无法在已编译的网站中加载程序集.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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