Updating a published asp.net website

I just published an asp.net website, after which I made changes to its source code. I added two .aspx files and then published it again

The question is, what do I need for these changes to take effect on the server. Should I replace all files, or can I just add a specific file?

I am trying to add two aspx pages to a site that already exists on the server and want to know which file I need to add next to the regular aspx file in order to take effect on the site

thanks

+4
source share
2 answers

It depends on how you deploy your code. You use the precompile option before publishing or just publishing with precompilation.

If you just publish, you can simply replace the .aspx and aspx.cs files, and the site will be dynamically recompiled.

If you precompiled it, you probably only remained with the .dll and .aspx files so that you had to deploy a new copy of the DLL file for your site and the .aspx files. MSDeploy replaces the entire site by default.

+2
source

If you just modified the aspx file, and not the code behind it, enough to publish these two files on the server as well. If you also changed the code, you also need to publish the DLL files, in which case it is probably easier to replace all the files.

+2
source

All Articles