473,326 Members | 2,147 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,326 software developers and data experts.

Accessing Shared Folders on a computer in another domain using UNC

an asp.net page on Machine A is trying to access files on several machines
of different domains..
any 'good' method to do it without mapping drive in prior.....

i've read something called impersonate; but it use PInvoke, which I don't
like using personally

any good solution?

thanks!!!

Nov 19 '05 #1
3 2939
You could run the ASP.NET application with the identity of a domain
user who is trusted on those other domains. Also, impersonation
doesn't nessecarily require pinvoke, in fact you could impersonate a
user by entering a specific username / password in web.config or in
the registry and get to the networked drives.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Fri, 29 Apr 2005 00:13:20 +0800, "Baron" <ba*****@hotmail.com>
wrote:
an asp.net page on Machine A is trying to access files on several machines
of different domains..
any 'good' method to do it without mapping drive in prior.....

i've read something called impersonate; but it use PInvoke, which I don't
like using personally

any good solution?

thanks!!!


Nov 19 '05 #2
but the point is
I'll need different accounts when accessing different machines

thanks
baron
"Scott Allen" <sc***@nospam.odetocode.com> wrote in message
news:b2********************************@4ax.com...
You could run the ASP.NET application with the identity of a domain
user who is trusted on those other domains. Also, impersonation
doesn't nessecarily require pinvoke, in fact you could impersonate a
user by entering a specific username / password in web.config or in
the registry and get to the networked drives.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Fri, 29 Apr 2005 00:13:20 +0800, "Baron" <ba*****@hotmail.com>
wrote:
an asp.net page on Machine A is trying to access files on several machines
of different domains..
any 'good' method to do it without mapping drive in prior.....

i've read something called impersonate; but it use PInvoke, which I don't
like using personally

any good solution?

thanks!!!

Nov 19 '05 #3

In that case you may want to look at using delegation. Delegation
allows the client's identity to hop from the web browser to your web
server, and then again from the server to the file share on a third
machine. The third machine will then see the client's identity when a
request is made for the file.

I have some links here:
http://odetocode.com/Blogs/scott/arc...2/24/1053.aspx

--
Scott
http://www.OdeToCode.com/blogs/scott/
On Fri, 29 Apr 2005 22:31:44 +0800, "Baron" <ba*****@hotmail.com>
wrote:
but the point is
I'll need different accounts when accessing different machines

thanks
baron
"Scott Allen" <sc***@nospam.odetocode.com> wrote in message
news:b2********************************@4ax.com.. .
You could run the ASP.NET application with the identity of a domain
user who is trusted on those other domains. Also, impersonation
doesn't nessecarily require pinvoke, in fact you could impersonate a
user by entering a specific username / password in web.config or in
the registry and get to the networked drives.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Fri, 29 Apr 2005 00:13:20 +0800, "Baron" <ba*****@hotmail.com>
wrote:
an asp.net page on Machine A is trying to access files on several machines
of different domains..
any 'good' method to do it without mapping drive in prior.....

i've read something called impersonate; but it use PInvoke, which I don't
like using personally

any good solution?

thanks!!!


Nov 19 '05 #4

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

Similar topics

36
by: Thomas | last post by:
after spending countless hours trying, i give up and hope to get some help in here. on server1 i got the web myweb.com with my test.asp. in the test.asp, i'm trying to read a file from an UNC...
3
by: prodirect | last post by:
Hi all, I hope someone can help me. I've recently created a database and wanted to put it up on an ftp sight so that multiple people could access the same tables at the same time from different...
1
by: Z0gS | last post by:
I got this problem for the web application I try to access files on a remote server. string dirs = Directory.GetDirectories(@"E:\vehicles") E drive is a map to a network drive. I get the...
27
by: Javier Martinez | last post by:
Hi I have asp application in a machine with a virtual directory referring a shared directory in another machine When I try to load any aspx page of my portal I get the following error: ...
2
by: Ian Murrell | last post by:
My application writes a text data file to a folder on another computer. The other computer is mapped by drive letter to the root (C) shared folder, eg as G:. The network is simple peer2peer, shared...
4
by: Khalique | last post by:
I have built a web service whose purpose is to copy files from a secure place to client machine and vice versa. The problem I am having is perhaps related to permissions and access rights. For...
3
by: sva | last post by:
Using C# for an application in which I am working on, I need to display the available shared folders on the computer that's running the application. The shared folder paths need to be in UNC format...
0
by: sonu | last post by:
I have following client side code which i have used in my asp.net project SummaryFeatured Resources from the IBM Business Values Solution Center WHITEPAPER : CRM Done Right Improve the...
0
by: NoWhereMan | last post by:
Hello, I'm trying to get the list of shared folders of a network computer and add them to a combo box. I'm using the bellow code in VB .NET. Code ==== Private Sub EnumShares(ByVal Machine As...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
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...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
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...

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.