locked
Can't connect and update existing .NET website from new VS install with original code RRS feed

  • Question

  • User936552736 posted

    Hello, I have an existing website/web application that is using .NET. I am attempting to connect a newly built machine with VS2010 to this website so I can make modifications. I have a two fold problem. I have the original code for the site locally (given to me from the developer), but I am unable to get the local code and the website to realize that they are one in the same code so I can update it and get it to rebuild/republish the website.

    I can connect to the website, and I can open the code locally, but I can't seem to get the two to realize that they should be connected.

    When I first connect to or open the website, it tells me that I am connecting to a precompiled website and that any changes I make may break it. I have the existing code on my local computer, but it doesn't seem to be recognizing the code as being related to the website. So I can either open the code/solution locally, or I can open the website, but I cannot seem to get any changes that I make posted back to the site itself.

    I have tried to rebuild the solution/publish the website and even just rebuild individual pages, to no avail. I am not an expert with VS, but also feel as though I'm not a novice either. Could I be missing some configuration file or settings to associate the local files to the website?

    A little background, the site was originally built in a previous version of VS 2005(I think) and now I am trying to use VS2010 to make mods, is there some conversion that I missed or forgot to do?

    Any and all suggestions or assistance would be greatly appreciated!

    Thanks,

    JT

    Monday, June 10, 2013 1:07 AM

Answers

  • User418155246 posted

    Well i have always been under the impression there is no "persisten connection" between the project and the server you are deploying to.

    AFAIK its a case of build the project and upload to server, there are a few options that allow you to easily make modifications to .aspx files without recompiling them "Allow this precompiled site to be updatable" and the option "Use fixed naming and single page assemblies" which allows you to recompile and update individual pages without having to recompile and reupload most of the project.

    You could try deleting everything (after backing up ofc) off your webserver and then doing a full build and republish making sure you have the relevant options selected.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, June 10, 2013 4:50 AM

All replies

  • User418155246 posted

    Well i have always been under the impression there is no "persisten connection" between the project and the server you are deploying to.

    AFAIK its a case of build the project and upload to server, there are a few options that allow you to easily make modifications to .aspx files without recompiling them "Allow this precompiled site to be updatable" and the option "Use fixed naming and single page assemblies" which allows you to recompile and update individual pages without having to recompile and reupload most of the project.

    You could try deleting everything (after backing up ofc) off your webserver and then doing a full build and republish making sure you have the relevant options selected.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, June 10, 2013 4:50 AM
  • User-801004448 posted

    I can connect to the website, and I can open the code locally, but I can't seem to get the two to realize that they should be connected.

    So you copy original code from old machine with VS 2005 to new machine with VS2010?

    Try to open website on local computer and check publishing setting to make sure it can be published to website on internet.

    Wednesday, June 12, 2013 11:00 PM