Bug 58288 - "System.IO.FileNotFoundException: Could not load file or assembly 'Mono.Posix, Version=2.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756' or one of its dependencies." when attempting to start apps
Summary: "System.IO.FileNotFoundException: Could not load file or assembly 'Mono.Posix...
Status: RESOLVED DUPLICATE of bug 56787
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: Debugger ()
Version: unspecified
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Joaquin Jares
URL:
Depends on:
Blocks:
 
Reported: 2017-07-21 07:36 UTC by Jason
Modified: 2017-07-21 19:08 UTC (History)
6 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED DUPLICATE of bug 56787

Description Jason 2017-07-21 07:36:44 UTC
I Using Visual Studio 2017
Debug iOS simulator 
ToolBarItems Button Clicked Error


I follow this 
( https://bugzilla.xamarin.com/show_bug.cgi?id=56787 )
but still not debuging..


=== 미리 바인딩된 상태 정보 ===
로그: DisplayName = Mono.Posix, Version=2.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756
 (Fully-specified)
로그: Appbase = file:///C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/Common7/IDE/
로그: 초기 PrivatePath = NULL
호출 어셈블리: Mono.Debugging.Soft, Version=0.0.0.0, Culture=neutral, PublicKeyToken=5e9ce85b0923c84f.
===
로그: 이 바인딩은 default 로드 컨텍스트에서 시작됩니다.
로그: 응용 프로그램 구성 파일 C:\Users\Administrator\AppData\Local\Microsoft\VisualStudio\15.0_f82e31fb\devenv.exe.config을(를) 사용합니다.
로그: 호스트 구성 파일 을(를) 사용합니다.
로그: C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config에서 컴퓨터 구성 파일을 사용합니다.
로그: 응용 프로그램 구성 파일에 리디렉션이 지정되어 있습니다. 2.0.0.0이(가) 4.0.0.0(으)로 리디렉션되었습니다.
로그: 사후 정책 참조: Mono.Posix, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756
로그: 새 URL file:///C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/Common7/IDE/Mono.Posix.DLL을(를) 다운로드합니다.
로그: 새 URL file:///C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/Common7/IDE/Mono.Posix/Mono.Posix.DLL을(를) 다운로드합니다.
로그: 새 URL file:///C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/Common7/IDE/PublicAssemblies/Mono.Posix.DLL을(를) 다운로드합니다.
로그: 새 URL file:///C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/Common7/IDE/PublicAssemblies/Mono.Posix/Mono.Posix.DLL을(를) 다운로드합니다.
로그: 새 URL file:///C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/Common7/IDE/PrivateAssemblies/Mono.Posix.DLL을(를) 다운로드합니다.
로그: 새 URL file:///C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/Common7/IDE/PrivateAssemblies/Mono.Posix/Mono.Posix.DLL을(를) 다운로드합니다.
로그: 새 URL file:///C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/Common7/IDE/CommonExtensions/Microsoft/TemplateProviders/Mono.Posix.DLL을(를) 다운로드합니다.
로그: 새 URL file:///C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/Common7/IDE/CommonExtensions/Microsoft/TemplateProviders/Mono.Posix/Mono.Posix.DLL을(를) 다운로드합니다.
로그: 새 URL file:///C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/Common7/IDE/CommonExtensions/Platform/Debugger/Mono.Posix.DLL을(를) 다운로드합니다.
로그: 새 URL file:///C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/Common7/IDE/CommonExtensions/Platform/Debugger/Mono.Posix/Mono.Posix.DLL을(를) 다운로드합니다.
로그: 새 URL file:///C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/Common7/IDE/CommonExtensions/Platform/DiagnosticsHub/Mono.Posix.DLL을(를) 다운로드합니다.
로그: 새 URL file:///C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/Common7/IDE/CommonExtensions/Platform/DiagnosticsHub/Mono.Posix/Mono.Posix.DLL을(를) 다운로드합니다.
로그: 새 URL file:///C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/Common7/IDE/PrivateAssemblies/DataCollectors/Mono.Posix.DLL을(를) 다운로드합니다.
로그: 새 URL file:///C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/Common7/IDE/PrivateAssemblies/DataCollectors/Mono.Posix/Mono.Posix.DLL을(를) 다운로드합니다.
로그: 새 URL file:///C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/Common7/IDE/PrivateAssemblies/DataCollectors/x86/Mono.Posix.DLL을(를) 다운로드합니다.
로그: 새 URL file:///C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/Common7/IDE/PrivateAssemblies/DataCollectors/x86/Mono.Posix/Mono.Posix.DLL을(를) 다운로드합니다.
로그: 새 URL file:///C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/Common7/IDE/Mono.Posix.EXE을(를) 다운로드합니다.
로그: 새 URL file:///C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/Common7/IDE/Mono.Posix/Mono.Posix.EXE을(를) 다운로드합니다.
로그: 새 URL file:///C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/Common7/IDE/PublicAssemblies/Mono.Posix.EXE을(를) 다운로드합니다.
로그: 새 URL file:///C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/Common7/IDE/PublicAssemblies/Mono.Posix/Mono.Posix.EXE을(를) 다운로드합니다.
로그: 새 URL file:///C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/Common7/IDE/PrivateAssemblies/Mono.Posix.EXE을(를) 다운로드합니다.
로그: 새 URL file:///C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/Common7/IDE/PrivateAssemblies/Mono.Posix/Mono.Posix.EXE을(를) 다운로드합니다.
로그: 새 URL file:///C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/Common7/IDE/CommonExtensions/Microsoft/TemplateProviders/Mono.Posix.EXE을(를) 다운로드합니다.
로그: 새 URL file:///C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/Common7/IDE/CommonExtensions/Microsoft/TemplateProviders/Mono.Posix/Mono.Posix.EXE을(를) 다운로드합니다.
로그: 새 URL file:///C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/Common7/IDE/CommonExtensions/Platform/Debugger/Mono.Posix.EXE을(를) 다운로드합니다.
로그: 새 URL file:///C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/Common7/IDE/CommonExtensions/Platform/Debugger/Mono.Posix/Mono.Posix.EXE을(를) 다운로드합니다.
로그: 새 URL file:///C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/Common7/IDE/CommonExtensions/Platform/DiagnosticsHub/Mono.Posix.EXE을(를) 다운로드합니다.
로그: 새 URL file:///C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/Common7/IDE/CommonExtensions/Platform/DiagnosticsHub/Mono.Posix/Mono.Posix.EXE을(를) 다운로드합니다.
로그: 새 URL file:///C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/Common7/IDE/PrivateAssemblies/DataCollectors/Mono.Posix.EXE을(를) 다운로드합니다.
로그: 새 URL file:///C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/Common7/IDE/PrivateAssemblies/DataCollectors/Mono.Posix/Mono.Posix.EXE을(를) 다운로드합니다.
로그: 새 URL file:///C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/Common7/IDE/PrivateAssemblies/DataCollectors/x86/Mono.Posix.EXE을(를) 다운로드합니다.
로그: 새 URL file:///C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/Common7/IDE/PrivateAssemblies/DataCollectors/x86/Mono.Posix/Mono.Posix.EXE을(를) 다운로드합니다.

   위치: Mono.Debugging.Soft.SoftDebuggerSession.ResolveSymbolicLink(String path)
   위치: Mono.Debugging.Soft.SoftDebuggerSession.PathsAreEqual(String p1, String p2)
   위치: Mono.Debugging.Soft.SoftDebuggerSession.FindLocationByMethod(MethodMirror method, String file, Int32 line, Int32 column, Boolean& insideTypeRange)
   위치: Mono.Debugging.Soft.SoftDebuggerSession.FindLocationByType(TypeMirror type, String file, Int32 line, Int32 column, Boolean& genericMethod, Boolean& insideTypeRange)
   위치: Mono.Debugging.Soft.SoftDebuggerSession.ResolveBreakpoints(TypeMirror type)
   위치: Mono.Debugging.Soft.SoftDebuggerSession.HandleTypeLoadEvents(TypeLoadEvent[] events)
   위치: Mono.Debugging.Soft.SoftDebuggerSession.HandleEventSet(EventSet es)
   위치: Mono.Debugging.Soft.SoftDebuggerSession.EventHandler()


InspectorDebugSession(0): HandleTargetEvent: TargetExited
앱이 종료되었습니다.
시작에 실패했습니다. 'iPhone 7 iOS 10.3'에서 'NACMobile.iOS' 앱을 시작할 수 없습니다. 오류: MTouch를 실행하는 동안 오류가 발생했습니다.. 자세한 내용은 로그를 확인하세요.
앱이 종료되었습니다.
InspectorDebugSession(0): Disposed
Comment 1 Brendan Zagaeski (Xamarin Team, assistant) 2017-07-21 19:08:31 UTC
## An incorrect redirect has been added to your devenv.exe.config file

The log you have posted shows the following:
> 로그: 응용 프로그램 구성 파일에 리디렉션이 지정되어 있습니다. 2.0.0.0이(가) 4.0.0.0(으)로 리디렉션되었습니다.

Web translation to English tells me this translates to:
> Log: A redirect is specified in the application configuration file.
> 2.0.0.0 has been redirected to 4.0.0.0.

That line indicates that you have applied a redirect in the devenv.exe.config file.  As mentioned in Bug 56787, Comment 59:
> 1. Ensure that you have _not_ added any binding redirects for
> Monos.Posix.dll to your devenv.exe.config file.  (Note that I have
> marked [Bug 56787, Comment 29] _obsolete_ because adding that binding
> redirect will by default _break_ this workaround.)

So for the problem described in Comment 0, you must _remove_ the Mono.Posix.dll redirect that is currently in your devenv.exe.config file.  After that, you will need to follow the "Temporary workaround" as described on [1] to place the Mono.Posix.dll file in the expected location and Unblock it (if you have not already followed those steps).

[1] https://releases.xamarin.com/common-issues-in-the-xamarin-15-2-2-release-being-tracked-by-the-xamarin-team/




## Alternate option: install a side-by-side instance of Visual Studio 2017 _Preview_ version 15.3.0 Preview 4 or higher

The fix for Bug 56787 removes the code path that calls Mono.Posix.dll so that it no longer exists at all.  That fix is now included in the latest Visual Studio 2017 Preview version 15.3.0 Preview 4 release [2], so another option to stop the problem would be to install that version.

[2] https://www.visualstudio.com/en-us/news/releasenotes/vs2017-preview-relnotes

Note that you can install Visual Studio 2017 Preview alongside your existing Visual Studio 2017 non-preview installation without affecting the non-preview installation.

*** This bug has been marked as a duplicate of bug 56787 ***