Quantcast
Channel: Visual Studio and Visual Web Developer Express
Viewing all articles
Browse latest Browse all 3509

Element 'UserControl' is not a known element error, after converting to WAP

$
0
0

I have read all kinds of blogs and posts on your site and I may have missed a solution and if I have I apologize.  But here is my problem.

I have been trying to upgrade my existing VS 2005 Web Site to a Web Application (that comes with SP1).  I followed Scott's migration tutorial [ http://webproject.scottgu.com/CSharp/Migration2/Migration2.aspx ] but I have many problems regarding UserControls.  If you can help me or point me in the right direction, that would be great.  

All my user controls report the same error.  "Element 'UserControl' is not a known element. This can occur if there is a compilation error in the Web site."

This may or may not be related to all server controls and user controls that are inside an AJAX UpdatePanel report a compile error:  "The name 'ControlName' does not exist in the current context"

The above errors are the ONLY errors I get during compile.  If you can help in any way, that would be GREAT! 

Thank you. 

Sample .aspx code, with ucObjContent errors... 

<%@ Control Language="C#" AutoEventWireup="true" Inherits="BINavigator.Dashboard_UserControls_ucLayout" Codebehind="ucLayout.ascx.cs" %><%@ Register TagPrefix="uc1" TagName="ucObjContent" src="ucObjContent.ascx" %><%= GetFrameTablePart("a") %><uc1:ucObjContent id="ucObjContent1" runat="server" /><%= GetFrameTablePart("b") %><uc1:ucObjContent id="ucObjContent2" runat="server" />


Viewing all articles
Browse latest Browse all 3509

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>