How to load the finished Asp.Net Webforms application on the IIS web server?
So far, I have always uploaded the complete Asp.Net Webform application with all the files to the IIS web server and triggered a compilation there.
The correct procedure, however, is to compile the Asp.Net Webforms application locally and then publish it to the local /bin/release/publish directory
Under the Publish Settings you can set the creation options better
Depending on the application, it is advisable to recreate and precompile the output
the File Publish Options:
ยท Delete all existing files prior to publish
ยท Precompile during publishing
ยท Exclude files from the App_Data folder
If the compilation leads to an error, the error causes are best found in the output file
In the output file you can also see the error causes:
For example, here is a file missing ..
Error: Copying file Skins \ qsf.css to obj \ Release \ AspnetCompileMerge \ Source \ Skins \ qsf.css failed. Could not find file 'Skins \ qsf.css'.
2>
Often these are excess files that can be safely deleted or excluded from the project
After that you can download all files directly from the / bin / release / publish
Take and upload directly to the web server.
As you can see, the whole .cs and .vb files are missing in the bin / release / publish directory