PC Review


Reply
Thread Tools Rate Thread

ASP.NET impersonation - getfiles() problem

 
 
float
Guest
Posts: n/a
 
      12th Feb 2008
Hi all,

I've got problem with listing files in UNC path. Result is: Access to
the path '\\serwername\path' is denied. I'm using IIS 5.1 on WinXP
Pro. All machines in one domain. Impersonation is on.

web.config:
<system.web>
<identity impersonate="true"/>
<authentication mode="Windows"/>
</system.web>

Integrated Windows authentication checked and Anonymous access
unchecked in IIS configuration.

I've been googling on this one for a few days now and checked various
configurations - none worked. The strange thing is that when trying
this on a serwer machine it works fine, but any other machine gets
error. The other thing is: when I hardcoded my domain account and
password in the web.config all works excelent (on every machine).

If anyone got any clue what I'm doing wrong please help - I've just
run out of ideas.

Marcin
 
Reply With Quote
 
 
 
 
Anthony Jones
Guest
Posts: n/a
 
      12th Feb 2008

"float" <(E-Mail Removed)> wrote in message
news:8488168c-2d0f-4cef-9a51-(E-Mail Removed)...
> Hi all,
>
> I've got problem with listing files in UNC path. Result is: Access to
> the path '\\serwername\path' is denied. I'm using IIS 5.1 on WinXP
> Pro. All machines in one domain. Impersonation is on.
>
> web.config:
> <system.web>
> <identity impersonate="true"/>
> <authentication mode="Windows"/>
> </system.web>
>
> Integrated Windows authentication checked and Anonymous access
> unchecked in IIS configuration.
>
> I've been googling on this one for a few days now and checked various
> configurations - none worked. The strange thing is that when trying
> this on a serwer machine it works fine, but any other machine gets
> error. The other thing is: when I hardcoded my domain account and
> password in the web.config all works excelent (on every machine).
>
> If anyone got any clue what I'm doing wrong please help - I've just
> run out of ideas.
>
> Marcin



Answered in framework.aspnet.


--
Anthony Jones - MVP ASP/ASP.NET


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Directory.GetFiles() Problem Julie Smith Microsoft C# .NET 11 18th Nov 2008 05:03 AM
ASP.NET impersonation - getfiles() problem float Microsoft ASP .NET 7 17th Feb 2008 11:01 PM
Directory.GetFiles() / DirectoryInfo.GetFiles() on a remote server =?Utf-8?B?RGFuaWVsIENvcnLDqmE=?= Microsoft ASP .NET 2 24th Mar 2007 06:59 PM
Problem with GetFiles =?Utf-8?B?aHV6eg==?= Microsoft ASP .NET 1 2nd Dec 2004 01:39 PM
GetFiles problem =?Utf-8?B?RlM=?= Microsoft C# .NET 4 2nd Sep 2004 01:39 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:33 AM.