Data Access Worldwide Knowledge Base
Article ID 2144 Article Title ERROR: This program is a WebApp program and cannot be run standalone. Article URL http://www.dataaccess.com/kbasepublic/KBPrint.asp?ArticleID=2144 KBase Category VDF (GENERAL) Date Created 07/15/2005 Last Edit Date 07/29/2005
Article Text
PROBLEM:
I set up a new server and copied an old (VDF7) web application to my new VDF(10) based environment. When I click the compile and run button in the Studio I get the error "This program is a WebApp program and cannot be run standalone. This program must run under Visual DataFlex Web Application Server. Please click OK to close this program."
What do I need to do to get it working? The application is called webapp.src. There are WBOs and it ran well before.
SOLUTION:
Since Visual DataFlex 9.1, when you try to run WebApp.Exe as a standalone application (e.g. double click on the EXE listed in Windows Explorer), you will see the error above. So the Visual DataFlex Studio does not see the application as a web application. This could be proven by going to the program properties (Program pulldown, Properties option) and looking at the 2nd tabpage labeled "Web Application". The information there will be grayed out.
The Visual DataFlex Studio determines via the webapp.cfg file if the application is a web application. If the section [WebApp] is missing in the CFG file (or has another name) the application is not a Web Application. The .CFG file is automatically generated by Visual DataFlex Studio 9.1 and higher when saving an application. Since this application came from an older version in which the webapp.cfg did not exist and you did not use the migration tools Data Access provides, the Studio did not really know it was a weba pplication and did not create the [WebApp] section.
Note: This developer had a second problem that does not show in this error but is related. The new application was not registered with the Web Application Administrator tool as a web application for the server. In fact, there was no virtual directory because this was a new server. When registering the application in the administrator utility, the virtual directory is created for you.
Contributed By:
Vincent Oorsprong
Company: Data Access Worldwide
email: vincent.oorsprong@dataaccess.eu
Web Site: http://www.dataaccess.eu
Email this Article
Email this Article to a Colleague
Send Feedback on this Article to Data Access Worldwide
Copyright ©2010 Data Access Corporation. All rights reserved.
The information provided in the Data Access Technical Knowledge Base is provided "as is" without warranty of any kind. Data Access Corporation disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. In no event shall Data Access Corporation or its suppliers be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages, even if Data Access Corporation or its suppliers have been advised of the possibility of such damages. Some states do not allow the exclusion or limitation of liability for consequential or incidental damages so the foregoing limitation may not apply.