M
Mr Cheese
Guest
I have a program that uses a stored setting to access a UNC path on another server.
If a username and password is required to access this folder, the C# program does not see it as existing.
I am not seeking to store credentials, but instead to be able to identify this situation and to be able to have Windows display the "Windows Security" dialog to prompt to enter in the network credentials.
Code snip:
string Testpath = @"\\SERVER\Folder";
if(!Directory.Exists(Testpath))
{
// Want to check if permission issue, and prompt to enter credentials (from Windows dialog, not program)
}
Thanks for any assistance.
Continue reading...
If a username and password is required to access this folder, the C# program does not see it as existing.
I am not seeking to store credentials, but instead to be able to identify this situation and to be able to have Windows display the "Windows Security" dialog to prompt to enter in the network credentials.
Code snip:
string Testpath = @"\\SERVER\Folder";
if(!Directory.Exists(Testpath))
{
// Want to check if permission issue, and prompt to enter credentials (from Windows dialog, not program)
}
Thanks for any assistance.
Continue reading...