Problem Saving File


I’m having some trouble saving a file to a network share.

I can map to the location using the ip address:


However when I try to save an xml file to this location using this line:”\\\folder1\folder2\test.xml”);

I get a ‘The network path was not found.’ Error message.

Am I doing something wrong here?

Pretty sure it’s not permissions.

Who is Participating?
Pavel_KudishinConnect With a Mentor Commented:
Looks like permissions issue. Check that windows account under which your code is executed has access permissions to the network share and network folder.
AndyAinscowFreelance programmer / ConsultantCommented:

Is that just a typo in the question ?  (If not then does the folder you want to save to actually exist?)
andyw27Author Commented:
Hi - sorry that's just a typo, the locations are the same.

I'm pretty sure the permissions are ok, however would permission errors normally manifest themselves with a network path not found error message?  I thought it might be because I was using an IP address rather than a share name?
AndyAinscowFreelance programmer / ConsultantCommented:
>>Pretty sure it’s not permissions.

Ho hum.  I assumed you had checked with that statement.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.