我有一個很大的vb.net web項目,我試圖升級到.net4/VS2010。在編譯期間,我收到以下錯誤:MembershipUser/System.Web.ApplicationServices在升級到.NET時出現問題4
'System.Web.Security.MembershipUser' in assembly 'System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' has been forwarded to assembly 'System.Web.ApplicationServices'. Either a reference to 'System.Web.ApplicationServices' is missing from your project or the type 'System.Web.Security.MembershipUser' is missing from assembly 'System.Web.ApplicationServices'.
我研究了這個問題,錯誤是準確的。我添加了對System.Web.ApplicationServices的引用,但我仍然遇到問題。該項目似乎沒有認識到該參考文獻已被添加。智能感知不會把它撿起來,我不能在import語句使用它,等...
組件在我的web.config的編譯部分中列出:
<assemblies>
...
<add assembly="System.Web.ApplicationServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</assemblies>
任何想法?
這樣做對我來說也是如此,同時還將中的VB/C#CompilerVersions更改爲v4.0。謝謝! –
MisterZimbu
2011-11-18 14:57:42