Forum Visual Studio
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

Visual Studio 2017 iOS debugging fails - System.IO.FileNotFoundException: Could not load file or ass

JeffGonzalesJeffGonzales USMember ✭✭

I recently updated both Visual Studio 2017 on my development machine and Xamarin on my build agent. I now cannot debug iOS apps. The app opens up on my test device, but the debugger throws an exception. The output is below:

The connection with the debugger has been lost. The target application may have exited.
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. The system cannot find the file specified.
File name: 'Mono.Posix, Version=2.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756'
at Mono.Debugging.Soft.SoftDebuggerSession.ResolveSymbolicLink(String path)
at Mono.Debugging.Soft.SoftDebuggerSession.PathsAreEqual(String p1, String p2)
at Mono.Debugging.Soft.SoftDebuggerSession.FindLocationByMethod(MethodMirror method, String file, Int32 line, Int32 column, Boolean& insideTypeRange)
at Mono.Debugging.Soft.SoftDebuggerSession.FindLocationByType(TypeMirror type, String file, Int32 line, Int32 column, Boolean& genericMethod, Boolean& insideTypeRange)
at Mono.Debugging.Soft.SoftDebuggerSession.ResolveBreakpoints(TypeMirror type)
at Mono.Debugging.Soft.SoftDebuggerSession.HandleTypeLoadEvents(TypeLoadEvent[] events)
at Mono.Debugging.Soft.SoftDebuggerSession.HandleEventSet(EventSet es)
at Mono.Debugging.Soft.SoftDebuggerSession.EventHandler()

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

2017-06-01 15:34:06.598 DMiOS[1105:350377] Xamarin.iOS: Processing: 'exit process'
2017-06-01 15:34:06.599 DMiOS[1105:350377] Xamarin.iOS: The IDE requested an exit, will exit immediately.
The app has been terminated.

Best Answer

  • JeffGonzalesJeffGonzales USMember ✭✭
    Accepted Answer

    @Henrique.7684 Have you tried manually installing the missing DLL? What version of Visual Studio are you running? I updated/repaired my installation which seemed to help.

Answers

Sign In or Register to comment.