我们最近升级了网站项目,Visual Studio 2010中升级到Visual Studio 2010后 - 类型或命名空间名称xxxxxxxxx_ascx'不存在命名空间存在“ASP”
我现在得到这个错误,每当我尝试使用“允许此预编译的网站可更新”进行发布。
这工作以前使用Visual Studio 2008,所以我不知道它为什么现在不工作。
The type or namespace name 'xxxxxxxxx_ascx' does not exist in the namespace 'ASP'
(are you missing an assembly reference?)
导致错误的行都是这样做的。
ASP.content_Controls_Info_ascx infoControl = new ASP.content_Controls_Info_ascx();
infoControl.Stages = query.ToList();
PlaceHolder1.Controls.Add(infoControl);
所以点网框架仍然是3.5
该网站建立罚款,并发表作品没有我还没有升级别的“允许此预编译站点可更新”检查。代码中的content_Controls_Info_ascx部分也突出显示了类名,因此可以找到它。