Deploying Website in Vs 2012 RRS feed

  • Question

  • User-1064054827 posted

    I have a website that was originally built on vs 2010 (.net 4.0).

    I opened it in vs 2012 and changed the web.config "targetFramework" to "4.5" instead of "4.0" , tried to build it and it was successfull.

    There is no "Add WebDeployment" in vs 2012.What should i do to deploy the website on the server?All what i have found is for web projects,but mine is a website. 

    The website is currently running on server and using 4.0.What are the changes i should do to replace it?

    I have : Windows server 2008 R2 and IIS 7 and i have installed .net 4.5.

    Tuesday, May 21, 2013 4:38 AM


All replies

  • User-1716253493 posted

    You only need to replace new web.config

    Tuesday, May 21, 2013 4:41 AM
  • User-1064054827 posted

    An when i change smtg in the code and i want to make it online,what should i do?Previously with vs2010 i used to replace the .dll file on server with the one under "Release" folder in my web deployment folder "website1_deploy"

    Tuesday, May 21, 2013 5:03 AM
  • User1985864055 posted

    All what i have found is for web projects,but mine is a website. 

    If you have installed the latest updates for Visual Studio, the documentation on web deployment for VS 2012 applies to web site projects as well as web application projects.  See http://msdn.microsoft.com/en-us/library/dd465337.aspx and http://msdn.microsoft.com/en-us/library/dd394698.aspx

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, May 21, 2013 12:01 PM
  • User-1064054827 posted

    When i apply the steps mentioned in the article i face a problem at Publish settings stage.

    I dont have release configuration settings,only debug. And if choose debug in the preview all types are added even .vb classes and .aspx.vb,shouldnt these be hidden when posting the website online like before where they were part of .dll file?

    Another thing, let's say after a while i changed few code in a .vb class and i want to publish the changes.Do i have to reublish everything?all pages?what should i do?what should i select from the list the page.aspx where i have changed its vb code?or there is something .dll that can be replaced?

    Wednesday, May 22, 2013 3:39 AM
  • User1985864055 posted

    For all practical purposes the configuration setting doesn't make a difference for web site projects; see this forum thead:


    If you don't want to publish the .vb classes, choose the Precompile during publishing option on the Settings tab under File Publish Options.

    If you don't precompile, you can publish individual pages manually or the publish process will automatically publish only what's changed. If you precompile, the publish process will see that the .dll has changed and then republish that.

    Wednesday, May 22, 2013 12:23 PM