I have created a new class that inherits from System.Web.UI.Page and then I can alter the web form code behind file to inherit from this new class instead.
This compiles and runs ok but when I try to open the web form in designer view it fails to open with error "An exception occurred while trying to create an instance of NewClass. The exception was 'Object Reference was not set to an instance of an object'.".
I can first switch the code behind file to inherit from System.Web.UI.Page, then edit the web form in designer, save it and the then switch the code behind back to the new class.
Does anyone know if I can open the web form up in designer without this error or the hassle of editing the code behind first?
Many thanks
Simon
This compiles and runs ok but when I try to open the web form in designer view it fails to open with error "An exception occurred while trying to create an instance of NewClass. The exception was 'Object Reference was not set to an instance of an object'.".
I can first switch the code behind file to inherit from System.Web.UI.Page, then edit the web form in designer, save it and the then switch the code behind back to the new class.
Does anyone know if I can open the web form up in designer without this error or the hassle of editing the code behind first?
Many thanks
Simon