Recently I migrated vb.net application from Windows Server 2003 to 2008 R2. Some urls were not working .. Just displayed the following error.
######## ######### ####### ########## ######## ######## ######## ########## ###
Server Error in ‘/AssessmentsV2’ 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: Could not load type ‘CBI.login2’.
Source Error:
Line 1: <%@ Page Language=”vb” AutoEventWireup=”false” Codebehind=”login.aspx.vb” Inherits=”CBI.login2″ %> Line 2: <!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.0 Transitional//EN”> Line 3: <HTML> |
Source File: /assessmentsv2/xxx/login.aspx Line: 1
Version Information: Microsoft .NET Framework Version:2.0.50727.5477; ASP.NET Version:2.0.50727.5483
######## ######### ####### ########## ######## ######## ######## ########## ###
I DID lot more researches, when i see this error “An error occurred during the parsing of a resource required to service this request.” None of them are working for my scenario except one.. Solution worked for me was just convert the web folder to an Application in IIS.
[wp_ad_camp_2]
Open IIS and select the website and the appropriate folder that needs to be converted. Right click and select convert to Application.
Say good bye to “An error occurred during the parsing of a resource required to service this request. “
[wp_ad_camp_3]