Quantcast
Channel: Web Forms
Viewing all articles
Browse latest Browse all 23244

//forms163.rssing.com/chan-8117652/article716-live.html

$
0
0

Hello,

I have followed this article to create a DLL from an ASCX control: http://msdn.microsoft.com/en-us/library/aa479318.aspx

I have then added the resultant DLL to a new Web Application as a reference.

When I use the Register syntax in my ASPX, it can't "find" the Assembly correctly (even after cleaning/rebuilding the project).  However, once I copy the DLL to the "bin" folder in Windows Explorer, then everything works properly.

My question is - why do I need to manually copy the DLL to the BIN folder, if I've added the file as a reference to my project?  Also, if I deploy/publish my project, will the DLL automatically get copied to the published location?  I've selected "Copy Local=true" for the reference - but the fact that I had to manually copy the file to the Bin folder, concerns me, since I assume when published, the DLL will not be in the published location's BIN folder.  Thanks!  Matt

<%@RegisterTagPrefix="uc1"Namespace="MyControlsNamespace"Assembly="MyControl" %>


Viewing all articles
Browse latest Browse all 23244

Trending Articles