Cannot save file to network: UNC path should have the form \\server\share.

  • Thread starter Thread starter cnathaide
  • Start date Start date
C

cnathaide

I have developed a .NET application using C#. It has been installed at
a client site on a Citrix server, and a new version was just released.
Now the users inform me that when they try to save files to the
network, they get the following error message:

The UNC path should be of the form \\server\share.

The pathname, that they are attempting to save to, has the following
form:

\\NA.XYZ.com\User-Group\Directory\Subdirectory\filename.txt

I have no idea what would cause this error. I am guessing that it may
have something to do with permissions. I appreciate any help in this
matter.

Thanks in advance.

Chris
 
is WINS enabled on that server? Sometimes WINS is turned off on terminal
server machines. If it is turned off, then you may need to add an entry to
the LMHOSTS file for your destination server 'NA.XYZ.com'

if you log on to that server and attempt to access the directory through
Windows explorer, can you reach it?

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
 
Nick,

Thanks for responding to my post. I passed this on to the systems
administrator for the Citrix server. The response that I got was the
following:

"You need to ensure that the application can write to a DFS share
point."

To be honest, I do not know what DFS share point is, and why it should
matter to the application. So far I have been using the standard
FileStream functions in the System.IO Library. Everything has been
working fine in my limited test environment.

I appreciate any help in this matter.

Thanks

Chris
 
clearly, your organization is using Distributed File System capabilities.

You didn't really answer my question. If your app is installed on a
machine, can you log in to that machine, using the account where your app
will run, and access the share location?

Note that your application does NOT have to change to access a DFS share.
From the standpoint of the app, there should be no difference.

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
 
Back
Top