am using [DllImport("NetApi32.dll", SetLastError = true, CharSet = CharSet.Unicode)] to access, save files to a network
location. The problem is File creation / save work fails for first few attempts and laters starts working fine. After a time interval say 5-6 hours again it fails first few time. Kindly help
shoab shah
Member
16 Points
43 Posts
[DllImport("NetApi32.dll"... throws exception for first few times
Feb 27, 2013 06:01 AM|LINK
Hi All,
am using [DllImport("NetApi32.dll", SetLastError = true, CharSet = CharSet.Unicode)] to access, save files to a network location. The problem is File creation / save work fails for first few attempts and laters starts working fine. After a time interval say 5-6 hours again it fails first few time. Kindly help
Thanks in advance
smirnov
All-Star
23408 Points
4020 Posts
Re: [DllImport("NetApi32.dll"... throws exception for first few times
Mar 04, 2013 02:53 PM|LINK
Please check
http://stackoverflow.com/questions/1102538/c-sharp-netuseadd-from-netapi32-dll-on-windows-server-2008-and-iis7
Hope this helps