469,627 Members | 1,054 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,627 developers. It's quick & easy.

Impersonating over a domain.

Hi,

I'm currently in charge of a website on an internal domain. I'm
currently modifying some of the web pages and am wanting one of the
pages to be dynamic and read two files located on seperate pc on a
different internal domain. The code (C#) that I have in place works if
the files are located locally or on the same domain. However when I try
and access these files on the other domain I get an error message
saying that I dont have permission to view the files. I've been trying
to access these files without much success using impersonating, either
passing a username/password or leaving it to the default user that
logged in. The problem is that there is no username/password common to
both these domains. The website currently resides on a Windows 2000
based machine. Also the location of these files are stored in the
web.config file for easy access should the location change. I've also
tried to map the network drives on the server that hosts the website
instead of looking at the ip address for the location without much
success. Any help would be much appreciated.

Thanks in advance

Simon

May 8 '06 #1
1 1618
You'll either have to create permissions that apply to one user account on
the domain, or have your app impersonate a different user when using either
of the other 2 machines.

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Numbskull

Hard work is a medication for which
there is no placebo.

"accyboy1981" <ac*********@gmail.com> wrote in message
news:11*********************@y43g2000cwc.googlegro ups.com...
Hi,

I'm currently in charge of a website on an internal domain. I'm
currently modifying some of the web pages and am wanting one of the
pages to be dynamic and read two files located on seperate pc on a
different internal domain. The code (C#) that I have in place works if
the files are located locally or on the same domain. However when I try
and access these files on the other domain I get an error message
saying that I dont have permission to view the files. I've been trying
to access these files without much success using impersonating, either
passing a username/password or leaving it to the default user that
logged in. The problem is that there is no username/password common to
both these domains. The website currently resides on a Windows 2000
based machine. Also the location of these files are stored in the
web.config file for easy access should the location change. I've also
tried to map the network drives on the server that hosts the website
instead of looking at the ip address for the location without much
success. Any help would be much appreciated.

Thanks in advance

Simon

May 8 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by Jason | last post: by
4 posts views Thread by hoochiegooch | last post: by
2 posts views Thread by Leonardo Arena | last post: by
5 posts views Thread by fab | last post: by
2 posts views Thread by kedar | last post: by
1 post views Thread by =?Utf-8?B?c3VidGlsZQ==?= | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.