Container12
 Knowledge Base

KB205: parser error on line 1 of the global.asax

Article ID : 205
Last Review : Monday, April 07, 2008
Revision : 1

SYMPTOMS

When you use Global.asax, you may receive the following "parser error on line 1 of the global.asax" error message:
"parser error on line 1 of the global.asax"
<%@ Application Codebehind="Global.asax.cs" Inherits="WebGuiTest.Global" %>

Back to the top

CAUSE

This problem occurs because Visual WebGui project under the hood is actually a ASP.NET project so you have most of ASP.NET features and bugs apply to VWG as well. The way VWG is implemented is that ASP.NET base objects and interfaces are shared between the two environments. What VWG actually does is to provide ASP.NET with a different request pipe line processing that enables WinForms over web programming. VWG mimics the operation of WinForms and does not share classes as WinForms classes are not optimized to execute in a multi threaded environment. The VWG classes are GUI-less lightweight classes that are based on the unique VWG communication layer enabling decoupling of GUI from the actual object model.

Back to the top

WORKAROUND

To work around this problem, complete one of the following steps:
  1. Remove Global.asax file from your project.

or

  1. Do not implement application and session usage within Global.asax file

Back to the top

STATUS

Gizmox has confirmed that this is a by design behavior in the Gizmox products that are listed in the "Applies to" section.

Back to the top

MORE INFORMATION

Steps to reproduce the behavior

  1. STEP1
  2. STEP2
    <sample code="goes here" />

Back to the top

REFERENCES

For more information, click the following article number to view the article in the Gizmox Knowledge Base:
KB_____**KB_TITLE_HERE**

Back to the top

APPLIES TO
  1. All Servers versions

Back to the top

.NET Web, Cloud and Mobile application delivery platform | Sitemap | Terms of Use | Privacy Statement | Copyright © 2005-2011 Visual WebGui®       Visual WebGui weblog on ASP.NET Visual WebGui Group on LinkedIn Visual WebGui updates on Twitter Visual WebGui Page on Facebook Visual WebGui YouTube Channel Visual WebGui Platform News RSS