dnn:label不是已知元素 [英] dnn:label Not a Known Element

查看:221
本文介绍了dnn:label不是已知元素的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在阅读一些DNN教程,在一个教程中,作者说要为Edit.ascx添加:

I'm going through some DNN tutorials and in one tutorial, for Edit.ascx the author says to add:

<%@ Register TagPrefix="dnn" TagName="label" Src="~/controls/LabelControl.ascx" %>

使< dnn:label ID = lblName runat =服务器 /> 。但是,VS2013对dnn:label发出警告,指出 元素'label'不是已知元素。如果网站中存在编译错误,或者缺少web.config文件,则可能会发生这种情况。我试图查看其他DNN源,并且我也收到相同的警告,所以我认为它一定是安装问题。我确保将项目中的属性配置为:

so that <dnn:label ID="lblName" runat="server" /> can be used. However, VS2013 gives a warning for dnn:label saying that "Element 'label' is not a known element. This can occur if there is a compilation error in the Web site, or the web.config file is missing." I've tried to view other DNN source and I also get the same warning so I presume it has to be a setup issue. I made sure that the properties in my project are configured to:

  • Start URL: http://dnndev.me/
  • Servers: Local IIS Project Url: http://dnndev.me/desktopmodules/myproject
  • Override application root URL: http://dnndev.me

LabelControl.ascx文件确实位于〜/ controls / LabelControl.ascx,并且dnndev.me的根目录中也不缺少web.config文件。

The LabelControl.ascx file is indeed located at ~/controls/LabelControl.ascx and the web.config file isn't missing from the root directory at dnndev.me.

有人知道为什么我吗

推荐答案

这只是警告。我的模板几乎在所有情况下都收到该警告。

It is just a warning. My templates get that warning in pretty much all instances.

您可以忽略它。

这篇关于dnn:label不是已知元素的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆