Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Security > Help with accessing network resources

Reply
Thread Tools

Help with accessing network resources

 
 
lrw
Guest
Posts: n/a
 
      11-17-2003

Simply, I wish to return System.IO.File.Exists
("\\myserver_1\myshare\myfolder\myfile.doc") within an
ASP.NET web application that sits
on "\\myserver_2"(windows server 2003). The application is
using integrated windows authentication only (anonymous is
off), and impersonation is enabled in web.config. The
security on the targeted network share includes a network
group with full control to all of its children, and I am a
member of this group. However, I continue to receive a
login prompt as this code executes.

PS. the code executes perfectly from my desktop(localhost -
win2k).

What am I missing?

LRW.

 
Reply With Quote
 
 
 
 
gwr
Guest
Posts: n/a
 
      11-20-2003
lrw,

Sorry I cannot help with the problem but I am new to ASP.Net applications and am experiencing the same problem as you. I have been testing with File.Exists for setting up authenication and security, however, it keeps returning FALSE if I try to access a file shared on the network. I have set up a virtual directory in IIS and can browse the virtual directory in IE and open files in the browser but am unable to access via code in ASP.NET application. The mapped physical path seems to be correct, so I feel I am missing something in the user account setup or configuration of authentication. I can test File.Exists successfully for any file on my development computer. It just fails when I access a file on the network.

Have you had any success with this?

gwr

----- lrw wrote: -----


Simply, I wish to return System.IO.File.Exists
("\\myserver_1\myshare\myfolder\myfile.doc") within an
ASP.NET web application that sits
on "\\myserver_2"(windows server 2003). The application is
using integrated windows authentication only (anonymous is
off), and impersonation is enabled in web.config. The
security on the targeted network share includes a network
group with full control to all of its children, and I am a
member of this group. However, I continue to receive a
login prompt as this code executes.

PS. the code executes perfectly from my desktop(localhost -
win2k).

What am I missing?

LRW.


 
Reply With Quote
 
 
 
Reply

Thread Tools

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
Accessing network resources via classic ASP Salty Dog ASP General 1 10-31-2006 11:21 PM
py2app question: Resources/Python -> Resources/lib/python2.4 Russell E. Owen Python 0 09-08-2006 08:08 PM
Error accessing network resources in ASP.Net Siva ASP .Net 2 12-23-2005 04:07 PM
Accessing resources fails with <identity impersonate="true"/> =?Utf-8?B?ZnJhbnpoZQ==?= ASP .Net 2 09-30-2004 10:39 AM
Accessing remote network resources from ASP.NET applications Dilip ASP .Net Security 2 04-13-2004 01:51 PM



Advertisments