Exception using Isolated Storage in ASP.NET on a hosted server



I had assumed that Isolated Storage was the thing to use in a hosted
environment. My code to do so works fine on servers where I have full
access. I'm getting the following exception on the hosted environment:

System.IO.DirectoryNotFoundException: Could not find a part of the path
"*". at System.IO.__Error.WinIOError(Int32 errorCode, String str) at
System.IO.IsolatedStorage.IsolatedStorageFile.GetFileDirectoryNames(String
path, String msg, Boolean file) at
System.IO.IsolatedStorage.IsolatedStorageFile.GetRandomDirectory(String
rootDir, Boolean& bMigrateNeeded, String& sOldStoreLocation) at
System.IO.IsolatedStorage.IsolatedStorageFile.InitGlobalsNonRoaming(IsolatedStorageScope
scope) at
System.IO.IsolatedStorage.IsolatedStorageFile.GetRootDir(IsolatedStorageScope
scope) at
System.IO.IsolatedStorage.IsolatedStorageFile.GetGlobalFileIOPerm(IsolatedStorageScope
scope) at
System.IO.IsolatedStorage.IsolatedStorageFile.Init(IsolatedStorageScope
scope) at
System.IO.IsolatedStorage.IsolatedStorageFile.GetStore(IsolatedStorageScope
scope, Type domainEvidenceType, Type assemblyEvidenceType) at
System.IO.IsolatedStorage.IsolatedStorageFile.GetUserStoreForDomain()
at AcronymService.Acronym.LoadAcronymsDocument() in
C:\Projects\AcronymService\Acronym.asmx.vb:line 565 at
AcronymService.Acronym.GetAcronymsDocument() in
C:\Projects\AcronymService\Acronym.asmx.vb:line 529 at
AcronymService.Acronym.GetAcronymsVersion() in
C:\Projects\AcronymService\Acronym.asmx.vb:line 190



This happens regardless of whether I use Assembly or Domain as the
basis:

Dim IsolatedFile As IsolatedStorageFile

IsolatedFile = IsolatedStorageFile.GetUserStoreForAssembly
or -
IsolatedFile = IsolatedStorageFile.GetUserStoreForDomain

Any ideas?

.



Relevant Pages

  • Re: .Net applet security question
    ... IsolatedStorage! ... System.IO.IsolatedStorage.IsolatedStorage.DemandPermission(IsolatedStorageScope scope) ... scope, Evidence domainEv, Type domainEvidenceType, Evidence assemEv, Type ... scope, Type domainEvidenceType, Type assemblyEvidenceType) ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Reintroducing fish, the friendly interactive shell
    ... Fish supports universal variables, which are variables whose value is ... Universal variables have the outermost scope, ... Universal variables make it much more practical to use environment ... Can you specify the normal behaviour of shell? ...
    (comp.unix.shell)
  • Re: A question about lexical binding
    ... from SICP uses a deep binding environment. ... However, deep binding has the problem that depending upon the caller, ... Whether you get lexical or dynamic scope depends on how you terminate the ... toplevel frame, you have lexical references; ...
    (comp.lang.lisp)
  • Re: What Does Lexical Mean?
    ... or an environment can occur. ... places where that something is "in scope", that is, has a certain ... you now probably have enough context to go ... A binding is ... ...
    (comp.lang.lisp)
  • Re: Closures, was Re: What does Tcl lack?
    ... > understand that the execution environment can be different of the ... I think you're oversimplifying what happens in Tcl. ... can also use "global x" to indicate that the x is in the global scope, ... lexically scoped languages tend to ...
    (comp.lang.tcl)