The directory '/App_Code/' is not allowed because the application is precompiled.

 

FTP 上传出现错误 :

The directory '/App_Code/' is not allowed because the application is precompiled.

解决方法:

这样的错误通常是由于网站是发布后上传至服务器,而App_Code文件夹里的文件没有删除也传到服务器上去了,其实编译后App_Code的资源已经在DLL里了,所以不必上传App_Code里的文件,否则会引起如上错误。

posted @ 2012-12-13 16:15  yellowshorts  阅读(823)  评论(0编辑  收藏  举报