編譯我們的數據訪問庫(全亞音速)時出現非常奇怪的錯誤。錯誤是亞音速2.1的錯誤
Error 35 The type name 'Web' does not exist in the type 'S3.DACL.System'
C:\Projects\S3\src\DACL\AspnetUser.cs 369 63 DACL
而且
Error 37 The type name 'ComponentModel' does not exist in the type
'S3.DACL.System'
C:\Projects\S3\src\DACL\AspnetPersonalizationPerUserController.cs 19 13 DACL
,他們是我所有的亞音速生成的類。
我有2個項目 - 一個Web項目,然後是一個名爲DACL的類庫。我的web.config亞音速的東西是這樣的:
<connectionStrings>
<add name="S3" connectionString="data source=ServerName;initial catalog=Cat1;
user id=usenrame;password=password;" />
</connectionStrings>
<SubSonicService defaultProvider="S3">
<providers>
<add name="S3" type="SubSonic.SqlDataProvider, SubSonic"
connectionStringName="S3" generatedNamespace="S3.DACL"/>
</providers>
</SubSonicService>
我今天晚上有這些錯誤,但這是由於默認的提供程序參數的類型。
任何人有任何想法,爲什麼我得到這些錯誤?我很沮喪,在最後一個小時裏,我的頭撞牆。
謝謝,就是這樣! – 2009-10-13 02:19:27