Upgrading
There are two upgrade options:
- Rolling Upgrade. An upgrade where you install a second instance of the services, and test
- Running Upgrade. An upgrade where you install the code over an existing instance, and test.
Prior to upgrading record the following information:
- Network Prefix
- Vocabulary Prefix
- Database Connection
- Some information for testing:
Rolling Upgrade:
Follow the instructions follow the standard install instructions in the user manual.
- Download the latest web service code
- Expand into a new directory:
- eg P:\WaterOneFlow\GenericODWS_1_0
- Right click, on directory, select properties
- In the security, set the permissions:
- (Your Service Folder): Everyone - Read
- (Your Service Folder): ASPNET - Full Control
- (Your Service Folder):IIS_WPG - Modify
- (Your Service Folder)\App_Data: Network_Service - Full Control
- In the Web Sharing tab, select "Share this site"
- Click Apply, Click ok in properties dialog
- Open IIS Admin
- In the directory security tab, Authentication and Access Control, click edit
- Check, Enable Anonymous Access
- In the ASP.NET tab, check that ASP.NET version is 2.0.50727 or higher
- you can also click "Edit Configuration" and edit the application configuration
- Go to http://localhost/(WebApplication)/Configure.aspx
- insert: Network and Vocabulary Prefixes, and database connection string. Click ok
- Click Test Database Connection
Testing:
- Go to http://localhost/(WebApplication)/
- Click on Database Test Page, see that you can connect to the database
- Click back in browser
- Click on GetVariableObject, insert VariableCode, click ok, see that information returns, Click back in browser.
- Click on GetSiteInfoOnject, insert SiteCode, click ok, see that information returns, Click back in browser.
- Click on GetValuesObject, insert SiteCode,VariableCode,BeginDate, EndDate, click ok, see that information returns, Click back in browser.
- Test in spreadsheet.
Running Upgrade:
- Make a backup by Zipping up your running web application (right click- send to compress(zip) folder)
- Download the latest web service code
- Expand into the existing directory:
- eg C:\InetPub\wwwroot\GenericODws
- Edit the Release_connectionStrings.config, and add the database ConnectionString
- Edit the Release_appsettings.config, and add the network, and vocabulary prefixes.