Reputation: 1
I am having a VC++ exe which calls network map drive with alphabet name "M" (M: \server-ip\sharename). Based on the business, it copies some files to the network shared folder and it is working fine.
The problem is, when I call VC++ exe from .NET application using Process.Start(startInfo) the network map drive is throwing exception saying netwrok not found.
In some user PCs it is working fine even called from .net app. We are using .NET framework 3.5 with sp1 and OS is XP. Please help me in resolving this. I tried even CASPOL.exe to give the full trust to network share.
Upvotes: 0
Views: 789
Reputation: 29009
Instead of starting your VC++ EXE you could start a command shell (cmd.exe) and look for yourself if the network drive exists.
If not it I'd look which user context your program and the cmd.exe are running under and make sure it is the same user and this user has the network drive.
Upvotes: 0