Hi,
I'm new to C# and I'm developeing a utility which creates a text file and populates it with registry key values.
It works fine on a local path, but with absolute path, it throws an error that "Access to the path .... is deined". Code is given below.
StreamWriter SW1;
FileIOPermissio n myPerm = new FileIOPermissio n(FileIOPermiss ionAccess.Write , "\\\\192.168.48 .125\\Shared");
myPerm.Assert() ;
//new FileIOPermissio n(FileIOPermiss ionAccess.Write , finfo.Directory .FullName).Dema nd();
SW1 = File.CreateText ("\\\\192.168.4 8.125\\Shared") ;
I understand that there is something more that needs to be done for solving this,
if anyout out there knows the solution, please send me the steps and I can proceed. Or a clue also would be sufficient.
Thanks,
I'm new to C# and I'm developeing a utility which creates a text file and populates it with registry key values.
It works fine on a local path, but with absolute path, it throws an error that "Access to the path .... is deined". Code is given below.
StreamWriter SW1;
FileIOPermissio n myPerm = new FileIOPermissio n(FileIOPermiss ionAccess.Write , "\\\\192.168.48 .125\\Shared");
myPerm.Assert() ;
//new FileIOPermissio n(FileIOPermiss ionAccess.Write , finfo.Directory .FullName).Dema nd();
SW1 = File.CreateText ("\\\\192.168.4 8.125\\Shared") ;
I understand that there is something more that needs to be done for solving this,
if anyout out there knows the solution, please send me the steps and I can proceed. Or a clue also would be sufficient.
Thanks,
Comment