Monday, June 18, 2007

Parser error in ASP.NET 2.0 web project

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: Stream is not a valid resource file.

Source Error:

Line 1:  <?xml version="1.0" encoding="utf-8" ?>
Line 2:  <locales>
Line 3:      <inactive>    

Source File: /App_GlobalResources/Locales.Portal.xml.resources Line: 1

Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42

EXPLANATION

This error comes usually when you try to run a .NET2.0 site with .NET1.1 and vice versa.

SOLUTION

  • go to the site properties in IIS
  • Open ASP.NET tab.
  • Just switch the ASP.NET version 2.0 to ver 1.1

3 comments:

  1. Hi, I found your post on the error that I got exactly when I have DNN running on IIS with ASP.NET version 2.0, DNN version 3.2.2. So after reading your post, I switched back to ASP.NET 1.1. Now the site forwarding to the current live site.

    You see, there is one live one running fine and I have identical copy of it and run it locally to test. I dont understand instead of running on my IIS, it forward to the live website.

    Any help is much appreciated. Nhi

    ReplyDelete
  2. Thanks for sharing such informative guide on .Net technology. This post gives me detailed information about the .net technology. I am working as trainer in leading IT training academy offering Dot Net Training in Chennai


    Dot Net Training in Chennai | Dot Net Training in anna nagar | Dot Net Training in omr | Dot Net Training in porur | Dot Net Training in tambaram | Dot Net Training in velachery

    ReplyDelete

You don't necessarily need to register to comment here.