- NET Overview
- The Survey Application
- Extending and Modifying the Survey Application
- Deploying the Survey Application
- Summary
You must follow a few steps to deploy the Survey application on your server:
-
Start by creating a database named Survey.
-
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.
-
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.
-
Compile the application once it is created.
-
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.
-
Compile the Web Service once it is created.
-
Close the projects in Visual Studio .NET. Not doing so will create a sharing violation for the next steps.
-
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.
-
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:
-
Delete the Web Reference in your Survey application.
-
Add a Web Reference to your Web Service.
-
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.