Re: Remote data access on LAN
- From: "Jim" <null@xxxxxxxx>
- Date: Mon, 14 Nov 2005 00:47:21 -0800
If I understand it correctly, you want local execution but remote data
access for a remotely stored executable.
It might have been useful if you provided a specific error message or #, but
I suspect the problem is not finding the data, but an issue of
security/authorization. Btw, what is the transport protocol (tcp/ip,
netbeui, smb)?
I'm surprised you're not using RPC (Remote Procedure Call) for this app. Of
course, this would result in remote execution, which perhaps isn't what you
want. But it would avoid the current problem, it keeps data access local to
execution. You could use an RPC just for data retreival, though. The
reason an RPC will work is because it provides an authorization model. It's
either that, or use a formal protocol like FTP, HTTP, whatever makes sense.
Windows is probably not going to authorize remote data access via Windows
workgroup authorization, which seems to be what you are assuming.
HTH
Jim
"Loopy Lou" <sherwood@xxxxxxxxxxxxxx> wrote in message
news:1131956416.088866.88370@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> An application (written in Visual C++) resides on machine A. Data used
> by this application also resides on machine A.
>
> We want to execute this application from machine B. The executable and
> data will reside only on machine A. Both machines are running Windows
> XP.
>
> A shortcut has been created on machine B to the shared folder on
> machine A which contains the executable. When this shortcut is clicked,
> the application starts properly on machine B. However, attempting to
> read the data gives errors.
>
> The application specifies a full path to the data (e g,
> C:\MyDirectory\MyData.txt). From the viewpoint of machine B, that
> probably means B's drive C:. That is wrong, because the data is on A's
> drive C:.
>
> How can the application specify that the path resides on the same
> machine as the executable? I have tried prefixing the path with the
> hostname of machine A (e g, \\MyHost\C:\MyDirectory\MyData.txt), but
> this gives an error when application is started on machine A.
>
> Can anyone explain how to accomplish this remote access to the data?
>
.
- Follow-Ups:
- Re: Remote data access on LAN
- From: Loopy Lou
- Re: Remote data access on LAN
- References:
- Remote data access on LAN
- From: Loopy Lou
- Remote data access on LAN
- Prev by Date: Remote data access on LAN
- Next by Date: Re: Remote data access on LAN
- Previous by thread: Remote data access on LAN
- Next by thread: Re: Remote data access on LAN
- Index(es):
Relevant Pages
|