Bug 42300 - Error while debugging on iphone device
Summary: Error while debugging on iphone device
Status: VERIFIED FIXED
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: iOS ()
Version: unspecified
Hardware: PC Windows
: Normal normal
Target Milestone: 15.3
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2016-07-01 07:11 UTC by snehal
Modified: 2017-07-12 07:42 UTC (History)
7 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:
VERIFIED FIXED

Description snehal 2016-07-01 07:11:39 UTC
I am getting following error while running app on iphone device.

System.AggregateException: One or more errors occurred. ---> System.IO.IOException: The process cannot access the file 'C:\Users\edot\AppData\Local\Temp\xd-support-files-5c439471\AquaConstraints.plist' because it is being used by another process.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at 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)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.File.InternalWriteAllBytes(String path, Byte[] bytes, Boolean checkHost)
   at System.IO.File.WriteAllBytes(String path, Byte[] bytes)
   at MonoTouch.Design.Client.IosSdkTarget.InitializeLocalFileStore()
   at MonoTouch.Design.Client.IosSdkTarget..ctor(Version xcodeVersion, DataPackEntry[] datapack, String storeDirectory)
   at MonoTouch.Design.Client.IPhoneDesignerSession.SetupSession(DesignSession session, CancellationToken token)
   --- End of inner exception stack trace ---
---> (Inner Exception #0) System.IO.IOException: The process cannot access the file 'C:\Users\edot\AppData\Local\Temp\xd-support-files-5c439471\AquaConstraints.plist' because it is being used by another process.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at 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)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.File.InternalWriteAllBytes(String path, Byte[] bytes, Boolean checkHost)
   at System.IO.File.WriteAllBytes(String path, Byte[] bytes)
   at MonoTouch.Design.Client.IosSdkTarget.InitializeLocalFileStore()
   at MonoTouch.Design.Client.IosSdkTarget..ctor(Version xcodeVersion, DataPackEntry[] datapack, String storeDirectory)
   at MonoTouch.Design.Client.IPhoneDesignerSession.SetupSession(DesignSession session, CancellationToken token)<---


Contents of C:\Users\edot\AppData\Local\Xamarin\Logs\14.0\iOSDesigner-5008.2016-07-01__10-03-50.log:
MDAddinsHash: c510236bc65db72fa8b900951ed4680b6a5e63fa

[2016-07-01 10:32:42.2] INFO: Starting full reload...
[2016-07-01 10:32:42.3] INFO: Reloading: Serialization took 0ms
[2016-07-01 10:36:13.3] INFO: Reloading: Deserialization took 37ms
[2016-07-01 10:36:13.3] INFO: Reloading: Server rendering completed in 211032ms with 222228 bytes
[2016-07-01 10:36:13.4] ERROR: EnsureSession (counter 1): System.AggregateException: One or more errors occurred. ---> System.IO.IOException: The process cannot access the file 'C:\Users\edot\AppData\Local\Temp\xd-support-files-5c439471\AquaConstraints.plist' because it is being used by another process.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at 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)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.File.InternalWriteAllBytes(String path, Byte[] bytes, Boolean checkHost)
   at System.IO.File.WriteAllBytes(String path, Byte[] bytes)
   at MonoTouch.Design.Client.IosSdkTarget.InitializeLocalFileStore()
   at MonoTouch.Design.Client.IosSdkTarget..ctor(Version xcodeVersion, DataPackEntry[] datapack, String storeDirectory)
   at MonoTouch.Design.Client.IPhoneDesignerSession.SetupSession(DesignSession session, CancellationToken token)
   --- End of inner exception stack trace ---
---> (Inner Exception #0) System.IO.IOException: The process cannot access the file 'C:\Users\edot\AppData\Local\Temp\xd-support-files-5c439471\AquaConstraints.plist' because it is being used by another process.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at 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)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.File.InternalWriteAllBytes(String path, Byte[] bytes, Boolean checkHost)
   at System.IO.File.WriteAllBytes(String path, Byte[] bytes)
   at MonoTouch.Design.Client.IosSdkTarget.InitializeLocalFileStore()
   at MonoTouch.Design.Client.IosSdkTarget..ctor(Version xcodeVersion, DataPackEntry[] datapack, String storeDirectory)
   at MonoTouch.Design.Client.IPhoneDesignerSession.SetupSession(DesignSession session, CancellationToken token)<---

[2016-07-01 10:36:13.6] ERROR: Unexpected exception while reloading XML for System.Xml.Linq.XElement[]
System.AggregateException: One or more errors occurred. ---> System.IO.IOException: The process cannot access the file 'C:\Users\edot\AppData\Local\Temp\xd-support-files-5c439471\AquaConstraints.plist' because it is being used by another process.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at 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)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.File.InternalWriteAllBytes(String path, Byte[] bytes, Boolean checkHost)
   at System.IO.File.WriteAllBytes(String path, Byte[] bytes)
   at MonoTouch.Design.Client.IosSdkTarget.InitializeLocalFileStore()
   at MonoTouch.Design.Client.IosSdkTarget..ctor(Version xcodeVersion, DataPackEntry[] datapack, String storeDirectory)
   at MonoTouch.Design.Client.IPhoneDesignerSession.SetupSession(DesignSession session, CancellationToken token)
   --- End of inner exception stack trace ---
---> (Inner Exception #0) System.IO.IOException: The process cannot access the file 'C:\Users\edot\AppData\Local\Temp\xd-support-files-5c439471\AquaConstraints.plist' because it is being used by another process.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at 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)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.File.InternalWriteAllBytes(String path, Byte[] bytes, Boolean checkHost)
   at System.IO.File.WriteAllBytes(String path, Byte[] bytes)
   at MonoTouch.Design.Client.IosSdkTarget.InitializeLocalFileStore()
   at MonoTouch.Design.Client.IosSdkTarget..ctor(Version xcodeVersion, DataPackEntry[] datapack, String storeDirectory)
   at MonoTouch.Design.Client.IPhoneDesignerSession.SetupSession(DesignSession session, CancellationToken token)<---
Comment 1 Joaquin Jares 2016-12-26 11:10:07 UTC
I'm moving this to the iOS component since this is an error with the way property pages locks this file. There's some rework coming along in C10 for that, so I'm assigning that milestone to it.
Comment 2 Emanuel 2017-06-09 21:50:32 UTC
Hi snehal,
We revamped the iOS Property Pages on our 15.2 release. I've tried to reproduce using our latest stable bit but I couldn't.

I'll mark this bug as Resolved Fixed, but feel free to reopen it if you're still facing this issue. It also would be really helpful if you could attach some repro steps.

Thanks for reporting!