Exception using Isolated Storage in ASP.NET on a hosted server
- From: "Rick" <rickspiewak@xxxxxxxxxxxxxx>
- Date: 1 Jul 2005 07:16:02 -0700
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?
.
- Follow-Ups:
- Re: Exception using Isolated Storage in ASP.NET on a hosted server
- From: Klaus H. Probst
- Re: Exception using Isolated Storage in ASP.NET on a hosted server
- Prev by Date: Re: PerformanceCounterCategory.Delete removes entire registry key
- Next by Date: Re: using CryptUnprotectData api from c#
- Previous by thread: Re: PerformanceCounterCategory.Delete removes entire registry key
- Next by thread: Re: Exception using Isolated Storage in ASP.NET on a hosted server
- Index(es):
Relevant Pages
|