How to fix “Could not load the assembly xxxx.dll. Make sure that it is compiled before accessing the page”

在ASP.Net开发的时候,我 将Website编译到一个临时文件夹,然后拷贝到网站目录里面,遇到这个错误:

Could not load the assembly xxx.dll. Make sure that it is compiled before accessing the page.

解决办法:

The simple solution which I can give you is…Please publish your website by right clicking on the Website in the Solution explorer. Then copy all the files from directory where your published location. Copy those files to your root directory (Do not copy the website folder itself..only files from the directory) and see if it solve your problem.

The second solution is .. Please create one virtual directory and point this Virtual directory to your application directory. Hope this solve your issue.

本文由IT Farmer的博客创作,欢迎转载并保留对本博的链接。 Tags:,

Leave a Reply