Solved

Problem Saving File

Posted on 2013-11-22
4
225 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Certified OpenStack Administrator Course

We just refreshed our COA course based on the Newton exam.  With 14 labs, this course goes over the different OpenStack services that are part of the certification: Dashboard, Identity Service, Image Service, Networking, Compute, Object Storage, Block Storage, and Orchestration.

Question has a verified solution.

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

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…

626 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