Deployment of ASP.NET application

There are a few simple steps to insure your OPC Web Controls application is deployed properly.

 

If using Visual Studio, the following text is automatically added to Web.config. In other development environments you need to add this text to support dynamic script generation:

 

<httpHandlers>

<add verb="*" path="Dart.PowerWEB.LiveControls.GetResource.aspx" type="Dart.PowerWEB.LiveControls.ResourceHttpHandler,Dart.PowerWEB.LiveControls" />

</httpHandlers>

 

This section should be placed in the configuration:system.web node in the Web.config file.

 

A "\Bin" subdirectory should be in your project's directory (many development environments create this automatically). For example, if the project is called OPCWebControlsTest, you should have a directory structure with "OPCWebControls\Bin".

Check for OPCWebControls.dll, OPCSystemsInterface.dll, and Dart.PowerWEB.LiveControls.dll  in the "\Bin" directory. Your development environment may have already put a copy there when you added OPCWebControls as a reference.

To deploy your project follow these steps

 

XCOPY or FTP your application to a directory on the target server.

Create a virtual directory on the target server that refers to the application's new directory. Of course, you can always install directly to the "wwwroot" structure.

Now access the web site using IE at "http://yourservername/OPCWebControlsTest/display.aspx".

Note: When deploying to IIS7 set the Application Pool to Classic .NET AppPool.