Solved

Problem Saving File

Posted on 2013-11-22
4
210 Views
Last Modified: 2013-12-23
Hi,

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

I can map to the location using the ip address:

\\1.1.1.1\folder1\fiolder2\

However when I try to save an xml file to this location using this line:

doc.save(@”\\1.1.1.1\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.

Thanks.
0
Comment
Question by:andyw27
  • 2
4 Comments
 
LVL 44

Expert Comment

by:AndyAinscow
ID: 39669156
\\1.1.1.1\folder1\fiolder2\
and
\\1.1.1.1\folder1\folder2\

Is that just a typo in the question ?  (If not then does the folder you want to save to actually exist?)
0
 
LVL 2

Accepted Solution

by:
Pavel_Kudishin earned 500 total points
ID: 39672802
Looks like permissions issue. Check that windows account under which your code is executed has access permissions to the network share and network folder.
0
 

Author Comment

by:andyw27
ID: 39675565
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?
0
 
LVL 44

Expert Comment

by:AndyAinscow
ID: 39737439
>>Pretty sure it’s not permissions.

Ho hum.  I assumed you had checked with that statement.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question