Portal Engine Questions on portal engine and web parts.
Version 6.x > Portal Engine > Error in new webpart development.. View modes: 
User avatar
Member
Member
sansugoi_sayounara-hotmail - 12/27/2011 10:38:11 PM
   
Error in new webpart development..
Hi all,

When I try to develop a new test webpart as per the instruction given in the developer guide..but when I applied the webpart in page..

It is giving error:
HelloWorld.ascx.cs(11): error 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).

Please guide me in this as this is test webpart, if it will be working then I can continue with nextwebpart.. asI m new to this..

User avatar
Kentico Support
Kentico Support
kentico_radekm - 12/31/2011 11:21:14 AM
   
RE:Error in new webpart development..
Hello.

Are you using web project or web application? In general, this is ASP.NET error and you can find many articles online, however the usual problem could be if value of "Inherits" parameter in your <%@ Control ... %> directive does not correspond with class name in code-behind. Could you please check it?

Best Regards,
Radek Macalik