Weird issue on asp .net c# application

Last post 07-08-2009 4:55 AM by CrazyChief. 4 replies.

Sort Posts:

  • Weird issue on asp .net c# application

    07-03-2009, 10:28 AM
    • Member
      point Member
    • raashid.ali1
    • Member since 07-01-2009, 6:49 AM
    • Posts 2

    The base class includes the field 'xxx', but its type (xxx) is not compatible with the type of control (xxx).


    Can any one help me to resolve this issue ?
    I am getting this error while displaying an ascx control on a web page.
    Some times the error doesn't occur but some time it does without any change. Cry

    I am using visual studio 2005 and IIS 6.0

    Regards !

    Raashid Ali

  • Re: Weird issue on asp .net c# application

    07-04-2009, 3:42 AM
    • Contributor
      2,367 point Contributor
    • akhhttar
    • Member since 02-14-2007, 8:17 AM
    • Pakistan - Lahore
    • Posts 352

    A.A Raashid,

    Please see

    • http://www.netfxharmonics.com/2006/01/User-Control-Error-base-class-includes
    • http://forums.asp.net/p/960707/3270646.aspx

    Hope it helps you

    Thanks

    Lets resolve the problem together.

    Please remember to mark the appropriate replies as answer after your question is solved, thanks

    My Blog
  • Re: Weird issue on asp .net c# application

    07-04-2009, 6:22 AM
    • Member
      point Member
    • raashid.ali1
    • Member since 07-01-2009, 6:49 AM
    • Posts 2

    Sorry the above solutions are not working...

    I am still getting the same error Frown

  • Re: Weird issue on asp .net c# application

    07-08-2009, 4:47 AM

    raashid.ali1:

    Sorry the above solutions are not working...

    I am still getting the same error Frown

     

    Strange, could you post some code here for us checking?

    Hong-Gang Chen
    Microsoft Online Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
  • Re: Weird issue on asp .net c# application

    07-08-2009, 4:55 AM
    Answer
    • Member
      698 point Member
    • CrazyChief
    • Member since 04-17-2008, 5:56 AM
    • Posts 111

    Hi,

    I had a similar issue with VS2005 after making changes in the .aspx-page where I placed a usercontrol (.ascx). After some searching I found, that the namespace of my usercontrol in the mypage.aspx.designer.cs (where the usercontrol is initialized) was changed to a wrong namespace. I had to change the namespace "by hand" to the correct namespace. Then just recompile and it should work again.


    Andi

Page 1 of 1 (5 items)