Click here to Skip to main content
15,911,487 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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 'Complaint.UTILITY.Utility'.

Source Error:


Line 1: <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Utility.aspx.cs" Inherits="Complaint.UTILITY.Utility" %>

What I have tried:

It very painful that I just changed over from another programming language and i am having challenges with basic forms I create.

Please how do I address this problem, a project with all the forms working ok and next

creating a new form this error comes out.


Please assist.
Posted
Updated 13-Oct-16 19:05pm
Comments
Karthik_Mahalingam 18-Oct-16 5:33am    
could you post a screenshot of the solution folder struture and the file

1 solution

Start by looking at your Utility.aspx.cs file and check all the names carefully: namespace, class, everything. Remember that C# is case sensitive, so "utility" is not the same as "Utility", and so forth.
Then check that it's all compiled: CodeBehind=... requires compiled code in the bin folder, CodeFile=... expects an uncompiled source code file in the website folder.
 
Share this answer
 
Comments
Member 12770648 14-Oct-16 3:29am    
I created an empty form to test and it wont work the same error, it seems the project is corrupted.
OriginalGriff 14-Oct-16 3:31am    
Did you check it is compiled? Try changing "CodeBehind=..." to "CodeFile=..." in the the .aspx file.
F-ES Sitecore 14-Oct-16 4:05am    
New forms should just work, if yours are not there is something wrong with the project set-up. Try creating a new web application and create new forms and see if that works.
Member 12770648 14-Oct-16 5:41am    
I have other projects which are working fine.

I just created a new form and its ok in one of them

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900