deploy ASP.NET project to another server

Hi,

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?
XTOAsked:
Who is Participating?
 
tomcahillCommented:
yes, if you're publishing the pre-compiled version that is the best way to go.
0
 
tomcahillCommented:
I would use Copy Website, under the website menu
0
 
XTOAuthor Commented:
Hi,
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,
http://weblogs.asp.net/scottgu/archive/2010/07/29/vs-2010-web-deployment.aspx
to help me get ideas.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.