steps to copy a complete asp .net web site with back ended SQL database to another server

Posted on 2011-05-03
Last Modified: 2012-05-11
newbie. I have to make a complete copy of a  asp .net web site ( all the files) including it's back ended SQL database and all existing data. The complete package will  then be installed on other set of machines.  need steps how to do this?
Question by:tcmmaxt
    LVL 9

    Assisted Solution

    Database is one part of the ASP.Net application.
    Their are settings in the web.config on that you need to configure it on the new server.
     connection string

    About application it is deployed on the server using IIS configuration.

    LVL 9

    Accepted Solution

    A - Data

    1 - Go to the directory that your webiste(s) are in.
    2 - Search for web.config file(s).
    3 - Inside web.config file(s) search for "connectionstring". Note: connection string can be found in anywhere in the code, in most cases they will be stored in web.config files in connectionstring tag. Backup all the databases found in your connectionstrings (your connection string should have the security information necessary and the server name which the database is in).
    4 -  Restore them to your new server.

    B - Web Sites

    1 - Copy all your web sites and paste them to their new server / folder etc.

    C - Configurating Websites

    1 - Configure IIS: You can just export and import the settings from your previous IIS. If you can't do that:
    1.a - Create the website(s) as it was in your previous server.
    1.b - Look for any virtual directories or applications in your previous website(s)
    2 - Open web.config files of your new websites and change the connection string information which contains the info of the databases you just restored.

    Author Closing Comment

    great, thank you

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
    When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
    This video discusses moving either the default database or any database to a new volume.
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    23 Experts available now in Live!

    Get 1:1 Help Now