How to resolve common issues setting up ASP.NET sample pages

Document type: Tech doc  
Associated product(s): Product name: Pro Web Version: 4.0 + Implementation: Web API
Views: 1914  |  Created: 4 years agoLast updated: 4 years ago

<< More documents like this

Summary

This document highlights the configuration steps required in order to resolve common issues running QAS Pro Web 4.5’s ASP.NET sample pages in a Windows environment.

It assumes that Pro Web and the associated country data has been installed correctly. Where possible, this should be tested by running the test harness, WebConsole.exe; ensuring that it returns addresses.

Symptoms

The ASP.NET pages, i.e. the VB.NET and C# examples, after a standard installation will display the following .NET error page:

Figure 1

Solution

To overcome the error, the virtual directory needs to be configured to run as an application under IIS.

In the Microsoft Management console (Control Panels > Administrative Tools), drill down to the Web Site directories and then right click on the QAS installation directory (figure 2) and select ‘properties’:

Figure 2

Within the directory tag, click on ‘create’ to create an application:

Figure 3

By default this will be named the same as the directory, ProWebCS as shown in figure 4:

Figure 4

This will ensure that the Pro Web pages run as an application and will overcome the .NET configuration error.

Further Configuration

In additional to the steps above, it may be necessary to configure the pages to connect to the QAS Server.

A standard installation configures the QAS server to listen on port 2021. However, if the QAS Server is configured to listen on another port then the pages will need to direct requests to the new port. This is covered extensively in the QAS Pro Web Integration guide, however the table below highlights where these changes are required:

Environment

File

Constant

Updated during installation?

C#.NET

web.config

com.qas.proweb.ServerURL

Yes

VB.NET

web.config

com.qas.proweb.ServerURL

Yes

PHP

constants.inc

CONTROL_WSDL_URN

No

ASP

constants.asp

CONTROL_WSDL_URN

Yes

JAVA/JSP

web.xml

(in \WEB-INF\web.xml)

QasEndpoint

No

Related links

QAS Pro Web support zone

Was this document helpful?

What can we do to improve this information?