성태의 닷넷 이야기
홈 주인
모아 놓은 자료
프로그래밍
질문/답변
사용자 관리
사용자
메뉴
아티클
외부 아티클
유용한 코드
온라인 기능
MathJax 입력기
최근 덧글
[정성태] Detecting blocking calls using asyn...
[정성태] 아쉽게도, 커뮤니티는 아니고 개인 블로그입니다. ^^
[정성태] 질문이 잘 이해가 안 됩니다. 우선, 해당 소스코드에서 ILis...
[양승조
] var대신 dinamic으로 선언해서 해결은 했습니다. 맞는 해...
[양승조
] 또 막혔습니다. ㅠㅠ var list = props[i].Ge...
[양승조
] 아. 감사합니다. 어제는 안됐던것 같은데....정신을 차려야겠네...
[정성태] "props[i].GetValue(props[i])" 코드에서 ...
[정성태] 저렇게 조각 코드 말고, 실제로 재현이 되는 예제 프로젝트를 압...
[정성태] Modules 창(Ctrl+Shift+U)을 띄워서, 해당 Op...
[정성태] 만드실 수 있습니다. 단지, Unity 엔진 내의 스크립트와 W...
글쓰기
제목
이름
암호
전자우편
HTML
홈페이지
유형
제니퍼 .NET
닷넷
COM 개체 관련
스크립트
VC++
VS.NET IDE
Windows
Team Foundation Server
디버깅 기술
오류 유형
개발 환경 구성
웹
기타
Linux
Java
DDK
Math
Phone
Graphics
사물인터넷
부모글 보이기/감추기
내용
<div style='display: inline'> <br /> <div style='font-family: 맑은 고딕, Consolas; font-size: 20pt; color: #006699; text-align: center; font-weight: bold'>Method not found: 'Void System.Reflection.Emit.DynamicMethod..ctor(System.String, System.Type, System.Type[])'.</div> <br /> <br /> A, B, C, D 컴퓨터에서 정상적으로 운영되는 ASP.NET 모듈이 새롭게 설치한 E 컴퓨터에서 예외가 발생했습니다. 구체적인 예외 오류는 다음과 같습니다.<br /> <br /> <SPAN style='BACKGROUND-COLOR: #ccffcc; FONT-STYLE: italic; MARGIN: 10px 0px 10px 10px; WIDTH: 800px; FONT-FAMILY: 맑은 고딕, Consolas, Verdana; COLOR: #005555'><br /> Server Error in '/' Application.<br /> --------------------------------------------------------------------------------<br /> <br /> <b style='COLOR: blue'>Method not found: 'Void System.Reflection.Emit.DynamicMethod..ctor(System.String, System.Type, System.Type[])'.</b> <br /> Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. <br /> <br /> Exception Details: System.MissingMethodException: Method not found: 'Void System.Reflection.Emit.DynamicMethod..ctor(System.String, System.Type, System.Type[])'.<br /> <br /> Source Error: <br /> <br /> An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. <br /> <br /> Stack Trace: <br /> [MissingMethodException: Method not found: 'Void System.Reflection.Emit.DynamicMethod..ctor(System.String, System.Type, System.Type[])'.]<br /> TestModule.MyMethod() +0<br /> TestModule.TestMethod() +119<br /> TestModule..cctor() +215<br /> [TypeInitializationException: The type initializer for 'Jennifer40.Profiler.Interception' threw an exception.]<br /> TestModule.Init(Object thisObject) +0<br /> </span><br /><br /> <br /> 재미있는 것은 "E" 컴퓨터에 .NET 3.5를 설치하면 정상적으로 운영이 되었습니다. 오호라... 그렇다면 뭔가 변화가 있다는 것일 텐데, .NET Reflector를 통해서 A 컴퓨터와 E 컴퓨터의 DynamicMethod 타입을 비교해 보았습니다.<br /> <br /> <pre style='margin: 10px 0px 10px 10px; padding: 10px 0px 10px 10px; width: 800px; background-color: #fbedbb; overflow-x: scroll; font-family: Consolas, Verdana;' > ======= A 컴퓨터: .NET 3.5 ======= <b style='COLOR: blue'>public DynamicMethod(string name, Type returnType, Type[] parameterTypes);</b> public DynamicMethod(string name, Type returnType, Type[] parameterTypes, bool restrictedSkipVisibility); [MethodImpl(MethodImplOptions.NoInlining)] public DynamicMethod(string name, Type returnType, Type[] parameterTypes, Module m); [MethodImpl(MethodImplOptions.NoInlining)] public DynamicMethod(string name, Type returnType, Type[] parameterTypes, Type owner); [MethodImpl(MethodImplOptions.NoInlining)] public DynamicMethod(string name, Type returnType, Type[] parameterTypes, Module m, bool skipVisibility); [MethodImpl(MethodImplOptions.NoInlining)] public DynamicMethod(string name, Type returnType, Type[] parameterTypes, Type owner, bool skipVisibility); [MethodImpl(MethodImplOptions.NoInlining)] public DynamicMethod(string name, MethodAttributes attributes, CallingConventions callingConvention, Type returnType, Type[] parameterTypes, Module m, bool skipVisibility); [MethodImpl(MethodImplOptions.NoInlining)] public DynamicMethod(string name, MethodAttributes attributes, CallingConventions callingConvention, Type returnType, Type[] parameterTypes, Type owner, bool skipVisibility); ======= E 컴퓨터: .NET 2.0 ======= public DynamicMethod(string name, Type returnType, Type[] parameterTypes, Module m); public DynamicMethod(string name, Type returnType, Type[] parameterTypes, Type owner); public DynamicMethod(string name, Type returnType, Type[] parameterTypes, Module m, bool skipVisibility); public DynamicMethod(string name, Type returnType, Type[] parameterTypes, Type owner, bool skipVisibility); public DynamicMethod(string name, MethodAttributes attributes, CallingConventions callingConvention, Type returnType, Type[] parameterTypes, Module m, bool skipVisibility); public DynamicMethod(string name, MethodAttributes attributes, CallingConventions callingConvention, Type returnType, Type[] parameterTypes, Type owner, bool skipVisibility); </pre> <br /> 그렇군요. .NET 2.0에는 3개 인자를 받는 "public DynamicMethod(string name, Type returnType, Type[] parameterTypes);" 메서드가 없었기 때문에 이런 예외가 발생하게 된 것입니다.<br /> <br /> 그러하니, 혹시나 업데이트를 받지 않는 PC에서도 정상적으로 사용할 수 있도록 4개의 인자를 갖는 DynamicMethod 생성자를 사용하도록 변경하였습니다.<br /> <br /> 문제 해결 끝!<br /> <br /> <br /><br /><hr /><span style='color: Maroon'>[이 토픽에 대해서 여러분들과 의견을 공유하고 싶습니다. 틀리거나 미흡한 부분 또는 의문 사항이 있으시면 언제든 댓글 남겨주십시오.]</span> </div>
첨부파일
스팸 방지용 인증 번호
1406
(왼쪽의 숫자를 입력해야 합니다.)