Microsoft MVP성태의 닷넷 이야기
글쓴 사람
정성태 (techsharer at outlook.com)
홈페이지
첨부 파일
 

CTP 버전과 관리하고 있는 VPC 가 많다 보니, 어느 VPC 에 어느 버전의 .NET 3.0 CTP 버전이 설치되어 있는지 몰라서 발생한 문제였습니다. ^^; 이 에러는... .NET 3.0 RC1 로 제작된 WCF 클라이언트 프로그램을 .NET 3.0 July CTP Runtime 에서 구동시키는 경우 나타나는 오류 메시지 유형입니다. ^^;

Unhandled Exception: System.InvalidOperationException: 
Error while trying to reflect on attribute 'MessageContractAttribute' on type 'GetEmployeesRequest'.  
See InnerException for details. 
---> System.Reflection.CustomAttributeFormatException: 'WrapperName' property specified was not found. 
---> System.NullReferenceException: Object reference not set to an instance of an object.
   at System.Reflection.CustomAttribute.GetCustomAttributes(Module decoratedModule, Int32 decoratedMetadataToken, Int32 pcaCount, RuntimeType attributeFilterType, Boolean mustBeInheritable, IList derivedAttributes)
   
   --- End of inner exception stack trace ---
   at System.Reflection.CustomAttribute.GetCustomAttributes(Module decoratedModule, Int32 decoratedMetadataToken, Int32 pcaCount, RuntimeType attributeFilterType, Boolean mustBeInheritable, IList derivedAttributes)
   at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeType type, RuntimeType caType, Boolean inherit)
   at System.RuntimeType.GetCustomAttributes(Type attributeType, Boolean inherit)
   at System.ServiceModel.Description.ServiceReflector.GetCustomAttributes(ICustomAttributeProvider attrProvider, Type attrType)

   --- End of inner exception stack trace ---
   at System.ServiceModel.Description.ServiceReflector.GetCustomAttributes(ICustomAttributeProvider attrProvider, Type attrType)
   at System.ServiceModel.Description.ServiceReflector.GetSingleAttribute[T](ICustomAttributeProvider attrProvider)
   at System.ServiceModel.Description.ServiceReflector.GetRequiredSingleAttribute[T](ICustomAttributeProvider attrProvider)
   at System.ServiceModel.Description.TypeLoader.CreateTypedMessageDescription(Type typedMessageType, ICustomAttributeProvider returnAttrProvider, String returnValueName, String methodName, String defaultNS, String action, MessageDirectiondirection)
   at System.ServiceModel.Description.TypeLoader.CreateMessageDescription(MethodInfo methodInfo, Boolean isAsync, String returnValueName, String defaultNS, String action, String wrapperName, String wrapperNamespace, MessageDirection direction)
   at System.ServiceModel.Description.TypeLoader.CreateOperationDescription(ContractDescription contractDescription, MethodInfo methodInfo, MessageDirection direction, ContractReflectionInfo reflectionInfo, ContractDescription declaringContract)
   at System.ServiceModel.Description.TypeLoader.CreateOperationDescriptions(ContractDescription contractDescription, ContractReflectionInfo reflectionInfo, Type contractToGetMethodsFrom, ContractDescription declaringContract, MessageDirection direction)
   at System.ServiceModel.Description.TypeLoader.CreateContractDescription(ServiceContractAttribute contractAttr, Type contractType, Type serviceType, ContractReflectionInfo& reflectionInfo, Object serviceImplementation)
   at System.ServiceModel.Description.TypeLoader.LoadContractDescriptionHelper(Type contractType, Type serviceType, Object serviceImplementation)
   at System.ServiceModel.Description.TypeLoader.LoadContractDescription(Type contractType)
   at System.ServiceModel.ChannelFactory`1.CreateDescription()
   at System.ServiceModel.ChannelFactory`1..ctor(String endpointConfigurationName, EndpointAddress remoteAddress)
   at System.ServiceModel.ClientBase`1..ctor()
   at AnotherServiceClient..ctor() in D:\....\AnotherService.cs:line 720
   at DP2Client.Program.Main(String[] args) in D:\....\Program.cs:line 21
참고로, .NET 3.0 이 설치되지 않은 PC 에서 실행시키면 다음과 같은 오류가 나옵니다.
Unhandled Exception: System.IO.FileNotFoundException: 
Could not load file or assembly 'System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. 
The system cannot find the file specified.
File name: 'System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
   at DP2Client.Program.Main(String[] args)

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].







[최초 등록일: ]
[최종 수정일: 9/21/2006]

Creative Commons License
이 저작물은 크리에이티브 커먼즈 코리아 저작자표시-비영리-변경금지 2.0 대한민국 라이센스에 따라 이용하실 수 있습니다.
by SeongTae Jeong, mailto:techsharer at outlook.com

비밀번호

댓글 작성자
 




... [181]  182  183  184  185  186  187  188  189  190  191  192  193  194  195  ...
NoWriterDateCnt.TitleFile(s)
489정성태5/14/200722926.NET Framework: 87. .NET 2.0에서 C# 3.0 기능 사용하기
488정성태5/14/200721439Windows: 25. Multiple Input Queues
487정성태4/24/200727056VC++: 32. VC++에서 bool이 가지는 의미 [3]
486정성태3/22/200726072Windows: 24. DreamScene과 DWM(Desktop Window Manager)의 관계 [1]
485정성태3/17/200721445오류 유형: 32. VS.NET 2005 - x64 환경에서의 mixed 디버깅 환경 구성
484정성태3/17/200720547오류 유형: 31. SQL Compact Edition 설치 후 오류
483정성태3/17/200741979오류 유형: 30. x64 환경: .NET + COM 프로젝트 실행 시 오류 - 80040154 [2]
482정성태3/17/200731432Team Foundation Server: 17. 팀 프로젝트 접속 및 사용
481정성태3/17/200725396Team Foundation Server: 16. 팀 프로젝트 읽기 전용 사용자 등록
480정성태3/14/200723602.NET Framework: 86. GC(Garbage Collector)의 변화
479정성태3/14/200727541개발 환경 구성: 25. D820 - ReadyBoost 구동
478정성태3/14/200726973개발 환경 구성: 24. D820 고주파음 문제
477정성태3/14/200736249개발 환경 구성: 23. 비스타 x64 버전에서 서명되지 않은 드라이버 사용 [4]
476정성태3/9/200731704개발 환경 구성: 22. D820 노트북 - 설치 및 BitLocker 구성 [1]
475정성태3/6/200726074.NET Framework: 85. 공용 프로퍼티 자동 생성
474정성태3/5/200724305.NET Framework: 84. Lambda 표현식 응용 사례 [1]
473정성태3/4/200731364디버깅 기술: 14. TFS 오류 추적(TF53010, TF14105)
472정성태3/3/200730536디버깅 기술: 13. 예외 발생 시 Minidump 생성 - WinDBG [3]파일 다운로드1
471정성태3/1/200719631디버깅 기술: 12. Managed Method에 Break Point 걸기
469정성태2/28/200731255디버깅 기술: 11. (Managed) Main Method에 Break Point 걸기 [3]파일 다운로드1
470정성태3/1/200722652    답변글 디버깅 기술: 11.1. (Managed) Main Method에 Break Point 걸기 - 내용 보강
468정성태2/25/200732419COM 개체 관련: 20. 탭 브라우저의 윈도우 핸들 구하기 [3]
466정성태2/22/200724232Windows: 23. 롱혼 서버 코어 버전 [2]
465정성태2/21/200723196오류 유형: 29. TFS 관련 스케줄 작업 실패
464정성태2/25/200724358오류 유형: 28. TF10217, TF53010, TF14105 오류
463정성태2/21/200717166Team Foundation Server: 15. 포탈 사이트의 보고서 주소를 도메인 명으로 적용
... [181]  182  183  184  185  186  187  188  189  190  191  192  193  194  195  ...