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里的文件,否则会引起如上错误。

乌龟才背着房子过一辈子
原文地址:https://www.cnblogs.com/Yellowshorts/p/2816559.html