.NET Framework Bookmark and Share   
 index > Common Language Runtime > IsolatedStorageFile.GetMachineStoreForApplication() throws IsolatedStorageException when "Start Without Debugging"
 

IsolatedStorageFile.GetMachineStoreForApplication() throws IsolatedStorageException when "Start Without Debugging"

Hi,

I have problem with my Console Application (.NET Framework 3.5).

Whentry to use IsolatedStorageFile.GetMachineStoreForApplication()
and start application without debugging
it throws IsolatedStorageException: "Unable to determine the identity of domain".

But in debug mode everything is OK.

I have noticed that AppDomain.CurrentDomain.ApplicationIdentity is null when I"Start without debugging" my application,
but in debug mode this property has assigned value.

Howto use IsolatedStorageFile.GetMachineStoreForApplication() in application,
(production application is executed without debugging).

Thanks in advance!
Janusz Noszczynski
Hi,
Application scoped isolated storage only works if you're running in a ClickOnce application, soyoumaytry to deploy your application with ClickOnce first, then install and run it, the exception will disappear.
Following links shows more details:
http://blogs.msdn.com/shawnfa/archive/2006/01/18/514407.aspx
http://blogs.msdn.com/shawnfa/archive/2006/01/20/514411.aspx

Thanks,
Eric
Please remember to mark helpful replies as answers and unmark them if they provide no help.
eryang
Hi,
Application scoped isolated storage only works if you're running in a ClickOnce application, soyoumaytry to deploy your application with ClickOnce first, then install and run it, the exception will disappear.
Following links shows more details:
http://blogs.msdn.com/shawnfa/archive/2006/01/18/514407.aspx
http://blogs.msdn.com/shawnfa/archive/2006/01/20/514411.aspx

Thanks,
Eric
Please remember to mark helpful replies as answers and unmark them if they provide no help.
eryang

You can use google to search for other answers

Custom Search

More Threads

• Migration to framework 2.0 from 1.1 - The assembly may have been tampered
• Method Equals for gives strange results for structs
• Interface as generic type parameters
• *.dll.config
• COM-Managed code interop problem
• Debugging info on one computer, not on the other?
• Control.Invoke() hangs the application
• WinHttp Error while deploying project at client computer [System.Runtime.InteropServices.COMException (0x80040154)]
• How to decrease page faults
• Is there a way to Redirect STDOUT/STDERR during AppDomain.ExecuteAssembly like Process.Start's redirection streams