List Info

Thread: Reading XML file on separate server




Reading XML file on separate server
country flaguser name
United States
2008-05-01 23:44:18
I have a C# ASP.NET project on a web server that needs to
read data
from a XML file that resides on another server in the same
network.

I am trying to do a Load into a XMLDocument object but I
keep getting
the error that says the app is unable to load the XML file.

What would be the best way to open and read the XML file on
the other server?

 Thanks,

Eric


--- List Settings ---
http://aspadvice.com/list
s/


RE: Reading XML file on separate server
user name
2008-05-02 14:19:57
How are you trying to open it?  Code example?

Thx

-kb 

-----Original Message-----
From: Eric Gravitt [mailto:ecg921gmail.com] 
Sent: Thursday, May 01, 2008 10:44 PM
To: aspnetaspadvice.com
Subject: [aspnet] Reading XML file on separate server

I have a C# ASP.NET project on a web server that needs to
read data from
a XML file that resides on another server in the same
network.

I am trying to do a Load into a XMLDocument object but I
keep getting
the error that says the app is unable to load the XML file.

What would be the best way to open and read the XML file on
the other
server?

 Thanks,

Eric


--- List Settings ---
http://aspadvice.com/list
s/

Notice of Confidentiality 
This transmission contains information that may be
confidential.  It has been prepared for the sole and
exclusive use of the intended recipient and on the basis
agreed with that person.  If you are not the intended
recipient of the message (or authorized to receive it for
the intended recipient), you should notify us immediately;
you should delete it from your system and may not disclose
its contents to anyone else.

This e-mail has come to you from Watson Wyatt &
Company.

--- List Settings ---
http://aspadvice.com/list
s/


RE: Reading XML file on separate server
country flaguser name
United States
2008-05-02 14:19:58
Do what you are doing, but give the IIS user on your
webserver permission
to the XML server. You app lacks permission is the most
likely problem

John Warner




> -----Original Message-----
> From: Eric Gravitt [mailto:ecg921gmail.com] 
> Sent: Friday, May 02, 2008 12:44 AM
> To: aspnetaspadvice.com
> Subject: [aspnet] Reading XML file on separate server
> 
> 
> I have a C# ASP.NET project on a web server that needs
to 
> read data from a XML file that resides on another
server in 
> the same network.
> 
> I am trying to do a Load into a XMLDocument object but
I keep 
> getting the error that says the app is unable to load
the XML file.
> 
> What would be the best way to open and read the XML
file on 
> the other server?
> 
>  Thanks,
> 
> Eric
> 
> 
> --- List Settings ---
> http://aspadvice.com/list
s/
> 



--- List Settings ---
http://aspadvice.com/list
s/


RE: Reading XML file on separate server
country flaguser name
United States
2008-05-02 14:26:11
- if you're allowing anonymous access to the web site, then network admins would have to add the \webServerNetwork Service account R/W permissions to the file/folder. 
- If you're running integrated security, then same deal. ; The admin group would have to add the appropriate permissions for the users to that folder/file. 
- If the admins aren't allowing a workstation account (like \webservernetwork service) access, then you're going to have them create an 'application' account with a password that doesn't expire and write some code in the page that uses the NetworkCredentials API to assume the Identity of the app account for the file access, then undo the identity from the thread.

> Date: Fri, 2 May 2008 00:44:18 -0400
> From: ecg921gmail.com
> Subject: [aspnet] Reading XML file on separate server
>; To: aspnetaspadvice.com
>
> I have a C# ASP.NET project on a web server that needs to read data
> from a XML file that resides on another server in the same network.
>
> I am trying to do a Load into a XMLDocument object but I keep getting
> the error that says the app is unable to load the XML file.
>
> What would be the best way to open and read the XML file on the other server?
>
> Thanks,
>
> Eric
>
>
> --- List Settings ---
> http://aspadvice.com/lists/
>



Back to work after baby– how do you know when you’re ready? --- List Settings ---
http://aspadvice.com/lists/
RE: Reading XML file on separate server
country flaguser name
United States
2008-05-02 15:37:58
Referring to point 3, where do I find code that will show me
how to
impersonate an Identity in code?

Thanks,

Eric

On 5/2/08, Tim Curtin <tjc_tekhotmail.com> wrote:
> - if you're allowing anonymous access to the web site,
then network admins
> would have to add the \webServerNetwork Service
account R/W permissions to
> the file/folder.
> - If you're running integrated security, then same
deal.  The admin group
> would have to add the appropriate permissions for the
users to that
> folder/file.
> - If the admins aren't allowing a workstation account
(like
> \webservernetwork service) access, then you're going
to have them create
> an 'application' account with a password that doesn't
expire and write some
> code in the page that uses the NetworkCredentials API
to assume the Identity
> of the app account for the file access, then undo the
identity from the
> thread.
>
> > Date: Fri, 2 May 2008 00:44:18 -0400
> > From: ecg921gmail.com
> > Subject: [aspnet] Reading XML file on separate
server
> > To: aspnetaspadvice.com
>
> >
> > I have a C# ASP.NET project on a web server that
needs to read data
> > from a XML file that resides on another server in
the same network.
> >
> > I am trying to do a Load into a XMLDocument object
but I keep getting
> > the error that says the app is unable to load the
XML file.
> >
> > What would be the best way to open and read the
XML file on the other
> server?
> >
> > Thanks,
> >
> > Eric
> >
> >
> > --- List Settings ---
> > http://aspadvice.com/list
s/
> >
>
>
> ________________________________
> Back to work after baby– how do you know when you're
ready? --- List
> Settings ---
> http://aspadvice.com/list
s/
>


--- List Settings ---
http://aspadvice.com/list
s/


[1-5]

about | contact  Other archives ( Real Estate discussion Medical topics )