Microsoft MVP성태의 닷넷 이야기
글쓴 사람
정성태 (techsharer at outlook.com)
홈페이지
첨부 파일
 

RTVS 또는 PTVS 실행 시 Could not load type 'Microsoft.VisualStudio.InteractiveWindow.Shell.IVsInteractiveWindowFactory2'

"RTVS(R Tools for Visual Studio)" 또는 "PTVS(Python Tools for Visual Studio)"의 Interactive Shell을 실행하는 경우 다음과 같은 오류가 발생합니다.

The project system has encountered an error.

Could not load type 'Microsoft.VisualStudio.InteractiveWindow.Shell.IVsInteractiveWindowFactory2' from assembly 'Microsoft.VisualStudio.VsInteractiveWindow, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.

A diagnostic log has been written to the following location: "%LOCALAPPDATA%\Temp\VsProjectFault_e5d95e5e-d16f-4742-b034-150d3abcad4a.failure.txt".

로그 파일을 보면 이런 내용이 포함되어 있습니다.

2017-06-19 오전 11:10:02
Recoverable
System.TypeLoadException: Could not load type 'Microsoft.VisualStudio.InteractiveWindow.Shell.IVsInteractiveWindowFactory2' from assembly 'Microsoft.VisualStudio.VsInteractiveWindow, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
   at Microsoft.VisualStudio.R.Package.Repl.VsRInteractiveWindowComponentContainerFactory.Create(Int32 instanceId, IInteractiveEvaluator evaluator, IRSessionProvider sessionProvider)
   at Microsoft.R.Components.InteractiveWorkflow.Implementation.RInteractiveWorkflow.<CreateVisualComponentAsync>d__48.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at Microsoft.Common.Core.TaskExtensions.ReThrowTaskException(Object state)
   at Microsoft.Common.Core.TaskExtensions.DoNotWait(Task task)
   at Microsoft.R.Components.InteractiveWorkflow.Implementation.RInteractiveWorkflow.GetOrCreateVisualComponentAsync(Int32 instanceId)
   at Microsoft.VisualStudio.R.Package.ProjectSystem.RProjectLoadHooks.<InitializeProjectFromDiskAsync>d__20.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.VisualStudio.ProjectSystem.UnconfiguredProjectImpl.AutoLoadMethodStateMachine.<<StartExecution>b__8_0>d.MoveNext()

관련해서 검색해 보면 이런 글이 나옵니다.

open interactive window error #2534 
; https://github.com/Microsoft/PTVS/issues/2534

상황을 보니, 이건 진짜로 Microsoft.VisualStudio.VsInteractiveWindow 파일이 등록되어 있지 않아 발생하는 문제입니다. 따라서, 저 파일이 있는 위치로 이동해 gacutil.exe를 이용해 등록해 주면 됩니다.

C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\CommonExtensions\Microsoft\InteractiveWindow>gacutil /i Microsoft.VisualStudio.VsInteractiveWindow.dll
Microsoft (R) .NET Global Assembly Cache Utility.  Version 4.0.30319.0
Copyright (c) Microsoft Corporation.  All rights reserved.

Assembly successfully added to the cache




[이 글에 대해서 여러분들과 의견을 공유하고 싶습니다. 틀리거나 미흡한 부분 또는 의문 사항이 있으시면 언제든 댓글 남겨주십시오.]







[최초 등록일: ]
[최종 수정일: 7/14/2017]

Creative Commons License
이 저작물은 크리에이티브 커먼즈 코리아 저작자표시-비영리-변경금지 2.0 대한민국 라이센스에 따라 이용하실 수 있습니다.
by SeongTae Jeong, mailto:techsharer at outlook.com

비밀번호

댓글 작성자
 




... 16  17  18  19  20  21  22  23  24  25  26  27  28  29  [30]  ...
NoWriterDateCnt.TitleFile(s)
12883정성태12/19/20217703오류 유형: 775. uwsgi-plugin-python3 환경에서 "ModuleNotFoundError: No module named 'django'" 오류 발생
12882정성태12/18/20216808개발 환경 구성: 619. Windows Server에서 WSL을 위한 리눅스 배포본을 설치하는 방법
12881정성태12/17/20217292개발 환경 구성: 618. WSL Ubuntu 20.04에서 파이썬을 위한 uwsgi 설치 방법 (2)
12880정성태12/16/20217100VS.NET IDE: 170. Visual Studio에서 .NET Core/5+ 역어셈블 소스코드 확인하는 방법
12879정성태12/16/202113329오류 유형: 774. Windows Server 2022 + docker desktop 설치 시 WSL 2로 선택한 경우 "Failed to deploy distro docker-desktop to ..." 오류 발생
12878정성태12/15/20218396개발 환경 구성: 617. 윈도우 WSL 환경에서 같은 종류의 리눅스를 다중으로 설치하는 방법
12877정성태12/15/20217070스크립트: 36. 파이썬 - pymysql 기본 예제 코드
12876정성태12/14/20216898개발 환경 구성: 616. Custom Sources를 이용한 Azure Monitor Metric 만들기
12875정성태12/13/20216582스크립트: 35. python - time.sleep(...) 호출 시 hang이 걸리는 듯한 문제
12874정성태12/13/20216598오류 유형: 773. shell script 실행 시 "$'\r': command not found" 오류
12873정성태12/12/20217745오류 유형: 772. 리눅스 - PATH에 등록했는데도 "command not found"가 나온다면?
12872정성태12/12/20217576개발 환경 구성: 615. GoLang과 Python 빌드가 모두 가능한 docker 이미지 만들기
12871정성태12/12/20217653오류 유형: 771. docker: Error response from daemon: OCI runtime create failed
12870정성태12/9/20216209개발 환경 구성: 614. 파이썬 - PyPI 패키지 만들기 (4) package_data 옵션
12869정성태12/8/20218498개발 환경 구성: 613. git clone 실행 시 fingerprint 묻는 단계를 생략하는 방법
12868정성태12/7/20217067오류 유형: 770. twine 업로드 시 "HTTPError: 400 Bad Request ..." 오류 [1]
12867정성태12/7/20216742개발 환경 구성: 612. 파이썬 - PyPI 패키지 만들기 (3) entry_points 옵션
12866정성태12/7/202114123오류 유형: 769. "docker build ..." 시 "failed to solve with frontend dockerfile.v0: failed to read dockerfile ..." 오류
12865정성태12/6/20216820개발 환경 구성: 611. 파이썬 - PyPI 패키지 만들기 (2) long_description, cmdclass 옵션
12864정성태12/6/20215274Linux: 46. WSL 환경에서 find 명령을 사용해 파일을 찾는 방법
12863정성태12/4/20217189개발 환경 구성: 610. 파이썬 - PyPI 패키지 만들기
12862정성태12/3/20215920오류 유형: 768. Golang - 빌드 시 "cmd/go: unsupported GOOS/GOARCH pair linux /amd64" 오류
12861정성태12/3/20218148개발 환경 구성: 609. 파이썬 - "Windows embeddable package"로 개발 환경 구성하는 방법
12860정성태12/1/20216271오류 유형: 767. SQL Server - 127.0.0.1로 접속하는 경우 "Access is denied"가 발생한다면?
12859정성태12/1/202112427개발 환경 구성: 608. Hyper-V 가상 머신에 Console 모드로 로그인하는 방법
12858정성태11/30/20219697개발 환경 구성: 607. 로컬의 USB 장치를 원격 머신에 제공하는 방법 - usbip-win
... 16  17  18  19  20  21  22  23  24  25  26  27  28  29  [30]  ...