473,847 Members | 1,466 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Accessing public folder on clilent machine

Hi everyone,
I Hope that someone will be able to give me a hint to the solution to my
problem.
I have developed a web service (vb.net) that needs to access the folders /
files and copy files to and from the public folder on the client machine.
It is not a public web service, only accessible on intranet.
The anonymous access is disabled.
Windows authentication is enabled.
Web.Config sets <identity impersonate="tr ue" />
Using a test app, I call the web method and provide a file name with full
path (that resides in a public folder on my machine, the client machine) as
an argument among others. The web method tries to verify the existence of the
file, before doing a copy operation, by calling FileInfo.Exists method. The
method returns false and therefore the operation could not proceed normally.
However, if I logon to the web server and use IE to call the same method,
the web method verifies the existence of the same file on MY machine (which
is not the client machine in this case) and thus completes intended operation
normally.
And one of my colleagues can do the same from his machine using his login
i.e. he can logon to the server, bring up IE and call the web method with
same file name that resides on MY machine and the web method completes
normally.
What do I need to do, when I use my test application, to enable web method
access the public folder / file on a machine on the network?
Thanks a lot
Nov 23 '05 #1
5 2812
The process running your web services on the server should at least have
read permission to the file, and it must be UNC path, e.g.
\\clientmachine \C$\myfile.txt, not local path .
BTW I strongly suggest to use Attachment for the web services, WSE
toolkit provides very strong support for attacment.

Regards
Erymuzuan Mustapa

Khalique wrote:
Hi everyone,
I Hope that someone will be able to give me a hint to the solution to my
problem.
I have developed a web service (vb.net) that needs to access the folders /
files and copy files to and from the public folder on the client machine.
It is not a public web service, only accessible on intranet.
The anonymous access is disabled.
Windows authentication is enabled.
Web.Config sets <identity impersonate="tr ue" />
Using a test app, I call the web method and provide a file name with full
path (that resides in a public folder on my machine, the client machine) as
an argument among others. The web method tries to verify the existence of the
file, before doing a copy operation, by calling FileInfo.Exists method. The
method returns false and therefore the operation could not proceed normally.
However, if I logon to the web server and use IE to call the same method,
the web method verifies the existence of the same file on MY machine (which
is not the client machine in this case) and thus completes intended operation
normally.
And one of my colleagues can do the same from his machine using his login
i.e. he can logon to the server, bring up IE and call the web method with
same file name that resides on MY machine and the web method completes
normally.
What do I need to do, when I use my test application, to enable web method
access the public folder / file on a machine on the network?
Thanks a lot

Nov 23 '05 #2
Thnaks for your input.
I specify the path like this:
\\mypc\public\t estfile.txt
The 'public' folder on 'mypc' is a shared folder and accessible by Everyone.
The is evident from the fact that another user logged on to the server can
check the existance of this file on 'mypc' without having any special rights
on 'mypc' or the 'testfile.txt'.
I have not studied the WSE yet but I will start now. Any further hints how
attachments work under WSE?
Do the user of the web service need to have WSE on thier machines?
Khalique
"Erymuzuan Mustapa" wrote:
The process running your web services on the server should at least have
read permission to the file, and it must be UNC path, e.g.
\\clientmachine \C$\myfile.txt, not local path .
BTW I strongly suggest to use Attachment for the web services, WSE
toolkit provides very strong support for attacment.

Regards
Erymuzuan Mustapa

Khalique wrote:
Hi everyone,
I Hope that someone will be able to give me a hint to the solution to my
problem.
I have developed a web service (vb.net) that needs to access the folders /
files and copy files to and from the public folder on the client machine.
It is not a public web service, only accessible on intranet.
The anonymous access is disabled.
Windows authentication is enabled.
Web.Config sets <identity impersonate="tr ue" />
Using a test app, I call the web method and provide a file name with full
path (that resides in a public folder on my machine, the client machine) as
an argument among others. The web method tries to verify the existence of the
file, before doing a copy operation, by calling FileInfo.Exists method. The
method returns false and therefore the operation could not proceed normally.
However, if I logon to the web server and use IE to call the same method,
the web method verifies the existence of the same file on MY machine (which
is not the client machine in this case) and thus completes intended operation
normally.
And one of my colleagues can do the same from his machine using his login
i.e. he can logon to the server, bring up IE and call the web method with
same file name that resides on MY machine and the web method completes
normally.
What do I need to do, when I use my test application, to enable web method
access the public folder / file on a machine on the network?
Thanks a lot

Nov 23 '05 #3
Hello Khalique,
In your proxy class in yr test application you need to set the Credentials.

// Obtain password from a secure store.
String SecurelyStoredP assword = "bla bla";

// Set the client-side credentials using the Credentials property.
ICredentials credentials = new NetworkCredenti al("Joe",Secure lyStoredPasswor d,"mydomain") ;
serviceproxy.Cr edentials = credentials;

And then make your call.
HTH
Regards,
Dilip Krishnan
MCAD, MCSD.net
dkrishnan at geniant dot com
http://www.geniant.com
Thnaks for your input.
I specify the path like this:
\\mypc\public\t estfile.txt
The 'public' folder on 'mypc' is a shared folder and accessible by
Everyone.
The is evident from the fact that another user logged on to the server
can
check the existance of this file on 'mypc' without having any special
rights
on 'mypc' or the 'testfile.txt'.
I have not studied the WSE yet but I will start now. Any further hints
how
attachments work under WSE?
Do the user of the web service need to have WSE on thier machines?
Khalique
"Erymuzuan Mustapa" wrote:
The process running your web services on the server should at least
have
read permission to the file, and it must be UNC path, e.g.
\\clientmachine \C$\myfile.txt, not local path .
BTW I strongly suggest to use Attachment for the web services, WSE
toolkit provides very strong support for attacment.
Regards
Erymuzuan Mustapa
Khalique wrote:
Hi everyone,
I Hope that someone will be able to give me a hint to the solution
to my
problem.
I have developed a web service (vb.net) that needs to access the
folders /
files and copy files to and from the public folder on the client
machine.
It is not a public web service, only accessible on intranet.
The anonymous access is disabled.
Windows authentication is enabled.
Web.Config sets <identity impersonate="tr ue" />
Using a test app, I call the web method and provide a file name with
full
path (that resides in a public folder on my machine, the client
machine) as
an argument among others. The web method tries to verify the
existence of the
file, before doing a copy operation, by calling FileInfo.Exists
method. The
method returns false and therefore the operation could not proceed
normally.
However, if I logon to the web server and use IE to call the same
method,
the web method verifies the existence of the same file on MY machine
(which
is not the client machine in this case) and thus completes intended
operation
normally.
And one of my colleagues can do the same from his machine using his
login
i.e. he can logon to the server, bring up IE and call the web method
with
same file name that resides on MY machine and the web method
completes
normally.
What do I need to do, when I use my test application, to enable web
method
access the public folder / file on a machine on the network?
Thanks a lot

Nov 23 '05 #4
I am setting the credentials in my test application (main form class of a
windows app) like this
Dim vs As VaultService = New VaultService
vs.Credentials = System.Net.Cred entialCache.Def aultCredentials
And I have no problem with authentication. I have few other web methods that
I can call and get the results back e.g. data retrieved from sql server by a
sql query; orca test method that returns the user as authenticated by the
server. However, these methods do not attempt to access a shared folder on a
different machine.
(In my original post I described three different ways of accessing my web
service that I have tried.)
Thanks
Khalique
"Dilip Krishnan" wrote:
Hello Khalique,
In your proxy class in yr test application you need to set the Credentials.

// Obtain password from a secure store.
String SecurelyStoredP assword = "bla bla";

// Set the client-side credentials using the Credentials property.
ICredentials credentials = new NetworkCredenti al("Joe",Secure lyStoredPasswor d,"mydomain") ;
serviceproxy.Cr edentials = credentials;

And then make your call.
HTH
Regards,
Dilip Krishnan
MCAD, MCSD.net
dkrishnan at geniant dot com
http://www.geniant.com
Thnaks for your input.
I specify the path like this:
\\mypc\public\t estfile.txt
The 'public' folder on 'mypc' is a shared folder and accessible by
Everyone.
The is evident from the fact that another user logged on to the server
can
check the existance of this file on 'mypc' without having any special
rights
on 'mypc' or the 'testfile.txt'.
I have not studied the WSE yet but I will start now. Any further hints
how
attachments work under WSE?
Do the user of the web service need to have WSE on thier machines?
Khalique
"Erymuzuan Mustapa" wrote:
The process running your web services on the server should at least
have
read permission to the file, and it must be UNC path, e.g.
\\clientmachine \C$\myfile.txt, not local path .
BTW I strongly suggest to use Attachment for the web services, WSE
toolkit provides very strong support for attacment.
Regards
Erymuzuan Mustapa
Khalique wrote:

Hi everyone,
I Hope that someone will be able to give me a hint to the solution
to my
problem.
I have developed a web service (vb.net) that needs to access the
folders /
files and copy files to and from the public folder on the client
machine.
It is not a public web service, only accessible on intranet.
The anonymous access is disabled.
Windows authentication is enabled.
Web.Config sets <identity impersonate="tr ue" />
Using a test app, I call the web method and provide a file name with
full
path (that resides in a public folder on my machine, the client
machine) as
an argument among others. The web method tries to verify the
existence of the
file, before doing a copy operation, by calling FileInfo.Exists
method. The
method returns false and therefore the operation could not proceed
normally.
However, if I logon to the web server and use IE to call the same
method,
the web method verifies the existence of the same file on MY machine
(which
is not the client machine in this case) and thus completes intended
operation
normally.
And one of my colleagues can do the same from his machine using his
login
i.e. he can logon to the server, bring up IE and call the web method
with
same file name that resides on MY machine and the web method
completes
normally.
What do I need to do, when I use my test application, to enable web
method
access the public folder / file on a machine on the network?
Thanks a lot


Nov 23 '05 #5
Hello Khalique,

You need to make sure that the users who need to access that share have
the required permissions

HTH
Regards,
Dilip Krishnan
MCAD, MCSD.net
dkrishnan at geniant dot com
http://www.geniant.com
I am setting the credentials in my test application (main form class
of a
windows app) like this
Dim vs As VaultService = New VaultService
vs.Credentials = System.Net.Cred entialCache.Def aultCredentials
And I have no problem with authentication. I have few other web
methods that
I can call and get the results back e.g. data retrieved from sql
server by a
sql query; orca test method that returns the user as authenticated by
the
server. However, these methods do not attempt to access a shared
folder on a
different machine.
(In my original post I described three different ways of accessing my
web
service that I have tried.)
Thanks
Khalique
"Dilip Krishnan" wrote:
Hello Khalique,
In your proxy class in yr test application you need to set the
Credentials.
// Obtain password from a secure store.
String SecurelyStoredP assword = "bla bla";
// Set the client-side credentials using the Credentials property.
ICredentials credentials = new
NetworkCredenti al("Joe",Secure lyStoredPasswor d,"mydomain") ;
serviceproxy.Cr edentials = credentials;
And then make your call.

HTH
Regards,
Dilip Krishnan
MCAD, MCSD.net
dkrishnan at geniant dot com
http://www.geniant.com
Thnaks for your input.
I specify the path like this:
\\mypc\public\t estfile.txt
The 'public' folder on 'mypc' is a shared folder and accessible by
Everyone.
The is evident from the fact that another user logged on to the
server
can
check the existance of this file on 'mypc' without having any
special
rights
on 'mypc' or the 'testfile.txt'.
I have not studied the WSE yet but I will start now. Any further
hints
how
attachments work under WSE?
Do the user of the web service need to have WSE on thier machines?
Khalique
"Erymuzuan Mustapa" wrote:
The process running your web services on the server should at least
have
read permission to the file, and it must be UNC path, e.g.
\\clientmachine \C$\myfile.txt, not local path .
BTW I strongly suggest to use Attachment for the web services, WSE
toolkit provides very strong support for attacment.
Regards
Erymuzuan Mustapa
Khalique wrote:
> Hi everyone,
> I Hope that someone will be able to give me a hint to the solution
> to my
> problem.
> I have developed a web service (vb.net) that needs to access the
> folders /
> files and copy files to and from the public folder on the client
> machine.
> It is not a public web service, only accessible on intranet.
> The anonymous access is disabled.
> Windows authentication is enabled.
> Web.Config sets <identity impersonate="tr ue" />
> Using a test app, I call the web method and provide a file name
> with
> full
> path (that resides in a public folder on my machine, the client
> machine) as
> an argument among others. The web method tries to verify the
> existence of the
> file, before doing a copy operation, by calling FileInfo.Exists
> method. The
> method returns false and therefore the operation could not proceed
> normally.
> However, if I logon to the web server and use IE to call the same
> method,
> the web method verifies the existence of the same file on MY
> machine
> (which
> is not the client machine in this case) and thus completes
> intended
> operation
> normally.
> And one of my colleagues can do the same from his machine using
> his
> login
> i.e. he can logon to the server, bring up IE and call the web
> method
> with
> same file name that resides on MY machine and the web method
> completes
> normally.
> What do I need to do, when I use my test application, to enable
> web
> method
> access the public folder / file on a machine on the network?
> Thanks a lot

Nov 23 '05 #6

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

Similar topics

6
2361
by: Serge calderara | last post by:
Dear all, Does any one have a ready class that is able to access a configuration file and make different type of querry, read, write operation? Why re invanting the real if something already exist and as we share things in usegroup in general... thanks for your help
2
7080
by: Douglas Harber | last post by:
If I have DB2 8.1 (FP5, I believe, but not relevant to my question...I hope) installed on my desktop, do I have what I need to connect to a remote DB2 server (also running 8.1 FP5) from my desktop machine? I assume, perhaps naively, that all the parts are there but I've spent several hours trying to grasp how to go about accessing the remote server. Specifically, I'm trying to create and populate databases on the remote server from...
4
3785
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 testing purposes, the secure place is setup on the client machine. The client (window app) calls the web service (on a different machine) and connects successfully to the web service. However, when client calls a method that copies the file from...
0
1906
by: Bob | last post by:
Hi, I'm new to Python and I want to create a script that will import contactitems into an Outlook Public Folder. Therefore I've installed the Python for Windows Extensions. This way I can access my personal contacts <code> import win32com.client
3
5010
by: Olivier BESSON | last post by:
Hello, I have a web service of my own on a server (vb.net). I must declare it with SoapRpcMethod to be used with JAVA. This is a simple exemple method of my vb source : >************************************************************************ > <WebMethod(), System.Web.Services.Protocols.SoapRpcMethod()> _ > Public Function HelloWorld() As > <System.Xml.Serialization.SoapElementAttribute("return")> String
2
1738
by: baldwin | last post by:
Hello, We are going to have a web application that will be load balanced. Uploading documents into the same server is not an option. So we need to create a shared folder in a different machine and the 2 web servers will be accessing the shared folder. Problem is, how can we access the shared folder without setting the permissions accesible to anyone? We read some articles about impersonation (impersonate the aspnet process to an account...
2
12251
by: rachana | last post by:
Hi, I am trying to deploy a asp.net website developed using Visual Studio 2005 on server. Application works fine on development machine, but when trying to run on server I get following error message. Server Error in '/' Application. -------------------------------------------------------------------------------- Parser Error
4
4229
by: Noy B | last post by:
Hi, I have developed a small application that is using a MSAccess DB. the problem is that it was developed on a machine where the application and the DB are both located. now it needs to be change that the application will be able to run on any other machine (using \\ syntax on the run command- not a problem) using the DB located on a static-different machine. for this purpose I need to create a Remote Connection from my
0
3468
by: davidiwharper | last post by:
Hello all I am trying to modify a CDO script that moves email messages out of a user's inbox and into a drop folder. I want to update it to use a Public Folder instead. The portion of the original script that matters is: ' URL used for Outlook Web Access strOWAURL = "http://servername/exchange/"
0
9889
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10652
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10709
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10343
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7885
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7058
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5723
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4535
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4125
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.