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" %>
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.
REFERENCES
For more information, click the following article number to view the article in the Gizmox Knowledge Base: