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
RSS
Hi I hope some can help me with this as its driving me nuts..
I have an asp.net web application and am developing it in visual studio 2010 express. I have recently created some new pages( these werre copied from existing files). these work fine in the development environment but when i publish i get the error
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......
Ihave searched for solutions and tried changing from codebehind to codefile but that doesnt work, i have checked the designer.cs files and the class names and namespace are OK and tie up, i have also tried clearing out the bin directory, i have restarted
IIS on the server and recycled it too but its not made any difference. please has anyone got any other suggestions.
This is happening on several new files i have created, below is the error that occurs.
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 'SavMeMo.Gifts_for_her'.
Source Error:
Line 1: <%@ Page Language="C#" MasterPageFile="DE.Master" AutoEventWireup="true" CodeBehind="Gifts_for_her.aspx.cs" Inherits="SavMeMo.Gifts_for_her"%> Line 2:
Line 3: <%@ Register src="ResultSet.ascx" tagname="ResultSet" tagprefix="uc2" %>
the header of the source file in question is below:
Please check you project's <ProjectName>.csproj file where it lists all the files in the project. This file keeps the listing of all the files within project and their attributes as well like code behind/designer files as well. Have a look an xml entry for
a page.
mrorange2007
Member
20 Points
31 Posts
An error occurred during the parsing of a resource required to service this request. Please revie...
Nov 15, 2011 11:53 AM|LINK
Hi I hope some can help me with this as its driving me nuts..
I have an asp.net web application and am developing it in visual studio 2010 express. I have recently created some new pages( these werre copied from existing files). these work fine in the development environment but when i publish i get the error
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......
Ihave searched for solutions and tried changing from codebehind to codefile but that doesnt work, i have checked the designer.cs files and the class names and namespace are OK and tie up, i have also tried clearing out the bin directory, i have restarted IIS on the server and recycled it too but its not made any difference. please has anyone got any other suggestions.
This is happening on several new files i have created, below is the error that occurs.
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 'SavMeMo.Gifts_for_her'.
Source Error:
Line 1: <%@ Page Language="C#" MasterPageFile="DE.Master" AutoEventWireup="true" CodeBehind="Gifts_for_her.aspx.cs" Inherits="SavMeMo.Gifts_for_her"%> Line 2: Line 3: <%@ Register src="ResultSet.ascx" tagname="ResultSet" tagprefix="uc2" %>the header of the source file in question is below:
<%
@ Page Language="C#" MasterPageFile="DE.Master" AutoEventWireup="true" CodeBehind="Gifts_for_her.aspx.cs" Inherits="SavMeMo.Gifts_for_her"
%>
<%
@ Register src="ResultSet.ascx" tagname="ResultSet" tagprefix="uc2"
%>
<%
@ Register src="sideresults2.ascx" tagname="sideresults2" tagprefix="uc4"
%>
<%
@ Register src="SearchControl.ascx" tagname="SearchControl" tagprefix="uc1"
%>
Thanks stephen
Pankaj.Sharm...
Contributor
2350 Points
387 Posts
Re: An error occurred during the parsing of a resource required to service this request. Please r...
Nov 15, 2011 12:33 PM|LINK
Please check you project's <ProjectName>.csproj file where it lists all the files in the project. This file keeps the listing of all the files within project and their attributes as well like code behind/designer files as well. Have a look an xml entry for a page.
You should correct the entries manually in this file if they are not properly associated as shown above.
Hope this helps!
sujithkumar
Contributor
3744 Points
739 Posts
Re: An error occurred during the parsing of a resource required to service this request. Please r...
Nov 15, 2011 12:40 PM|LINK
HI,
Refer the below link
http://www.asprunner.com/forums/topic/1419-parser-error-message-could-not-load-type-project/
Please make sure the version is installed in the Production server and the version which you are using in your local machine same are not.
mrorange2007
Member
20 Points
31 Posts
Re: An error occurred during the parsing of a resource required to service this request. Please r...
Nov 15, 2011 12:43 PM|LINK
Thanks for you reply. yes it seems to OK, i have posted it below
<Compile Include="Gifts_for_her.aspx.cs">
<DependentUpon>Gifts_for_her.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="Gifts_for_her.aspx.designer.cs">
<DependentUpon>Gifts_for_her.aspx</DependentUpon>
</Compile>
mrorange2007
Member
20 Points
31 Posts
Re: An error occurred during the parsing of a resource required to service this request. Please r...
Nov 15, 2011 12:56 PM|LINK
Thanks for the reply
I have just checked and all versions are the same on production server and dev machine