Hello!
I tried to use Application State as given in MSDN (http://msdn.microsoft.com/en-us/library/ms178594.aspx):
I opened a WebApplicaion (C#) in Visual Studio 2008 and added Global.asax file.
And added the following code (from MSDN) in Global.asax:
Just to check, when I run the application I get the following error:
Server Error in '/' Application.
--------------------------------------------------------------------------------
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: Cannot load type with ProgID 'MSWC.MYINFO'.
Source Error:
Line 1: <%@ Application Codebehind="Glo bal.asax.cs" Inherits="WebAp plication1.Glob al" Language="C#" %>
Line 2: <object runat="server" scope="applicat ion" ID="MyInfo"
Line 3: PROGID="MSWC.MY INFO">
Line 4: </object>
Source File: /global.asax Line: 2
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.507 27.3603; ASP.NET Version:2.0.507 27.3082
Please help.
Thanks.
I tried to use Application State as given in MSDN (http://msdn.microsoft.com/en-us/library/ms178594.aspx):
I opened a WebApplicaion (C#) in Visual Studio 2008 and added Global.asax file.
And added the following code (from MSDN) in Global.asax:
Code:
<%@ Application Codebehind="Global.asax.cs" Inherits="WebApplication1.Global" Language="C#" %> <object runat="server" scope="application" ID="MyInfo" PROGID="MSWC.MYINFO"> </object>
Server Error in '/' Application.
--------------------------------------------------------------------------------
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: Cannot load type with ProgID 'MSWC.MYINFO'.
Source Error:
Line 1: <%@ Application Codebehind="Glo bal.asax.cs" Inherits="WebAp plication1.Glob al" Language="C#" %>
Line 2: <object runat="server" scope="applicat ion" ID="MyInfo"
Line 3: PROGID="MSWC.MY INFO">
Line 4: </object>
Source File: /global.asax Line: 2
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.507 27.3603; ASP.NET Version:2.0.507 27.3082
Please help.
Thanks.
Comment