PC Review


Reply
Thread Tools Rate Thread

The base class includes the field but its type is not compatible with the type of control.

 
 
Daniel Melo
Guest
Posts: n/a
 
      8th Jan 2004
I have been looking for the solution of this problem for several months and
I could not solve.

I will try to post something again :

Facts :

a) I have a custom web control derived from DataGrid. Its fullname is :
MyNameSpace.MyDataGrid.
b) I have a ancestor class called BasePage that is derived from
System.Web.UI.Page. All my web pages inherits from BasePage class.
c) In BasePage class there is field of MyNameSpace.MyDataGrid. Just like
this :

protected MyNameSpace.MyDataGrid datagrid;

d) I have a web page called default.aspx (derived from BasePage class) that
has an instance of MyDataGrid, just like :

<cc1:mydatagrid AutoGeneratoColumns="true" id="datagrid"></cc1:mydatagrid>
(some parameters not shown)

Note that the instance datagrid is already declared in the BasePage class,
so it is not declared on default.aspx.cs. (Default.aspx.cs inherits from
BasePage class).

Everything worked fine for several months, until some problem began to
happen :

Parser Error :
The base class includes the field 'datagrid' but its type
(MyNameSpace.MyDataGrid) is not compatible with the type of control
(MyNameSpace.MyDataGrid).

This error only occurs in random times. The application runs okeys, but in
some moments this error begin to occur in everypage that has an instance of
MyDataGrid. So, we restart the IIS and the application backs to normal. It
runs OK for several days until the this error come back.

We tracked the performance counters of the Web Server and we could not
notice any strange behavior that could lead to that.

I dont know what do anymore.

Any ideas are wellcome.

Thanks in Advance,

Daniel Melo


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Customize DataContractSerializer to use class name as tag nameinstead of base class name + type attribute Achim Domma Microsoft C# .NET 1 14th Aug 2008 09:19 AM
Error: The base class includes the field 'Left1', but its type (left) is not compatible with the type of control (ASP.left_ascx). error John Dalberg Microsoft ASP .NET 1 13th Feb 2007 02:25 PM
User Control codebehind type not compatible with ASP type? =?Utf-8?B?TSBL?= Microsoft ASP .NET 0 22nd Nov 2004 09:39 PM
Undecipherable Error Message: The base class includes the field 'ShowColor1'... Eric Microsoft ASP .NET 0 2nd Apr 2004 12:06 AM
variable type that can be declared in a base class this is accessible only to classes that inherit the base class Dan Microsoft ASP .NET 1 24th Mar 2004 09:34 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:09 AM.