Last post Oct 23, 2008 11:14 PM by Thomas Sun – MSFT
Oct 21, 2008 12:57 PM|kjmcad|LINK
OK. I usually don't work with website projects, so if this seems elementary then forgive me.
Let's say I'm updating a website. I publish the website to a temp folder. Then I move what has only changed and the bin folder to the live folder. Will that break anything?
Also if I publish a website to a site, how can I turn around and use the Copy Website Wizard? I tried that and it did not work. I must have been doing something wrong.
Oct 21, 2008 01:21 PM|jasonamoss|LINK
Keep in mind that publish is different than copy. Publish will compile the code behind to the bin, so all you have is the aspx pages.
If you make a change then you should re-publish
Another option if you dont care that the vb is exposed is to just copy the site and not publish.
I also recommend that you do a final build before publish.
Oct 21, 2008 01:29 PM|kjmcad|LINK
If I make a change to the code-behind can I just copy the new dll to the bin folder?
Oct 21, 2008 01:37 PM|jasonamoss|LINK
Never tried it but in theroy yes.
Oct 23, 2008 11:14 PM|Thomas Sun – MSFT|LINK
When we perform a new build every time, aspnet_compiler.exe creates different assembly names each time without using fixed name for assembly. In this case, we cannot only copy the Bin folder to server.
With the fixed name for assembly option (By checking "Use fixed naming and single page assemblies" in Publish Web Site wizard), the name of assembly is same in each time.
For more information, see Walkthrough: Publishing a Web Site (http://msdn.microsoft.com/en-us/library/1y1404zt(VS.80).aspx) and Publishing Web Sites(http://msdn.microsoft.com/en-us/library/377y0s6t(VS.80).aspx)
I look forward to hearing from you.