Solved

Problem Saving File

Posted on 2013-11-22
4
205 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

803 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