

In this case, you need to delete special files created before, please create backup first ) Instead of publishing of compiled web site, you can use XCOPY and site will be compiled on web server. You probably published compiled web site before. I want to have /App_Code folder on web server Just re-publish your web site and new classes will be available on web server as compiled assemblies in /bin folder.

In this case, you don't need to have /App_Code folder on web server side. So what to do? I need classes from /App_Code folder and I published compiled site
#Appcode dismiss find in path code
In that case, you can't add new source code (in /App_Code folder). The error occurs if you published your web site as already compiled. When these files are uploaded to /App_Code folder, they are automatically compiled to assemblies and can be used like assemblies in /bin folder. Similar to /bin folder, /App_Code folder also contains classes, but in form of source code as. bin folder contains classes in form of compiled assemblies, scoped to the current application. So, if you named a folder "App_Code" but you didn't know that this name is reserved, you can simply rename it, and the error will disappear. Depending of your case, there are three possible scenarios: You don't need /App_Code/ folderĪpp_Code folder, like /bin folder, have special function in ASP.NET application and you can't named ordinary folders with this name. This error could be very confusing, but luckily solution is simple. "The directory /App_Code is not allowed because the application is precompiled" If you try to add /App_Code/ folder to your web application, in some scenarios is possible that site will return this error: Explained Error: The directory /App_Code is not allowed.
