Inheriting Aspose.Grid in WebCustomControl

I created a web custom control which inherits from the Aspose.Grid.Web dll and then added this dll to my web application project. I then added this control to the toolbox and drag and dropped the control on my aspx page. Everthing compiled fine but when I run the web site it throws a "Object not found" error. If I add the grid directly without going through a web custom control it works fine. What am I doing wrong here? Here is the code I added on the aspx page

<%@ Register Assembly="AsposeGridWebCustomControl" Namespace="AsposeGridWebCustomControl"

TagPrefix="cc1" %>

<body>

<form id="form1" runat="server" method="post">

<div>

</div>

</form>

</body>

Hi,

I don't understand what "add the grid directly without going through a web custom control" means. I think that your derived control may has some problems. You may copy the error messages (exception stack trace information) and paste here. And you may post your source code here. I think we can find out what's wrong.

Thank you for considering Aspose.

Thanks you for the reply. There was an error in my code that was causing the problem. It has been fixed and is working now.