开发者

Getting an error in my asp.net page

开发者 https://www.devze.com 2022-12-16 10:41 出处:网络
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 thi

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消