Right. I made an ASP.NET user control that references a DLL for a specific control. I set it up in a virtual directory thus so:
http://www.mydomain.com/_myapp/app.ascx
Perfick. Then I created a temporary page that used the control:
http://www.mydomain.com/_myapp/temp/blah.aspx
Which works. Lovely jubbly. Then I tried referencing the control in an existing page:
http://www.mydomain.com/folder/page.aspx
And it doesn't work, telling me that when processing the web.config it can't find my external assembly.
I know why- instead of looking at http://www.mydomain.com/_myapp/bin for the DLL, it's looking at http://www.mydomain.com/bin
I hope someone understands what I'm on about. How can I force my user control to look in it's own bin directory, and not the web sites?