Getting namespace name not found for ASP.net user control
Posted
by Joel Barsotti
on Stack Overflow
See other posts from Stack Overflow
or by Joel Barsotti
Published on 2009-05-05T17:53:51Z
Indexed on
2010/04/23
12:23 UTC
Read the original article
Hit count: 374
ASP.NET
|usercontrols
So I'm having problems when I try to publish the website. I'm in visual studio 2008 sp1.
I've got a bunch of user controls and on a few pages I'm using them programatically.
I've got a reference on the aspx page <%@ Reference Control="~/UserControls/Foo.ascx" %>
Then on the code behing I use
ASP.usercontrols_foo newFoo control = (ASP.usercontrols_foo)Page.LoadControl("~/UserControls/Foo.ascx");
If I navigate to the page it works fine, but when I goto publish the website I get a compile time error.
© Stack Overflow or respective owner