Deploying the Survey Application

You must follow a few steps to deploy the Survey application on your server:

  1. Start by creating a database named Survey.

  2. Then, restore the database that can be obtained from the Web site. (The page that has a link to this download is www.ASPNET-Solutions.com/Chapter_3.htm.) A SQL Script also is available in the same place you can use it in SQL Query Analyzer to create the database.

  3. Next, run Visual Studio .NET. Create a project on the server named Survey for a C# project, or SurveyVB for a VB project. You'll have to make sure you select the appropriate (C# or VB) type of ASP.NET project.

  4. Compile the application once it is created.

  5. Now, create a project on the server named TheSurvey for a C# project, or TheSurveyVB for a VB project. Here again, you'll have to make sure you select the appropriate (C# or VB) type of ASP.NET Web Service project.

  6. Compile the Web Service once it is created.

  7. Close the projects in Visual Studio .NET. Not doing so will create a sharing violation for the next steps.

  8. Make sure you have downloaded the zipped projects from the Web site. Unzip them (the Survey/SurveyVB application and the The Survey/TheSurveyVB Web Service) into the default Web site directory (usually c:\inetpub\wwwroot). You will be asked if you want to overwrite existing directories answer Yes.

  9. Open the application project. Check the Global.asax file to make sure that the database connection string matches the connection string for your situation. Compile it. Do the same with the Web Service.

All of this is easy so far, but here's the more difficult part. The application is using a Web Reference to the Web Service on the www.ASPNET-Solutions.com server. That's OK (except that you're using my bandwidth!), but any changes you make to the Web Service will have no effect when your application runs. To fix this, do the following:

  1. Delete the Web Reference in your Survey application.

  2. Add a Web Reference to your Web Service.

  3. Change the references in the code from the class to my Web Service to the class name that wraps your Web Service.

Your Survey application should now be ready to use and ready to modify as you see fit.



ASP. NET Solutions - 24 Case Studies. Best Practices for Developers
ASP. NET Solutions - 24 Case Studies. Best Practices for Developers
ISBN: 321159659
EAN: N/A
Year: 2003
Pages: 175

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net