ASP.Net error - type is not compatible with the type of control

后端 未结 3 1859
太阳男子
太阳男子 2020-12-19 07:04

I have a web site i created using VS2012 web edition,

Running a VB.net asp web site,

In the VS2012 debug/release mode it compiles and everything works good,

3条回答
  •  [愿得一人]
    2020-12-19 07:52

    OK,

    So after trying a lot of stuff that didnt work i found a solution, i dont like this solution but it works,

    I went to the page.designer.vb file, and then looked for the 'html' and 'Head1' properties that were generated there,

    In there i replaced their types to System.Web.UI.HtmlControls.HtmlGenericControl

    Afterwards, it worked.

    Weird bug, nothing else (including the "hot fixes" that are mentioned in other posts helped.

    Hope this would help some one out there .

提交回复
热议问题