considerations when deploying

cfisher440

Well-known member
Joined
Oct 11, 2005
Messages
73
Programming Experience
1-3
This my first time deploying an app with a database to a server
I have my application running on my PC locally. (http://localhost/program/program.aspx)
Now I want to put it into production.
it will be located at an address like http://www.cf.programs.com/ops/program.aspx .
The program has a database which it pulls data from as well located within the projects database directory (programs/database/db.mdb).
I wish it was as easy as copying and pasting the project from my PC to the server, but I know it's not.
I was just wondering, what are some steps I should take into consideration to have a successful deployment?
 
Not working

I did that...
I moved the files from my PC to the server (Just copied and pasted them).
Then I opened up the file with the connection string and changed it to point to the db located on the server and I get this error message when I go to the page.

Runtime Error

[FONT=Arial, Helvetica, Geneva, SunSans-Regular, sans-serif]Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.

Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".
[/FONT]
 
As you are using VS 2003 you can deploy an ASP.NET Web application using any one of the following three deployment options.
  • XCOPY Deployment
  • Using the Copy Project option in VS .NET
  • Deployment using VS.NET installer
these links below should be good enough to help you install your app properly.

http://support.microsoft.com/kb/326356/EN-US/

http://weblogs.asp.net/scottgu/archive/2006/04/05/442032.aspx (publish feature available in VS 2005 only)

http://www.15seconds.com/issue/030806.htm (part 1)

http://www.15seconds.com/issue/030820.htm (part 2)

http://www.codeproject.com/aspnet/deployingwebapplications.asp


HTH
Regards ;)
 
Figured it out

Figured it out. With some help. Thanks for the links, I checked that out and it was helpful.

I ended up using the Copy Project option in VS 2003.
From there I had to change the Execute Permissions from Scripts only to Scripts and Executablesl (Start -> Control Panel -> Admin Tools -> IIS -> Drilled down to my site -> right click -> properties -> find the directory tab and change from Scripts Only to Scripts and Executables).

F.Y.I. - If you want to re-upload your project, you have to change back to Scripts only, otherwise you get some error message (I forget what it was). And I believe you have to reboot IIS (at least I did).
 
Back
Top