Re: Accessing shares on other servers
- From: "S.M. Altaf [MVP]" <smaltaf@xxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 5 Oct 2005 13:22:03 +0100
Kev,
You may be using Windows Authentication, but when your ASP.NET application
attempts to access those files, it does so under the security context of the
ASP.NET worker process. What you need to do is to set user impersonation in
your ASP.NET application so that the application runs under the security
context of the person who is using it.
Open up your web.config file, and change the impersonate tag to look like
this:
<identity impersonate="true" />
Read more about impersonation on MSDN:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vsent7/html/vxconImpersonation.asp
HTH,
S.M. Altaf
[MVP - VB]
--------------------------------------------------------------------------------
All that glitters has a high refractive index.
www.mendhak.com
"Mantorok" <none@xxxxxxxxxxxxx> wrote in message
news:di07c5$cbs$1@xxxxxxxxxxxxxxxxxxxxxx
> Hi
>
> I have an app and during some code-behind it attempts to fetch some files
> from another server-share, IIS is configured to use the users
> windows-login as authentication and although we have access to this share
> on the other server an exception is thrown, the app says "Access Denied"
> and waffles on about giving the ASPNET machine account access to the
> share - but we don't need to do this as we are using windows
> authentication.
>
> Any ideas? I'm confused.
>
> Kev
>
.
- Follow-Ups:
- Re: Accessing shares on other servers
- From: Bruce Barker
- Re: Accessing shares on other servers
- Prev by Date: Re: Help : Page can not displayed ???
- Next by Date: program is end, but the page seems still be running?
- Previous by thread: Re: Help : Page can not displayed ???
- Next by thread: Re: Accessing shares on other servers
- Index(es):
Relevant Pages
|
Loading