데이터 액세스 라이브러리 (모두 아음속)를 컴파일 할 때 매우 이상한 오류가 발생합니다. 오류Subsonic 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
그리고 그들은 내 아음속 생성 된 모든 클래스에 있습니다.
저는 웹 프로젝트와 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>
나는 이전에 오늘 밤에 이러한 오류가 있었다,하지만 기본 제공 매개 변수의 유형 때문이었다.
누구든지 이러한 오류가 발생하는 이유는 무엇입니까? 나는 절망적이며 마지막 시간 동안 내 머리를 벽에 치고있다.
고맙습니다. 그게 다야! –