Visual Studio Developer Center > Visual Studio Forums > Visual Studio Debugger > Unable to Debug When Disconnected from Network
Ask a questionAsk a question
 

AnswerUnable to Debug When Disconnected from Network

  • Thursday, November 05, 2009 3:51 PMSeldenM Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    I got a new laptop which has Vista Home Premium 64 bit.   I copied some of my VS2008 projects (both asp.net and windows forms).  But when I try to run in debug mode, I get this error:  "Error while trying to run project: Unable to start debugging.  The requested name is valid, but no data of the requested type was found."

    Most of these projects will build and run in release mode.  If I try to attach the debugger to the process, I get the same error message as above.

    But after further testing, I have discovered the debugging problem only happens with the network cable disconnected.  I often take my laptop on trips and work on airplanes, in the car, etc.  (Not while I'm driving, of course!).  For this purpose, I've installed SQL Server 2008 and have copies of my databases on my laptop.

    But this is strange: I plug in my network cable.  Run the project, debugging works.  I disconnect the network cable, debugging STILL works.  Then I reboot (with the network cable unplugged), and now, when I try debugging, I get "The requested name is valid, but no data of the requested type was found."

    I read a post here http://www.mycsharpcorner.com/Post.aspx?postID=28 tha this error seems to be related to a network problem.  But why would that matter when I'm working completely locally?


    Selden

Answers

  • Sunday, November 08, 2009 8:06 PMSeldenM Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    I finally got this working, and thought I'd share my results in case anyone else experiences this same problem.

    Suspecting some sort of problem related to the network card, I tried various things such as resetting the tcp/ip stack, installing updated driver for the network card, and even upgrading the laptop's BIOS.  But none of this worked.

    So I finally did a clean install of Windows 7, reinstalled Visual Studio 2008, SP1, and then SQL Server 2008, and now it's working.

    So whatever was messed up, an clean install of Windows fixed it (although in this case, I also upgraded from Vista Home Premium 64 bit to Windows 7 Ultimate 64 bit at the same time.)

    Now I can debug in Visual Studio with or without the network cable plugged in.

    If anyone has any thoughts on what was wrong, I'd love to hear them.






    Selden

All Replies

  • Friday, November 06, 2009 8:33 AMFigo FeiMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi Selden

    Can you please clarify what the application exactly do, so that we can help to investigate further.

    I moved to VS debugger forum for further response.

    Thanks.

    Figo Fei

    MSDN Subscriber Support in Forum

    If you have any feedback on our support, please contact msdnmg@microsoft.com


    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
  • Friday, November 06, 2009 10:56 PMAndrew B Hall - MSFTModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Is the application you are attempting to debug a 32bit or 64bit process?
    Best Regards, Andrew Hall. Visual Studio Debugger.
  • Saturday, November 07, 2009 1:56 AMSeldenM Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    It's a 32 bit application (I've tried both asp.net apps and windows forms apps, some connect to a database, and some do not.)  Same results with all of them.

    Selden
  • Sunday, November 08, 2009 8:06 PMSeldenM Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    I finally got this working, and thought I'd share my results in case anyone else experiences this same problem.

    Suspecting some sort of problem related to the network card, I tried various things such as resetting the tcp/ip stack, installing updated driver for the network card, and even upgrading the laptop's BIOS.  But none of this worked.

    So I finally did a clean install of Windows 7, reinstalled Visual Studio 2008, SP1, and then SQL Server 2008, and now it's working.

    So whatever was messed up, an clean install of Windows fixed it (although in this case, I also upgraded from Vista Home Premium 64 bit to Windows 7 Ultimate 64 bit at the same time.)

    Now I can debug in Visual Studio with or without the network cable plugged in.

    If anyone has any thoughts on what was wrong, I'd love to hear them.






    Selden
  • Monday, November 09, 2009 11:31 AMFigo FeiMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi Selden

    Just for your information that I only knew that VS2010 beta1 and .NET Framework 4.0 beta1 have problems if we do a upgrading installation from Vista to Windows 7.

    Thanks.
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.