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

비밀번호

댓글 작성자
 




... 136  137  138  139  140  141  142  143  144  145  146  [147]  148  149  150  ...
NoWriterDateCnt.TitleFile(s)
1471정성태8/7/201333410개발 환경 구성: 193. .aspx 확장자 대신 .html 확장자를 사용하는 방법
1470정성태8/6/201331650오류 유형: 180. DISM.exe 0xc1510111 실행 오류
1469정성태8/6/201328410.NET Framework: 375. System.Net.Sockets.Socket이 Thread-safe할까? [2]파일 다운로드1
1468정성태8/6/201326275오류 유형: 179. IIS - No connection could be made because the target machine actively refused it 127.0.0.1:80
1467정성태8/5/201329511Java: 16. IE에 로드된 Java Applet의 다운로드 위치를 확인하는 방법
1466정성태7/27/201334848.NET Framework: 374. C#과 비교한 C++ STL vector 성능 [7]파일 다운로드1
1465정성태7/18/201338961기타: 33. C:\Windows\Installer 폴더의 용량 줄이기 [3]
1464정성태7/15/201326681오류 유형: 178. Visual Studio 2012 Express - ImportCardinalityMismatchException
1463정성태7/15/201327779오류 유형: 177. [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied.
1462정성태7/5/201330947VC++: 69. geek스러운 C/C++ 퀴즈 문제 [2]
1461정성태6/27/201347814.NET Framework: 373. C# 문자열의 인코딩이란?
1460정성태6/17/201329673.NET Framework: 372. PerformanceCounter - Category does not exist. [1]
1459정성태6/15/201332873Windows: 74. 한글 키가 아닌 영문 키를 기본으로 선택하는 방법 [5]
1458정성태6/13/201333972.NET Framework: 371. CAS Lock 방식이 과연 성능에 얼마나 도움이 될까요? [1]파일 다운로드1
1457정성태6/13/201329356개발 환경 구성: 192. "Probabilistic Programming and Bayesian Methods for Hackers" 예제 코드 실행 방법
1456정성태6/5/201338150.NET Framework: 370. C# - WebKit .NET 사용 [2]파일 다운로드1
1455정성태6/1/201332222.NET Framework: 369. ThreadPool.QueueUserWorkItem의 실행 지연 [4]파일 다운로드1
1454정성태5/31/201330295Java: 15. Java 7 Control Panel 실행시키는 방법
1453정성태5/22/201329517기타: 32. Microsoft FTP 사이트에 접속하는 방법
1452정성태5/21/201336755Windows: 73. TabProcGrowth 값 삭제 후 IE를 실행시키면 다시 복원되는 경우 [3]
1451정성태5/17/201335771Windows: 72. 윈도우 서버 2012 기초 사용법
1450정성태5/16/201326728오류 유형: 176. SQL10007N Message "0" could not be retrieved. Reason code: "3"
1449정성태5/15/201333584오류 유형: 175. SpeechRecognitionEngine 사용 시 오류 유형 2가지
1448정성태5/14/201328773VC++: 68. #pragma warning(disable: ...)로 오류 제어가 안된다면?
1447정성태5/3/201331317개발 환경 구성: 191. Debugging Tools for Windows 독립 설치 버전 [1]
1446정성태4/30/201332386.NET Framework: 368. Encoding 타입의 대체(fallback) 메카니즘 [1]
... 136  137  138  139  140  141  142  143  144  145  146  [147]  148  149  150  ...