상세 컨텐츠

본문 제목

Visual studio 2017 알수 없는 오류입니다. 라는 문구가 뜹니다. (한번은 실행되어두 두번째 실행부터 오류)

프로그래밍 관련

by AlrepondTech 2017. 5. 2. 16:15

본문

반응형
728x170

 

 

=================================

=================================

=================================

 

 

 

오류현상 캡쳐

 

 

 

 

최신 윈도우(windows 7,8,10 등등) 최신 업데이트 모두해주시고, VS2017 비쥬얼스튜디오2017도 최신업데이트를 모두 해주세요.

 

그래도 문제가 해결 안되면 아래와 같이 해보세요~!~!~! 

 

 

=================================

=================================

=================================

 

 

출처: https://social.msdn.microsoft.com/Forums/expression/ko-KR/613b1cdd-5330-4c33-ab00-6aab1d0e55df/visual-studio-2017-?forum=vsko

 

 

업데이트 이후로 visual studio 2017이 알수없는 오류입니다 라는 문구가 뜨면서 실행이 않됩니다.  

수정이나 복구를 하면 첫번째는 실행이 되지만 두번째부터 같은문구가 뜨면서 실행이 않되는데...

해결방법 없을까요?

 

-------------------------------------------------------------------------------------------------------------------------------------------

 

안녕하세요,

다음 사례가 도움이 되는지 확인해보시기 바랍니다.

Unknown error when opening second instance of Visual Studio 2017 Enterprise on Win7 (영문)
https://developercommunity.visualstudio.com/content/problem/29467/unknown-error-when-opening-second-instance-of-visu.html

>> VS의 처음 인스턴스가 닫힐 때 userprofile 상(정확히는 %LocalAppData%)의 visual studio 관련 특정 파일이 잠기는 원인이라서 이 특정 파일을 지우는 해결 방식입니다.

  • Export your settings since this operation will cause lost of settings.
  • Close any running instance of Visual Studio 2017.
  • Delete the following file: %LocalAppData%\Microsoft\VisualStudio\15.0_bf9aaba9\privateregistry.bin. The file may be locked for a couple of seconds after VS is closed, but eventually Windows will release the lock.
  • Try starting Visual Studio again.

 

파일 삭제에 따르는 주의사항도 확인하시고요.

Keep in mind: This doesn't just loose your settings, but also product activation - so also make sure, that you have your product key at hand before doing this procedure. All installed Plug-Ins have to be re-enabled.

참고: userprofile 상의 파일 접근 문제이므로 사용 계정을 변경하여 수행하면 해결될 수도 있습니다.

VS2017 Fails to Start with "Unknown Error" (영문)
https://developercommunity.visualstudio.com/content/problem/31263/vs2017-fails-to-start-with-unknown-error.html
>> 이곳은 위에 언급된 같은 원인에 대한 다양한 경험과, anit-virus tool에 의한 간섭 경우 등이 언급됩니다.

또한, Visual Studio 설치 폴더에서 Visual Studio를 커맨드로 시작시키면 에러 정보가 로깅됩니다.

C:\....> devenv /log C:\Temp\vs2017Output.xml

xml 파일에 로깅된 정보를 확인하여 위 링크에서 언급하는 문제(E_ACCESSDENIED)와 같은지도 확인해보시기 바랍니다.

From the error file it looks like the following directory cannot be accessed (E_ACCESSDENIED):
C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\Extensions\DesignersCommonPackage_Registry_Common_x86.pkgdef

 

 

 

반응형

 

 

728x90

 

 

 

 

=================================

=================================

=================================

 

 

 

출처: http://freyya.tistory.com/m/200

 

 

Unity와 연동시킬때마다 비주얼 스튜디오에서 "알 수 없는 오류입니다" 오류창이 발생하는 오류가 있었는데 이 문제를 해결하는 법에 대해서 써보도록 하겠다.

 

 

해결방법은 여러가지가 있지만 가장 보편화된 해결법은

 

%localappdata%\Microsoft\VisualStudio\15.0_4388abd4 (2017의 경우에는 15.0 뒤에 문자가 추가로 붙어있을 수 있음)

 

해당 경로에서 현재 사용하는 비주얼 스튜디오의 버전에 해당하는 폴더 안에 들어가보면 privateregistry.bin라는 파일이 존재한다.

 

 

일단 이 privateregistry.bin파일을 제거하면 해결된다는 답변이 많았지만 나의 경우에는 이 문제가 반복해서 발생했고 지울때마다 실행은 됬지만 비주얼 스튜디오가 재설정 되었기때문에 번거로워져서 해결법을 좀 더 찾아보았다.

 

 

그래서 찾은 해결법

 

 

1. 먼저 Visual Studio와 관련된 모든 프로세스를 종료

 

2. 위에서 언급한 privateregistry.bin파일을 지운다.

 

3. Visual Studio를 관리자 권한으로 실행

 

 

관리자 권한으로 정상 실행을 확인한 뒤부터는 관리자 권한이 아닌 보통 권한으로 실행해도 문제가 없다. 

 

파일 참조 권한이 막혀서 문제가 발생하는 경우가 종종 있는것같다. 나같은 경우에는 관리자 권한으로 Visual Studio를 실행하여 privateregistry.bin파일을 재생성한 뒤부터는 해당 문제가 발생하지 않았다.

 

 

 

=================================

=================================

=================================

 

 

반응형
그리드형


관련글 더보기

댓글 영역