Visual Studio無法識別ASP.NET的“asp”標籤首碼

來源:互聯網
上載者:User

  今天遇到很奇怪的現象,我的Visual Studio 2008突然無法識別ASP.NET中的“asp”標籤首碼,開始以為是Visual Studio出問題了,重啟系統後還是沒有解決,然後在“添加和刪除程式”中修複了一遍Visual Studio,問題還是沒有解決。上Google一搜尋,有結果,在一個MSDN的部落格中看到:

I blogged earlier that in VS 2005 we switched from using static XML schemas to automatically generating them using reflection on Web controls. XML schemas are generated on demand as you open pages in your Web site. They contain information about ASP.NET controls, custom and user controls. You can find generated files cache in

C:\Documents and Settings\[Username]\Application Data\Microsoft\VisualStudio\8.0\ReflectedSchemas

So, the first thing you want to do if you see dreaded "'asp' is an unrecognized tag prefix or device filter" error is to close all VS instances and then delete the folder contents. Restart VS, open your Web site and we will generate schemas again.

  然後我就把C:\Documents and Settings\[Username]\Application Data\Microsoft\VisualStudio\9.0刪掉(沒事,VS會重建的),再啟動VS開啟項目,一切正常了。

  為什麼會出現此情況呢?那是因為我重新換了一個Windows使用者,然後把舊使用者裡的Application Data複製過來了,VS可能就不能識別ReflectedSchemas下面的內容,所以全部“asp”標籤首碼都無法識別了。

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.