## Installing Generic OD Web Service

## Requirements

- Micosoft Windows XP or 2003
- IIS Installed with ASP.Net
- .Net 2.0 Framework
- SqlServer Express, or SQL Server Database that service can connect to.
- OD Database

## Tasks

- unzip GenericODws.zip
- set permissions on
  - genericODws: Everyone - Read
  - genericODws: ASP.Net - Full Control
  - genericODws/App_Data: Network_Service - Full Control
- Install registry keys)

- open genericODws\bin
- right click on EventLogRegistryKey.reg
- select merge

- edit GenericODws\web.config
  - edit key="network"
  - edit key="vocabulary"
- Decide on Database location and setup database connection.
  - Edit GenericODws\web.config
  - For the connection string
  - If database is inside the App_data connection string:
    "Data Source=.\SQLEXPRESS;Integrated Security=true;User Instance=true;AttachDbFilename=|DataDirectory|[FILENAME];Database=[DATABSE_NAME]"
  - If database is local file connection string:
    "Data Source=.\SQLEXPRESS;Integrated Security=true;User Instance=true;AttachDbFilename=[PATH_TO_FILE][FILENAME];Database=[DATABSE_NAME]"
  - If database is local database connection string:
    "Data Source=.\SQLEXPRESS;Integrated Security=true;Database=[DATABSE_NAME]"
  - If database is remote connection string:
    "Data Source=[HOSTNAME];Integrated Security=true;Database=[DATABSE_NAME]"
  - In connection strings, replace [HOSTNAME],[DATABSE_NAME],[PATH_TO_FILE][FILENAME], as needed. Remove Brackets.
- Edit Page "GenericODws\BasicData.htm"
  - Add a Description
  - Add sample sites, variables and time ranges
  - Add any notes.
- rename GenericODws directory to a service name: eg DemoOD.
- move to IIS directory (eg C:\Inetpub\wwwroot)
- configure Web Application in IIS Manager
  - Open "Start>All Programs>Adminsstrative Tools>Internet Information Services Manager"
  - Open "HOSTNAME>Websites>Default WebSite"
  - Select Directory, right click properties
  - In Directory Tab, Under Application Settings, Click Create, Set Application Pool to "ASP.NET V2.0", Click OK
  - Go over to ASP.NET tab
- Go to http://localhost/[DIRECTORY]/ where [DIRECTORY] is the name of the directory
- You should see a page with a set of data

### Dataset Prep For HIS

- Need to generate a set of a shape files for the OD.
- Present steps involve opening ArcGIS, generating an XY event view

### Notes:

- You may need to delete the [DATABASE]_log.ldf file from App_data
- If there is a problem, it is probably with the database connection.
- A new admin page will be created assist in the setting of network, vocabulary, and connection string.

:

## Details:

See How to Setup OD Web Service.DOC

### Net 2.0

- Optional Component in Windows Update. Go to windows update, and select optional. Select .net Framework 2.0

### ASP.NET

- Windows 2003
- ASP.Net is not installed by default in Windows 2003. You will need to add it via the add/remove programs control panel. Add Windows Components (need screenshot)

### SQLServer Express