Ask a questionAsk a question
 

QuestionApplication starting failed.

  • Friday, October 30, 2009 8:45 AMEvtukhovAA Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    I get this Error when trying to start my application deployed with ClickOnce:

    EventType : clr20r3     P1 : <...> P2 : 0.1.1.1    
    P3 : 4aea9467     P4 : mscorlib     P5 : 2.0.0.0     P6 : 4889dc80     P7 : 15c
    P8 : 51     P9 : system.argumentoutofrange
        

    If i copy and start exe on the same mashine, application works fine.
    Starting application from \Local Settings\Apps\... also no problem.
    (Mashine is XP SP3, project made on visual studio 2008, net 3.5)

All Replies

  • Monday, November 02, 2009 8:24 AMKira QianMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hello EvtukhovAA,

    Do you mean the application cannot be start via shortcut? Which way did you choose to deploy your application? Can other computer run the application properly?

    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 3:32 PMEvtukhovAA Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    Hello Kira Qian, thank you for your reply.

    Yes application cannot be started via shortcut, there is the same error when setup.exe is trying to autostart the application after installing.

    It does not matter if the checkbox "Update" is checked on the publish tab.

    It was failing everywhere Except the machine where project was made(with visual studio)

    I reinstalled Windows and all components, now error occurs on my working maсhine too.

    Sorry for my English.

    Please, I need Help.

  • Friday, November 06, 2009 1:45 AMKira QianMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hello EvtukhovAA,

    I think may be your develop computer has installed some components which users’ computer doesn’t and the application use these components, that result in the start error. Please look into your application to find which component is not the .NET built-in component. You need to let your users’ computer install that component before running your 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!
  • Friday, November 06, 2009 9:56 AMEvtukhovAA Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    Hello Kira Qian.

    You seem to be right, but there is strange things.

    My Application uses only System Namespace and it`s sub namespaces.

    Also it is using my own dll from another project but it is marked as incude, required in Application Files on Publish tab.

    Somewhere in my code i am using 

    [DllImport("winscard.dll", SetLastError = true, CharSet = CharSet.Auto)]
     this dll is also present on computer, but application via clickonce still not working.

    But the really strange thing is that Application runs fine without clickonce, as i wrote earlier.

  • Thursday, November 12, 2009 4:18 AMRobinDotNetMVP, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    How did you "handle" the dll from the other project? Try this:

    Copy the dll into your project into the root of the main project's folder.
    Set the properties on the dll to this: Build Action = "None" and "copy to output directory" = "do not copy".
    Go to the references where you reference that dll.
    Delete the reference.
    Re-add the reference, and browse to the one that is included in your project and select it.
    On the properties of the reference, set "copy local" to "true".

    This will ensure that you are referencing that exact dll, and it will be included in your deployment where it can be found and used.

    RobinDotNet


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