Click here to Skip to main content
15,886,963 members
Please Sign up or sign in to vote.
1.80/5 (2 votes)
See more:
Server Error in '/' Application.
--------------------------------------------------------------------------------

Compilation Error 
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. 

Compiler Error Message: ASPNET: Make sure that the class defined in this code file matches the 'inherits' attribute, and that it extends the correct base class (e.g. Page or UserControl).







--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272 


I just created a form and while running i am getting this error. how to solve this pls help.
Posted
Updated 26-Mar-13 0:57am
v2
Comments
ZurdoDev 26-Mar-13 7:17am    
The error tells you what is wrong. It can't compile your page. Look at the inherits attribute and make sure it matches the class.
P_Dash 26-Mar-13 7:25am    
Provide the Code you used in your page.

1 solution

i guess you have added a wrong name in "inherits" attribute of the Page Directive just recheck the class name (.cs class name ) of your aspx page
 
Share this answer
 

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