2010-01-18 5 views
2

iam이 내 wcf 프로젝트에서 'System.Net.HttpStatusCode'를 사용하면 다음과 같은 오류가 발생합니다.충돌하는 DLL

'System.Net.HttpStatusCode'형식이 'C : \ WINDOWS \ Microsoft.NET \ Framework \ v2.0.50727 \ System.dll'과 'D : \ HKMP \ Branch \ NewAmelio \ amelioSL \ Web \ Services \ bin \ System.Net.dll '

HttpResponseMessageProperty property = new HttpResponseMessageProperty(); 

// Here the response code is changed to 200. 

property.StatusCode = System.Net.HttpStatusCode.OK; 

답변

2

Visual Studio 프로젝트에서 "로컬 복사"라는 System.Net.dll에 대한 참조가 있습니까? 솔루션 탐색기에서 참조를 선택한 다음 F4 키를 눌러 속성 표를 엽니 다. 이 참조는 .NET Framework가 설치된 모든 컴퓨터에서 이미 사용할 수 있으므로 Copy Local이 "false"로 설정되어 있는지 확인해야합니다.

그러면 프로젝트 폴더에있는 System.Net.dll의 복사본을 삭제하고 소스 제어에서 삭제할 수도 있습니다.

관련 문제