copy file from ppc to server

A

a

i will have a wifi connection from ppc to server, no aactivesync
connection.

i need to copy a file from the ppc to the server over the wifi
connection.

i searced around and found people suggesting the method:

string localfile = @"Temp\1.txt";
System.IO.File.Copy(localfile, @"\\servername\c\temp\1.txt", true);

but i get an IOException error.

for testing purposes (dont have wireless currently) I do have the ppc
cradled and connected through activesync. Why is it not working? I
have the c drive shared on the server.
 
P

Paul G. Tobey [eMVP]

Yes, it doesn't surprise me that it doesn't work over AS, but you haven't
told us what the exception tells you about the failure. It might be that
you aren't sharing it so that it's writable to all users, or you might not
have shared it as "c", but something else, etc. *Use* the failure
information provided by the system!

Paul T.
 
A

a

all it says is 'IOException' like I said...nothing else.

i shared it as 'c', and have no problem copying files to it from
laptops i occassionally have hooked up up to the lan.
 
P

Paul G. Tobey [eMVP]

So, you're running this program in the debugger and, when the exception is
generated, the content of the Exception object, which you are inspecting
with the debugger is nothing? No native error code? No other information
at all? Doubtful...

Paul T.
 
A

a

the exception error string is 'IOException'. Whether I print the error
string onto a label object in the app, or check it during debugging,
that's what it is.
 
P

Paul G. Tobey [eMVP]

Just type \\<servername>\<sharename> into the Address bar.

Paul T.
 
A

a

ok it gives me 2 errors when i try to do this:

1. the network path was not found.

i hit 'ok' then i get:

2. network resource cannot be found or you do not have permission to
access the network
 
P

Paul G. Tobey [eMVP]

If the network path can't be found, then nothing else you do will work.
Could be that the server is expecting clients to use some protocol that you
don't have to access the shares (IPX/SPX, or something). You are specifying
a server *name*, not an IP address, right? I've got half a dozen protocols
bound to my adapter on the desktop machine that I'm testing with right now.

Paul T.

ok it gives me 2 errors when i try to do this:

1. the network path was not found.

i hit 'ok' then i get:

2. network resource cannot be found or you do not have permission to
access the network



Just type \\<servername>\<sharename> into the Address bar.

Paul T.

i don't see it, what folder level should it be at?



On Thu, 8 Jun 2006 17:59:26 -0700, "Ilya Tumanov [MS]"

Can you access this share from file explorer on device?
 
A

a

i've tried using the name AND the ip address.

with the protocol you are talking about, would that affect laptops as
well? because like i said, laptops i connect have no problem accessing
it.



If the network path can't be found, then nothing else you do will work.
Could be that the server is expecting clients to use some protocol that you
don't have to access the shares (IPX/SPX, or something). You are specifying
a server *name*, not an IP address, right? I've got half a dozen protocols
bound to my adapter on the desktop machine that I'm testing with right now.

Paul T.

ok it gives me 2 errors when i try to do this:

1. the network path was not found.

i hit 'ok' then i get:

2. network resource cannot be found or you do not have permission to
access the network



Just type \\<servername>\<sharename> into the Address bar.

Paul T.


i don't see it, what folder level should it be at?



On Thu, 8 Jun 2006 17:59:26 -0700, "Ilya Tumanov [MS]"

Can you access this share from file explorer on device?
 
P

Paul G. Tobey [eMVP]

XP has a lot more options for communication than Windows CE does. CE is
entirely dependent on TCP/IP, while I can connect from XP to XP with SPX,
NetBEUI, TCP, etc. Specifying the IP address in CE in the Address box does
not work. Only the server name would work. On the server, you have File
and Printer Sharing for Microsoft Networks turned on?

Paul T.

i've tried using the name AND the ip address.

with the protocol you are talking about, would that affect laptops as
well? because like i said, laptops i connect have no problem accessing
it.



If the network path can't be found, then nothing else you do will work.
Could be that the server is expecting clients to use some protocol that
you
don't have to access the shares (IPX/SPX, or something). You are
specifying
a server *name*, not an IP address, right? I've got half a dozen
protocols
bound to my adapter on the desktop machine that I'm testing with right
now.

Paul T.

ok it gives me 2 errors when i try to do this:

1. the network path was not found.

i hit 'ok' then i get:

2. network resource cannot be found or you do not have permission to
access the network



Just type \\<servername>\<sharename> into the Address bar.

Paul T.


i don't see it, what folder level should it be at?



On Thu, 8 Jun 2006 17:59:26 -0700, "Ilya Tumanov [MS]"

Can you access this share from file explorer on device?
 
A

a

yup, got file and printer sharing on.




XP has a lot more options for communication than Windows CE does. CE is
entirely dependent on TCP/IP, while I can connect from XP to XP with SPX,
NetBEUI, TCP, etc. Specifying the IP address in CE in the Address box does
not work. Only the server name would work. On the server, you have File
and Printer Sharing for Microsoft Networks turned on?

Paul T.

i've tried using the name AND the ip address.

with the protocol you are talking about, would that affect laptops as
well? because like i said, laptops i connect have no problem accessing
it.



If the network path can't be found, then nothing else you do will work.
Could be that the server is expecting clients to use some protocol that
you
don't have to access the shares (IPX/SPX, or something). You are
specifying
a server *name*, not an IP address, right? I've got half a dozen
protocols
bound to my adapter on the desktop machine that I'm testing with right
now.

Paul T.


ok it gives me 2 errors when i try to do this:

1. the network path was not found.

i hit 'ok' then i get:

2. network resource cannot be found or you do not have permission to
access the network



Just type \\<servername>\<sharename> into the Address bar.

Paul T.


i don't see it, what folder level should it be at?



On Thu, 8 Jun 2006 17:59:26 -0700, "Ilya Tumanov [MS]"

Can you access this share from file explorer on device?
 
G

Guest

Two main thinks i found when i was connecting to remote files from WCE:

0. Ensure u are properly connected - u can resolve host name to ip.

1. Server in path must be specified by name, NOT by ip adress.

2. U need to establish session to let host system autorize to access network
file. On WCE there is possible to set default user id, password, domain but
it doesn't exist on ppc. There are some api functions to do so...

Michal R.

yup, got file and printer sharing on.




XP has a lot more options for communication than Windows CE does. CE is
entirely dependent on TCP/IP, while I can connect from XP to XP with SPX,
NetBEUI, TCP, etc. Specifying the IP address in CE in the Address box does
not work. Only the server name would work. On the server, you have File
and Printer Sharing for Microsoft Networks turned on?

Paul T.

i've tried using the name AND the ip address.

with the protocol you are talking about, would that affect laptops as
well? because like i said, laptops i connect have no problem accessing
it.



If the network path can't be found, then nothing else you do will work.
Could be that the server is expecting clients to use some protocol that
you
don't have to access the shares (IPX/SPX, or something). You are
specifying
a server *name*, not an IP address, right? I've got half a dozen
protocols
bound to my adapter on the desktop machine that I'm testing with right
now.

Paul T.


ok it gives me 2 errors when i try to do this:

1. the network path was not found.

i hit 'ok' then i get:

2. network resource cannot be found or you do not have permission to
access the network



Just type \\<servername>\<sharename> into the Address bar.

Paul T.


i don't see it, what folder level should it be at?



On Thu, 8 Jun 2006 17:59:26 -0700, "Ilya Tumanov [MS]"

Can you access this share from file explorer on device?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top