Monday, March 30, 2009

ERRMSG: 2.0 .NET Framework Error: The format of the file 'dotnetCHARTING' is invalid.

With the official release of ASP.NET 2.0 along with the 2.0 .NET Framework and Visual Studio 2005 .netCHARTING has been updated to natively support such environments.
If you get the following error:

Server Error in '/dotnetcharting' Application.--------------------------------------------------------------------------------
Parser ErrorDescription: An error occurred during the parsing of a resourcerequired to service this request. Please review the following specificparse error details and modify your source file appropriately.
Parser Error Message: The format of the file 'dotnetCHARTING' is invalid.
Source Error:
Line 1: <%@ Page Language="C#" debug="true"Description="dotnetCHARTING Component"%>Line 2: <%@ Register TagPrefix="dotnet" Namespace="dotnetCHARTING"Assembly="dotnetCHARTING"%>
Source File: c:\inetpub\wwwroot\dotnetcharting\csharp\features\SonBox.aspxLine: 2
...
--------------------------------------------------------------------------------Version Information: Microsoft .NET Framework Version:1.1.4322.2032;ASP.NET Version:1.1.4322.2032
-------------------


You can see above the error references ASP.NET Version:1.1.4322.2032. This indicates the application you have configured in IIS for .netCHARTING is setup to use the previous framework version.

RESOLUTION:
1) Open the Internet Information Services (IIS) Manager.
2) Right click properies on the web site or directory in use.
3) .NET 2.0 adds a new tab to the properties called "ASP.NET" with a version drop down.
4) Select 2.0 and hit apply.

No comments: