본문 바로가기

Error Notes

2021-01-02 오피스 2007 , 2019 중첩 설치 중 발생한 프로그램 에러/ xslm 확장자 엑셀 파일 생성 불가

반응형

 

 

 

 

에러 발생

 

더보기

이 대화 상자 대신 JIT(Just-in-time) 디버깅을 호출하는
방법에 대한 자세한 내용은 이 메시지의 뒷부분을 참조하십시오.

************** 예외 텍스트 **************
System.InvalidCastException: 'Microsoft.Office.Interop.Excel.ApplicationClass' 형식의 COM 개체를
인터페이스 형식 'Microsoft.Office.Interop.Excel._Application'(으)로 캐스팅할 수 없습니다.
유형 라이브러리/DLL 로드 오류입니다.
(예외가 발생한 HRESULT: 0x80029C4A (TYPE_E_CANTLOADLIBRARY)) 오류로 인해
IID가 '{000208D5-0000-0000-C000-000000000046}'인 인터페이스의 COM 구성 요소에서
QueryInterface를 호출하지 못했으므로 이 작업을 수행할 수 없습니다.
위치: System.StubHelpers.StubHelpers.GetCOMIPFromRCW(Object objSrc, IntPtr pCPCMD, IntPtr& ppTarget, Boolean& pfNeedsRelease)
위치: Microsoft.Office.Interop.Excel.ApplicationClass.set_DisplayAlerts(Boolean RHS)
위치: ScanTest.frmMain.frmMain_Shown(Object sender, EventArgs e) 파일 C:\Source\ScanTest_20201228\ScanTest\Main.cs:줄 8246
위치: System.Windows.Forms.Form.OnShown(EventArgs e)
위치: System.Windows.Forms.Form.CallShownEvent()
위치: System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme)
위치: System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)
위치: System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
위치: System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
위치: System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
위치: System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)
위치: System.Windows.Forms.Control.InvokeMarshaledCallbacks()


************** 로드된 어셈블리 **************
mscorlib
어셈블리 버전: 4.0.0.0
Win32 버전: 4.7.3690.0 built by: NET472REL1LAST_C
코드베이스: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
ScanTest
어셈블리 버전: 1.0.0.0
Win32 버전: 1.0.0.0
코드베이스: file:///C:/Source/ScanTest_20201228/ScanTest/bin/Debug/ScanTest.exe
----------------------------------------
System.Windows.Forms
어셈블리 버전: 4.0.0.0
Win32 버전: 4.7.3690.0 built by: NET472REL1LAST_C
코드베이스: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
어셈블리 버전: 4.0.0.0
Win32 버전: 4.7.3640.0 built by: NET472REL1LAST_C
코드베이스: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
어셈블리 버전: 4.0.0.0
Win32 버전: 4.7.3190.0 built by: NET472REL1LAST_C
코드베이스: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Data
어셈블리 버전: 4.0.0.0
Win32 버전: 4.7.3710.0 built by: NET472REL1LAST_C
코드베이스: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
System.Core
어셈블리 버전: 4.0.0.0
Win32 버전: 4.7.3661.0 built by: NET472REL1LAST_C
코드베이스: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Xml
어셈블리 버전: 4.0.0.0
Win32 버전: 4.7.3190.0 built by: NET472REL1LAST_C
코드베이스: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Configuration
어셈블리 버전: 4.0.0.0
Win32 버전: 4.7.3630.0 built by: NET472REL1LAST_B
코드베이스: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
DevExpress.XtraEditors.v19.1
어셈블리 버전: 19.1.6.0
Win32 버전: 19.1.6.0
코드베이스: file:///C:/Source/ScanTest_20201228/ScanTest/bin/Debug/DevExpress.XtraEditors.v19.1.DLL
----------------------------------------
DevExpress.Utils.v19.1
어셈블리 버전: 19.1.6.0
Win32 버전: 19.1.6.0
코드베이스: file:///C:/Source/ScanTest_20201228/ScanTest/bin/Debug/DevExpress.Utils.v19.1.DLL
----------------------------------------
DevExpress.Data.v19.1
어셈블리 버전: 19.1.6.0
Win32 버전: 19.1.6.0
코드베이스: file:///C:/Source/ScanTest_20201228/ScanTest/bin/Debug/DevExpress.Data.v19.1.DLL
----------------------------------------
mscorlib.resources
어셈블리 버전: 4.0.0.0
Win32 버전: 4.7.3190.0 built by: NET472REL1LAST_C
코드베이스: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_ko_b77a5c561934e089/mscorlib.resources.dll
----------------------------------------
System.Numerics
어셈블리 버전: 4.0.0.0
Win32 버전: 4.7.3190.0 built by: NET472REL1LAST_C
코드베이스: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Numerics/v4.0_4.0.0.0__b77a5c561934e089/System.Numerics.dll
----------------------------------------
Microsoft.Office.Interop.Excel
어셈블리 버전: 15.0.0.0
Win32 버전: 15.0.4569.1506
코드베이스: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.Office.Interop.Excel/15.0.0.0__71e9bce111e9429c/Microsoft.Office.Interop.Excel.dll
----------------------------------------
office
어셈블리 버전: 15.0.0.0
Win32 버전: 15.0.4613.1000
코드베이스: file:///C:/Windows/assembly/GAC_MSIL/office/15.0.0.0__71e9bce111e9429c/office.dll
----------------------------------------
System.Windows.Forms.resources
어셈블리 버전: 4.0.0.0
Win32 버전: 4.7.3190.0 built by: NET472REL1LAST_C
코드베이스: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.resources/v4.0_4.0.0.0_ko_b77a5c561934e089/System.Windows.Forms.resources.dll
----------------------------------------

************** JIT 디버깅 **************
JIT(Just In Time) 디버깅을 사용하려면 이 응용 프로그램 또는 컴퓨터의
config 파일(machine.config)의 jitDebugging 값을
system.windows.forms 섹션에 설정해야 합니다.
또한 응용 프로그램은 디버깅할 수 있도록 컴파일되어야
합니다.

예:



JIT 디버깅을 사용하면 처리되지 않은 모든 예외는
이 대화 상자에서 처리되지 않고 컴퓨터에 등록된 JIT
디버거에 보내집니다.

 

 

 

검색 시작 !

 

 

 

반응형

 

 

 

레지스터 삭제 제안 하는 댓글 발견 후 작업

하지만 별 다른 반응 없음

 

제어판에서 그냥 모디 파이를 다시 하면 해결 된다는 문구 확인

수정 및 복구 작업 후 에러 문제 없어 짐 !

 

코딩을 통해 엑셀 확장자 변경 및 진행

매크로 사용 가능한 엑셀 확장자 xlsm 으로 지정

 

 

 

 

동일한 확장자로 파일 생성 하였으나

해당 파일 열었을 때 문제 발생

 

반응형