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" %>