Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net Security (http://www.velocityreviews.com/forums/f62-asp-net-security.html)
-   -   IsolatedStorage with impersonation in ASP.NET problem (http://www.velocityreviews.com/forums/t767077-isolatedstorage-with-impersonation-in-asp-net-problem.html)

Zdenek Drlik 01-25-2005 01:43 PM

IsolatedStorage with impersonation in ASP.NET problem
 
Hi,
I have an ASP.NET application. I want to use IsolatedStorage in this
application. When I run this application with anonymous access set in
IIS (user set to IUSR_<machine>) and impersonation set to false in
web.config, IsolatedStorage works fine.
But when I try to set impersonation to true via the web.config, calling

IsolatedStorageFile.GetUserStoreForDomain()

get me an IsolatedStorageException with this call stack:

System.IO.IsolatedStorage.IsolatedStorageFile.nGet RootDir(IsolatedStorageScope
scope) +0
System.IO.IsolatedStorage.IsolatedStorageFile.Init GlobalsNonRoaming(IsolatedStorageScope
scope) +42
System.IO.IsolatedStorage.IsolatedStorageFile.GetR ootDir(IsolatedStorageScope
scope) +98
System.IO.IsolatedStorage.IsolatedStorageFile.GetG lobalFileIOPerm(IsolatedStorageScope
scope) +208
System.IO.IsolatedStorage.IsolatedStorageFile.Init (IsolatedStorageScope
scope) +37
System.IO.IsolatedStorage.IsolatedStorageFile.GetS tore(IsolatedStorageScope
scope, Type domainEvidenceType, Type assemblyEvidenceType) +66

System.IO.IsolatedStorage.IsolatedStorageFile.GetU serStoreForDomain() +12

and tells me that storage directory cannot be created (System could not
find specified file).

Does anybody know what's wrong, or how to use IsolatedStorage with
impersonation in ASP.NET?
Thanks

Zdenek Drlik


All times are GMT. The time now is 04:27 PM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57