I am getting the following error message.
Any ideas how to resolve this?
Compilation Error Description: An error occurred during the compi开发者_开发问答lation 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).
Source Error:
Line 1: using System;
Line 2: using System.Data;
Line 3: using System.Data.SqlClient;
It's exactly what the error says:
Your .ASPx file Page header has 2 atributes related to your issue: CodeFile and Inherits. The file referenced in the CodeFile attribute must have a class with the same name defined in the Inherits attribute and this class must be a Page or a UserControl.
If this doesn't solve your problem. Let me know.
精彩评论