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 > Vista Forums > Network & Sharing

Vista - Set Network Location popup upon connection.

Reply
 
Old 03-23-2009   #1 (permalink)


Vista Ultimate 32Bit
 
 

Set Network Location popup upon connection.

Hi All,

I am a developer developing an application using which I can connect to an local Mobile Network using Mobile Data cards on Vista Ultimate.

I make use of RAS to connect to establish the connection and when the I create an DUN and throught this I make an connection.

The Name(just a string) of the DUN that i create and through which I make an connection is "iPassMDSConnect" in my case.

The problem here is that every time I make an connection, Vista pops up an "Set Network Location" windows with the Network Name incremented each time. Please refer to the jpg attached.

for example, the jpg that I have attached has the name "iPassMDSConnect 57". If I were to disconnect this connection and make another connection, the Name would be "iPassMDSConnect 58" and so on.

I just wanted to know as to who is incrementing this number and how do I go about fixing it. I am ok with the "Set Network Location" dialog comming up.

This issue happens even if I delete the previously deleted DUN entry.

Attached Thumbnails
set-network-location.jpg  
My System SpecsSystem Spec
Old 03-23-2009   #2 (permalink)


Win7x64
 
 

Re: Set Network Location popup upon connection.

You appear to be creating a new connectoid every time in your code. I don't believe that's your intention. What you presumably want is to invoke an existing connectoid after it has been created (once).

If you provide more detail around your actual code, someone might be able to offer specific suggestions.
My System SpecsSystem Spec
Old 03-23-2009   #3 (permalink)


Vista Ultimate 32Bit
 
 

Re: Set Network Location popup upon connection.

You are absolutely right.

Actually what's happening is that I have code to delete a connectoid if any before creating an new connectoid each time I go for an connection.

In my case, the Delete Connectoid operation fails.

Then I go and create an connectoid with the name "iPassMDSConnect" all the time.

I am not able to understand as to how the number gets incremented?

One more thing, Even If I explicitely delete the dun entry and attempt an connection, the problem of incremental Network name still.

Does Creating an Connectoid with the same name multiple number of times without making use of an already existing connection result in such an behaviour?

Please let me kown.
My System SpecsSystem Spec
Old 03-23-2009   #4 (permalink)


Win7x64
 
 

Re: Set Network Location popup upon connection.

The number is getting incremented because you're creating a whole bunch of connectoids which happen to have the same name passed to the "create" method. That's not the problem.

I'd suggest you focus on the logic in the steps before - the app needs a connectoid, OK, but does it really need to nuke one it already finds, and why is that failing anyway? If you can sort that stuff out you won't need to worry about the incrementing instance numbers.

This is not really a dev forum, but if you paste some actual code someone might be able to help (pastebin.com 4tw).
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
popup blocker location Vista General
How to avoid Network Location selection popup for Dial-up connection in Vista Vista networking & sharing
Add a Network Location Vista General
Network Password Popup using Outlook Vista account administration
Get rid of annoying popup on local network 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