R
Rick
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?
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?