2012-02-29 7 views
0

wcf 서비스를 만들었습니다. 모든 것이 잘 작동했습니다. 이제 모든 논리를 추가하는 갑자기 wcf 서비스를 사용하고있는 빌드 오류가 발생합니다. 모호한 참조가 있습니다.빌드 오류 모호한 참조 WCF

나는 서비스의 일환으로 객체를 qualifiing이 문제를 해결할 수 있으며 것은이 페이지의 모든 너를 다른 목적이 하나 제외하고 objectModel를 DLL을 참조하는 미세한

ServiceReference1.AccountCredit=GetSomeData() 

작동합니다. 나는이 해달라고 사용

<?xml version="1.0" encoding="utf-8" ?> 
- <!-- 
    This file is automatically generated by Visual Studio .Net. It is 
    used to store generic object data source configuration information. 
    Renaming the file extension or editing the content of this file may 
    cause the file to be unrecognizable by the program. 


    --> 
- <GenericObjectDataSource DisplayName="AccountCredit" Version="1.0" xmlns="urn:schemas-microsoft-com:xml-msdatasource"> 
    <TypeInfo>TestMethods.ServiceReference1.AccountCredit, Service References.ServiceReference1.Reference.cs, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null</TypeInfo> 
    </GenericObjectDataSource> 

다른 모든 개체 :

내가 더 가서 브라우저에서 서비스 참조 자체를 볼 수 있으며이 특정 객체에 어떤 이유에서 비주얼 스튜디오를 참조는 다음을 포함하는 파일을 추가 그리고 이것은 차례 차례로 클라이언트에서 불평하고있는 유일한 객체입니다.

답변

0

"MyObject"가 두 개의 다른 네임 스페이스에있는 유일한 이름 일 수 있습니다. 여기서 두 네임 스페이스는 모두 cs 파일의 맨 위에있는 using 문으로 참조됩니다.

+0

어떻게 보거나 해결할 수 있습니까? 코드는 ServiceReference1.AccountCredit = GetSomeData()를 읽어야합니다. –