I am new to working with deploying a C# web application 2010. I want to use the setup and deploy template in the visual studio .net 2010 ide since that is what the previous programmer(s) used at my company. Right now I am the only programmer at my small company. I also want to mention there are is no written deployment documentation for this web application. I have used the setup and deploy project file that I generated, but it does not install the web form 2010 application to acutally run.
Thus,I am trying to determine what I could have done wrong.
Here are my question:
1. I am not exactly certain what I need to include in the project file for it to work. I can see the files that were generated by theoriginal programmers but I am not certain if I need exactly those files those particular folders.
Thus can you make a recommendation on how I determine what files to include in the deployment.?
2. Also once I deploy the application, I am not certain exactly how to test that the application to that it actually acutally runs. Basically the production application runs on IIS 7. Do you think I should deploy the application to cassini on my workstation and then see if it runs? Thus basically are there directions I can follow to see how I can test the web application? Would I deploy the web application in steps? Should I deploy the web application to cassini, then to iis on a test server?
Mahesh ChandPosted May 5, 2012, 8:36 PM
I am going to answer your second question first.
To test a web application, first you need to test everything on your local development machine where you are writing the code.
Ideally, besides your development machine, you need 2 more machines - Staging and Production. If you do not have two machines, you can get away with just one machine.
Here are the manual steps.
On this machine,
1. Create a new folder where you want to deploy your web application.
2. You need to copy all your required files (Dlls, ASPX, bin folder, images, css, scripts etc) into this folder
3. Open IIS and create a new virtual directory and match that with the folder where your files are
4. Set right permissions on this virtual directory
5. Open URL in the browser.
Read more documentation.
You can use Visual Studio to deploy it and you can also create a Setup project.
Good luck!