Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Security > Can not access files on different computer

Thread Tools

Can not access files on different computer

Posts: n/a
My solution has an ASP.NET app , a Web Service and a NET dll .
The ASP.NET application calls to WebService’s methods , which calls
the dll’s methods .
One of the functions of the dll is accessing files , which are located
on different computer. The path is UNC path and it exists . It has the
following code :

If My.Computer.FileSystem.FileExists(Path) Then
‘ read the image
End if

If the application is run directly from Visual Studio 2008 , it works
just fine and the FileExists returns true.
However, the same code running on the same machine under IIS fails.

When I had problems accessing some files on local machine from my
ASP.NET application before , I simply assigned ASPNET user to those
directories , and it worked fine .

However, since the files that should be accessed in the dll are
located on different machine, I can not do this .
I believe this is something to do with permissions.
It looks like I need to use ASP.NET impersonation. Is that right ? Is
there any good totorial explaining ALL steps that should be done ?
I found out that I need to add the “identity” line in my Web.Config .
I did it as following , but it didn’t help :
<identity impersonate="true" userName="my user name" password="the
user password"/>

My questions are :

What should I do in addition to writing this “identity" line in
Web.Config ?
I use FORMS ASP.NET authentication . Is that OK ?
What IIS Authentication should I use? Where I define it ?
If I use impersonation, what user name should I use? Where it should
be configured and what roles / permissions it should have?
Should it be domain user? Local User?
What config files should I change ( Web.Config , Machine.config ?
Something elase ? )

Any advices would be appreciated !!!!

Thanks , Orit .

Reply With Quote

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
Load different CSS files for different browsers Sehboo ASP .Net 0 11-22-2006 03:45 PM
2nd network computer can't see 100% of files in certain folders on 1st computer R. D. Silvester Wireless Networking 0 03-15-2005 02:52 PM
different between http://computer and Peng Jie ASP .Net Security 6 02-06-2005 02:25 AM
Caching Different Xml files for different users Nita Raju ASP .Net 1 12-15-2004 07:10 AM
one computer can access shared files the other can't even access =?Utf-8?B?SiBIYW1lcg==?= Wireless Networking 4 12-07-2004 03:13 AM