blah blah blah is here! blah blah » Close

up0down
link

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?

last answered 2 years ago

2 answers

up0down
link

is it a website or a web application? in both cases try copying the bin folder to your server.

up0down
link

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.

sanjib
226

Actually I tried that and failed. Probably because the server is a free space provider.

Feedback