목록

페이지

2015-04-16

Visual Studio 2013 로그인 시 메서드를 찾을 수 없습니다 'Void Newtonsoft.Json.Serialization.JsonDictionaryContract.set_PropertyNameResolver(System.Func`2)' 오류 해결 방법

Visual Studio Community 2013 에서 로그인을 해야하는데

메서드를 찾을 수 없습니다
'Void Newtonsoft.Json.Serialization.JsonDictionaryContract.set_PropertyNameResolver(System.Func`2)'

라는 오류가 뜨면서 로그인이 안되길래 구글링을 하면서 겨우 로그인 문제를 해결하였다.

해결 방법은 msdn에 있는 포럼에서 찾았다. https://social.msdn.microsoft.com/Forums/vstudio/en-US/6556acd3-5656-455b-a53a-ce95ed9209bc/vs2013-premium-check-for-an-updated-license-fails-method-not-found?forum=visualstudiogeneral

저기서 프리미엄 버전을 물어보는 거였지만 커뮤니티 버전에서도 잘 되었다.


저 내용을 토대로

1. 코드 플렉스 ( http://json.codeplex.com/ )에서 Json.NET 을 다운로드하고

2. 압축을 풀고

3. 명령 프롬포트에서 C:\Program Files (x86)\Microsoft SDKs\Windows\v8.1A\bin\NETFX 4.5.1 Tools 폴더로 이동 후

4. gacutil.exe /if "C:\압축을 푼 폴더명\Bin\Net35\Newtonsoft.Json.dll" 를 실행 후 (당시 C드라이브에 압축을 풀었었다. 다른 드라이브에 풀었을 경우 거기에 맞춰주면 될 듯하다.)

5. 탐색기로 C:\Windows\Assembly 폴더에 Newtonsoft.Json 이 추가되었는지 확인하고

6. 탐색기로 C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE 폴더로 이동 후

7. devenv.exe.config 파일을 열고

8. <runtime><assemblyBinding></assemblyBinding></runtime> 사이에 다음과 내용을 추가한다.

<dependentAssembly>
    <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral"/>
    <bindingRedirect oldVersion="1.0.0.0-6.0.0.0" newVersion="6.0.0.0" />
</dependentAssembly>


참고로 당시 환경은 Visual Studio Community 2013 은 UPDATE 4 였으며 OS는 Windows 7 Ultimate K 였고 다운로드 받은 Json.NET 버전은 Json.NET 6.0 Release 8 였다. 그리고 저걸 하기 전에 이것저것 해보는 과정에서 gacutil.exe" /if "C:\압축을 푼 폴더명\Bin\Net45\Newtonsoft.Json.dll 도 실행했었는데 이것도 연관이 있을지는 모르겠다.

2015-04-15

Visual Studio Community 2013 재설치 시 Setup Blocked 오류 해결 방법

Visual Studio Community 2013 을 제거 후 다시 설치할려고 하면
Visual Studio Professional 2013 is currently installed on this machine. (이하 생략)
라면서 설치가 되지 않는다.

해결 방법은 명령 프롬포트 (cmd)를 실행하고 언어팩 설치파일인 vs_langpack.exe 가 있는 위치까지 이동 후
vs_langpack.exe /uninstall
를 입력해서 언어팩을 제거해준다.

만약 언어팩(vs_langpack.exe)을 설치한 이후 설치파일을 삭제한 상태라 언어팩이 없는 상태라면 이 곳에서 다시 받을 수 있다. http://go.microsoft.com/?linkid=9832175