deploy ASP.NET project to another server

Posted on 2012-09-18
Last Modified: 2012-09-21

I have an ASP.NET project made in Visual Studio 2010.
We have three Windows 2008r2 virtual machine servers,
1. development
2. test
3. production

I RDP into the development server and I create my projects in Visual Studio 2010.
When I'm finished, I right-click on the main project in Solution Explorer, choose "Publish Web Site."
I choose C:\inetpub\wwwroot\applicationFoo as the destination.
Then in IIS 7.5, I go under the Default Web Site, and I make the applicationFoo folder into an application.
Then I assign the correct Application-Pool and all that.

What I've been doing so far when I want to transfer from development to test and then to production is I go to the C:\inetpub\wwwroot\applicationFoo folder, I copy and paste everything there to the same folder in the test server.
Then I configure the settings on the IIS in the test server.

Then I tried making the C:\inetpub\wwwroot\applicationFoo shared with permissions just for me (as administrator) so that I could publish from Visual Studio in development straight to the folder in test.

I don't want to make a zip file.

Is there a better way?
How about publishing to a remote site?
Question by:XTO
    LVL 9

    Expert Comment

    I would use Copy Website, under the website menu

    Author Comment

    Copy Website copies both the *.aspx files and the *.aspx.cs files, whereas a "publish" creates a compiled version in the target folder.
    I'd like to have the compiled version out there for speed and security reasons.

    So, it sounds like publishing to a shared folder on the remote virtual server might be the best option.

    There are no disagreements?

    By the way, I'm currently reading Scott Gu's blog,
    to help me get ideas.
    LVL 9

    Accepted Solution

    yes, if you're publishing the pre-compiled version that is the best way to go.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    Prologue It is often required to host multiple websites on a single instance of IIS, mostly in development environments instead of on production servers. I am sure it is not much a preferred solution on production servers but this is at least a pos…
    A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    737 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

    15 Experts available now in Live!

    Get 1:1 Help Now