2011-01-12 2 views
1

... 어떻게 해결합니까?무엇이 'System.Management.MTAHelper'에 대한 형식 이니셜 라이저에서 예외를 throw하도록

64 비트 Windows에서 실행되는 32 비트 .Net 앱에서 발생합니다.

기계에 .Net 프레임 워크가 설치되어 있어야합니다.

Mozilla/4.0(compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .Net CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C)

편집 : 여기에 더 세부 사항없이 말하기 어렵다 내부 예외

Exception Source: System.Management

Exception Type: System.Runtime.InteropServices.COMException

Exception Message: Retrieving the COM class factory for component with CLSID {A8F03BE3-EDB7-4972-821F-AF6F8EA34884} failed due to the following error: 80040154.

Exception Target Site: .cctor

답변

1

해결책으로, 같은 문제를보고하는 MSDN post을있다 ... 경로가 잘못된 이유를 주어 아무런 설명이 없습니다

So I went to HKCR\CLSID{A8F03BE3-EDB7-4972-821F-AF6F8EA34884}\InprocServer32(Default) in my x64 environment, and saw the following path: C:\Windows\system32\mscoree.dll.

Customer changed the C:\WINDOWS\SysWOW64\mscoree.dll path he found in there to the right one, and he didn't get the error again.

하지만 일 것 같다 적어도 검사 수 레지스트리 설정을 확인하고 해당 상자에서 잘못 표시되는지 확인하십시오.

+0

하아! 나는이 질문을 게시 한 후 google에 동일한 게시물을 발견했습니다. 나는 그것을 시도 할 것이다. 감사! – sjlewis

0

, 그러나 당신이 TypeInitializationException을받을 때 InnerException, 그것은 일반적으로 근본적인 이유가 있는지 확인합니다.

+0

내부 예외는 질문에 추가 내가 여기 어떻게 윈도우 7 에 .NET 1.1을 다시 설치했다. – sjlewis

1

방금 ​​해결했습니다.

다운로드 : http://www.microsoft.com/Downloads/details.aspx?FamilyId=262D25E3-F589-4842-8157-034D1E7CF3A3&displaylang=en 가 다운로드 : 다음 http://www.microsoft.com/downloads/details.aspx?FamilyID=a8f5654f-088e-40b2-bbdb-a83353618b38&displaylang=en

:

mkdir c:\dotnetfx 
c:\DotNet 
dotnetfx.exe /T:c:\dotnetfx /C 
c:\dotnetfx\msiexec.exe /a netfx.msi TARGETDIR=C:\DotNet 
NDP1.1sp1-KB867460-X86.exe /Xp:C:\DotNet\netfxsp.msp 
msiexec.exe /a c:\DotNet\netfx.msi /p c:\DotNet\netfxsp.msp 
C:\DotNet\netfx.msi 
관련 문제