Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Do I need to copy the .compiled files to the production server?

I'm using a deploy project to deploy my ASP.net web application. When I build the deploy project, all the .compiled files are re-created.

Do I need to FTP them to the production web server?
If I do a small change do I need to copy all the web site again?

like image 747
Eduardo Molteni Avatar asked Sep 12 '08 14:09

Eduardo Molteni


People also ask

Do ASPX CS files need to be compiled?

aspx. cs file) must first be compiled. This compilation can happen explicitly or automatically. If the compilation happens explicitly then the entire application's source code is compiled into one or more assemblies ( .

Does pages compile in server?

Yes the code behind compiles on server with the first call and product dlls. In server, pages will compile or execute? After the pages have been compiled on dlls, on every call the system use the dll + aspx to create the page. You can call it execution, maybe not of the page but of the pool.


1 Answers

From my own research, the .compiled files must be copied to the production server, but not needed to copied every time

from Rick Strahl excellent blog:

The output from the merge utilitity can combine all markup and CodeBeside code into a single assembly, but you will still end up with the .compiled files which are required for ASP.NET to associate the page requests with a specific class contained in the assembly. However, because the file names generated are fixed you don’t need to update these files unless you add or remove pages. In effect this means that in most situations you can simply update the single assembly to update your Web.
Source

like image 111
Eduardo Molteni Avatar answered Sep 21 '22 16:09

Eduardo Molteni