Solved

Problem Saving File

Posted on 2013-11-22
4
200 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 Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

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…
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

759 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now