I have created a web server control ServiceControl1 and added it my Visual Studio Toolbox. Later I drag it to a page of my website
http://aspspider.info/sanjibsinha
But whenever I want to open the page
http://aspspider.info/sanjibsinha/My_ASP_NET/Custom_Control.aspx
from my default page, it gives an error like this:
<%@ Register assembly="ServerControl1" namespace="ServerControl1" tagprefix="cc1" %>
Source File: /sanjibsinha/My_ASP_NET/Custom_Control.aspx Line: 3
Why this happens if anyone explains. Should I keep that .cs file that created the conrol, in my application folder?

2 answers
is it a website or a web application? in both cases try copying the bin folder to your server.
answered 2 years ago by:
1556
Hi,
The dll of the custom control should be placed in your one of directores (Bin) of your website and add the refrence of this dll to your website before using this.
answered 2 years ago by:
0
226
Actually I tried that and failed. Probably because the server is a free space provider.