Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


deploy ASP.NET project to another server

Posted on 2012-09-18
Medium Priority
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
  • 2

Expert Comment

ID: 38412232
I would use Copy Website, under the website menu

Author Comment

ID: 38414621
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.

Accepted Solution

tomcahill earned 900 total points
ID: 38414652
yes, if you're publishing the pre-compiled version that is the best way to go.

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
How can you see what you are working on when you want to see it while you to save a copy? Add a "Save As" icon to the Quick Access Toolbar, or QAT. That way, when you save a copy of a query, form, report, or other object you are modifying, you…
Suggested Courses
Course of the Month13 days, 19 hours left to enroll

580 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