dialup connections being deleted when RAS hangs and a shutdown

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I've discovered this weird problem. When XP is in the process of dialing and
a shutdown or power cycle occurs, it does not save the dialup connection and
deletes it. So when the computer boots back up, their is no dialup to dial
and it gives me an "incorrect structure size" error because there is no
dialup connection.

Question: Where is the dialup connection saved? Is there a .txt file that is
saved some place? Is it a registry setting?

If I know this, I can create a backup so that when it is deleted. Thanks.

-Dan the Man-
 
Some information is kept in
C:\Documents and Settings\All Users\Application
Data\Microsoft\Network\Connections\Pbk\rasphone.pbk

Some is in the registry, but is scattered all over the place. I exported
the registry before making any connection changes, and then again after
making the changes. Then, I did a diff to create a registry update script.
I have a component to apply the registry update and copy rasphone.pbk as
part of FBA, then I still have to add a new connection using the wizard even
though the connection is all there. But, its just three or four clicks in
the wizard accepting defaults and such, instead of tedious and error-prone
menus. Now my connection is OK.

However, you shouldn't loose connections like you are describing. My
process saves me the step of configuring the connection manually every time
I create a new image. So, I have this component that does most of it now.

Maybe you can see if the rasphone.pbk is getting corrupted. Or, use the
technique of exporting the registry in good and bad states and doing a diff
to find what has changed.
 
I've dealt with RAS books on various Windows OSes - it is always a pain to 'preserve' dial-up data properly.
Mostly because of TAPI complexity and MS not having a good documentation about some internal TAPI structures.

On some implementation (to make it safe) I ended up writing my own apps to set up RAS book entries through RAS API as needed. Then
if any errors occur I always have a control from my apps to fix it. E.g. if I have it as RunOnce/Run item it automatically checks if
a proper RAS entries was set up - if not, sets it up without a user input.
 
Back
Top