Click here to Skip to main content
13,191,877 members (40,879 online)
Rate this:
Please Sign up or sign in to vote.
See more:
Hello, this is probably a very noobish question, but I'll ask it anyway, becouse Im new at this :)...
Im developing a webservice that clients will use for uploading files to a share point server. Evrything works fine when Im testing this on the development server, but when I try to use this service from a local machine, I get a "file could not be found" exception. Now this is logical becouse this file does not exist on the dev server. Now what must I do so that this will work also on other machines, that are not eaven in the same network as the server that will host the service?

For example, when I run the service localy(on the dev server) and I input the path to the file(c:\test.pdf), the file is uploaded normaly, but when I run the service from another machine thrugh the web browser and provide the path for the local file residing on that machine (c:\localTest.pdf), service searches for the file on the dev server file system.

So the question is how to tell the web service to search the files from the machine that called the service?

Hope this makes my problem more readeble.

Thank you for your answer!
Posted 12-Aug-12 22:25pm
Updated 13-Aug-12 0:57am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

A web service cannot search the local machine, that's not possible. Your issue is that you wrote code that assumed the server and client were the same, which is clearly not going to be the case. A web service can only answer requests, it cannot do anything proactive, like ask for something, and it sure cannot see the client machine.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web04 | 2.8.171017.2 | Last Updated 13 Aug 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100