성태의 닷넷 이야기
작은 글씨
큰 글씨
홈 주인
모아 놓은 자료
프로그래밍
질문/답변
사용자 관리
사용자
메뉴
아티클
외부 아티클
유용한 코드
온라인 기능
MathJax 입력기
최근 덧글
[정성태] eBPF Mystery: When is IPv4 not IPv4...
[정성태] 경량 모델의 반란: Phi-4 Mini Flash Reasoni...
[정성태] Windows 10, 11 Home 버전에 gpedit.msc ...
[정성태] When I install an unhandled structu...
[정성태] 멀티미디어 타이머는 오차 보정을 하기 때문에 max==5ms가 ...
[이종효] 제가 예상했던 답변이네요. 하긴 preview와 비교해서 최종 ...
[정성태] 쓸 예정입니다. 단지, preview 시절에 다룬 내용이 향후 ...
[정성태] "Visual Studio 2022 - Remote Tools ...
[정성태] 한국어 로컬 모델 풀 파인튜닝 - LLM 바닥부터 만들기 (대형...
[정성태] 그러고 보니, 저도 노안이라서... 어느 순간부터 웹 브라우저 ...
글쓰기
제목
이름
암호
전자우편
HTML
홈페이지
유형
제니퍼 .NET
닷넷
COM 개체 관련
스크립트
VC++
VS.NET IDE
Windows
Team Foundation Server
디버깅 기술
오류 유형
개발 환경 구성
웹
기타
Linux
Java
DDK
Math
Phone
Graphics
사물인터넷
부모글 보이기/감추기
내용
<div style='display: inline'> <h1 style='font-family: Malgun Gothic, Consolas; font-size: 20pt; color: #006699; text-align: center; font-weight: bold'>닷넷 COM+ - Failed to load the runtime.</h1> <p> 닷넷 COM+ 사용 시 다음과 같은 오류가 발생한다면?<br /> <br /> <pre style='margin: 10px 0px 10px 10px; padding: 10px 0px 10px 10px; background-color: #fbedbb; overflow: auto; font-family: Consolas, Verdana;' > Server Error in '/' Application. -------------------------------------------------------------------------------- Failed to load the runtime. (Exception from HRESULT: 0x80131700) 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. Exception Details: System.Runtime.InteropServices.COMException: Failed to load the runtime. (Exception from HRESULT: 0x80131700) Source Error: 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. Stack Trace: [COMException (0x80131700): Failed to load the runtime. (Exception from HRESULT: 0x80131700)] System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo) +0 System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode) +16 System.EnterpriseServices.Thunk.Proxy.CoCreateObject(Type serverType, Boolean bQuerySCInfo, Boolean& bIsAnotherProcess, String& uri) +301 System.EnterpriseServices.ServicedComponentProxyAttribute.CreateInstance(Type serverType) +195 System.Runtime.Remoting.Activation.ActivationServices.IsCurrentContextOK(RuntimeType serverType, Object[] props, Boolean bNewObj) +85 WebSiteTest.ComPlusServerTest.Page_Load(Object sender, EventArgs e) in d:\WebSiteTest4\ComPlusServerTest.aspx.cs:115 System.Web.UI.Control.OnLoad(EventArgs e) +104 System.Web.UI.Control.LoadRecursive() +112 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2213 -------------------------------------------------------------------------------- Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.2623.0 </pre> <br /> 만약 COM+가 "서버 활성화" 유형이고 해당 DLL이 CLR 2 기반으로 빌드된 것이라면 저런 오류가 발생할 수 있습니다. 일례로, COM+의 dllhost.exe에서 DLL을 활성화시킬 때 DLL의 Target Framework 버전이 2.0 ~ 3.5라면 dllhost.exe 내에 .NET Framework 2.0 ~ 3.5에 해당하는 런타임을 올리려 할 것입니다. 문제는, 해당 운영체제에 .NET 3.5가 설치되어 있지 않은 경우 저런 식으로 "Failed to load the runtime" 예외가 발생하는 것입니다.<br /> <br /> 문제의 원인을 알았으니 해결도 간단합니다.<br /> <br /> 그냥 .NET Framework 3.5를 설치하든가, 해당 COM+ DLL을 .NET Framework 4.0 이상의 버전으로 다시 빌드해 배포하면 됩니다.<br /> </p><br /> <br /><hr /><span style='color: Maroon'>[이 글에 대해서 여러분들과 의견을 공유하고 싶습니다. 틀리거나 미흡한 부분 또는 의문 사항이 있으시면 언제든 댓글 남겨주십시오.]</span> </div>
첨부파일
스팸 방지용 인증 번호
6288
(왼쪽의 숫자를 입력해야 합니다.)