Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > .NET General

Vista - Connect as different user to network share

Reply
 
Old 02-04-2009   #1 (permalink)
Dan


 
 

Connect as different user to network share

Is there a new ".NET" way of connecting to a network share using a different
user name, that is equivelent to the old WNetAddConnection2A way of
connecting to network shares?



My System SpecsSystem Spec
Old 02-04-2009   #2 (permalink)
Dan


 
 

Re: Connect as different user to network share

I found the following solution:

http://www.tek-tips.com/viewthread.cfm?qid=1235871

which uses .NET, rather than the Win32 code I mentioned. But I keep getting
the error: ""You were not connected because a duplicate name exists on the
network. Go to System in Control Panel to change the computer name and try
again."

I have confirmed that I do not already have a share mapped to this location.
Can someone help me out? Thanks.

"Dan" <someone@xxxxxx> wrote in message
news:u2UAuYuhJHA.448@xxxxxx
Quote:

> Is there a new ".NET" way of connecting to a network share using a
> different user name, that is equivelent to the old WNetAddConnection2A way
> of connecting to network shares?
>

My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
unable to connect to vista share over wireless network Network & Sharing
Vista cannot connect to network share but reach internet Vista networking & sharing
[ESC] Connect to network share causes crash Vista General
User is not prompted for Name & PW & can't connect to share. Vista General
Cannot connect to Network Share Vista networking & sharing


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46