473,385 Members | 1,492 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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
Nov 19 '05 #1
0 1075

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Simon Chester | last post by:
Hello! Can anyone help me with this problem?... I have developed an ASP.NET (version 1.1) application which I have deployed to a number of webservers. The web application works fine on Windows...
12
by: Anil Krishnamurthy | last post by:
We have an ASP.NET application that uses COM objects through Interop. The web application requires access to network and database resources and hence, needs to impersonate a domain account. The...
1
by: techfuzz | last post by:
I'm posting my problem experience and solution I found here for other ASP.NET developers. I have a web application that uses Forms Authentication with Active Directory to control access. In...
11
by: Phil | last post by:
Hi, I've currently setup a local user as described in: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnne...
0
by: velvet.graham | last post by:
I'm having a difficult time with impersonation. I've created an impersonation class. Here is the code below: ******Impersonation Class Code********* Imports System Imports System.Web.Security...
4
by: David Cablalero | last post by:
I have a windows service which every night checks a SQL Server database for some data and business rules. The application can access different DBs with the same structure, to tell the service which...
8
by: Marco Mechelli | last post by:
Hello, i'm facing with the following problem while using the Job API during an impersonation. I have a main process that needs to do the following: 1. Creates a new Job Object that will be...
1
by: Mythran | last post by:
We are using the P&P Enterprise Library Application Blocks in our applications and I'm reviewing how the EL stores it's cached data. As I was looking through the implementation of the security...
1
by: SteveM | last post by:
I am writing a ToolUsage tracker which we will be accessing from each of our custom written tools. It will basically capture various pieces of information about the user, and the application they...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.