Windows > Windows Forms Forums > ClickOnce and Setup & Deployment Projects > ClickOnce crashes when system is offline. Works perfect when online!
Ask a questionAsk a question
 

QuestionClickOnce crashes when system is offline. Works perfect when online!

  • Friday, October 30, 2009 1:47 PMScubaDrew Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    When my system is online, my click once applicaton installs and runs perfectly. 

    However, if i drop my netowork connection and try and run from the start menu I get:

    EventType clr20r3, P1 app1.exe, P2 1.0.0.0, P3 4aeaed25, P4 app1, P5 1.0.0.0, P6 4aeaed25, P7 11, P8 c6, P9 system.invalidoperationexception, P10 NIL.

    Thanks,

    Drew
    • Moved byJeff ShanMSFTMonday, November 02, 2009 3:12 AMclickonce question (From:Visual Basic IDE)
    •  

All Replies

  • Thursday, November 05, 2009 8:35 AMKira QianMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hello Drew,

    Does your application require network connection while starting? I think your application is not online only since you have shortcut to launch the application.

    Sincerely,
    Kira Qian
    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!
  • Thursday, November 05, 2009 2:19 PMScubaDrew Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hello Kira,

    I've selected the "Allow this application to run offline (install)" during the deployment wizard. 

    thanks,

    Drew
  • Friday, November 06, 2009 3:12 AMKira QianMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hello ScubaDrew,

    What I mean is does your application need network resource when form is loading?

    Sincerely,
    Kira Qian
    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!
  • Thursday, November 12, 2009 4:26 AMRobinDotNetMVP, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    If you go to the ClickOnce cache and find the exe file for your application and run it, does it give you the same errors as above, or does it work?

    RobinDotNet


    Click here to visit my ClickOnce blog!
    Microsoft MVP, Client App Dev