我們最近升級了網站項目,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部分也突出顯示了類名,因此可以找到它。