Bug 28193 - Since today, I have a System.IO.IOException exception when I debug to iOS-Simulator
Summary: Since today, I have a System.IO.IOException exception when I debug to iOS-Sim...
Status: RESOLVED FIXED
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: iOS ()
Version: 3.9
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2015-03-19 08:53 UTC by Fredy Wenger
Modified: 2015-05-28 07:20 UTC (History)
4 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 FIXED

Description Fredy Wenger 2015-03-19 08:53:42 UTC
VS2013 - Update 2, XF 1.4.1


Since today, I have a System.IO.IOException exception by debug to iOS-Simulator.
The first time, it works.
The bug occur from second try.
=> I then have to restart VS by every second debug-session!

As I am also not able to debug to Phone5-device since a long time! I am not able to debug to iOS without loosing much time now!

Error:
Fehler	102	Unerwarteter Fehler bei der ConvertPdbToMdbTask-Aufgabe.
System.IO.IOException: Der Prozess kann nicht auf die Datei "M:\SW\VS_2013\Xamarin\MatrixGuide\MatrixGuide.iOS\bin\iPhoneSimulator\Debug\MatrixGuideiOSapp.exe.mdb" zugreifen, da sie von einem anderen Prozess verwendet wird.
   bei System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   bei System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   bei System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access)
   bei Mono.CompilerServices.SymbolWriter.MonoSymbolWriter.WriteSymbolFile(Guid guid)
   bei Pdb2Mdb.Converter.Convert(AssemblyDefinition assembly, IEnumerable`1 functions, MonoSymbolWriter mdb) in c:\w\e23ab728\XamarinVS\msbuild\Xamarin.iOS.Tasks\Pdb2mdb\Driver.cs:Zeile 51.
   bei Pdb2Mdb.Converter.Convert(String filename) in c:\w\e23ab728\XamarinVS\msbuild\Xamarin.iOS.Tasks\Pdb2mdb\Driver.cs:Zeile 38.
   bei Xamarin.iOS.Tasks.ConvertPdbToMdbTask.Execute() in c:\w\e23ab728\XamarinVS\msbuild\Xamarin.iOS.Tasks\Tasks\ConvertPdbToMdbTask.cs:Zeile 32.
   bei Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
   bei Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__20.MoveNext()	C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.After.targets	108	3	MatrixGuide.iOS
Comment 1 Brendan Zagaeski (Xamarin Team, assistant) 2015-03-24 11:40:48 UTC
Thanks for the report. Based on the stack trace, I believe this is a duplicate of bug 26841.

Bug 26841, comment 5 suggests an interesting temporary workaround involving the `handle` command.
Comment 2 Fredy Wenger 2015-05-28 07:20:24 UTC
As I don't see this bug in the latest XF- and Integration-Version I set this bug to solved myself to help Xamarin by the clean-out if Bugzilla.