Application starting failed.
- 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
- 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! 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.
- 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! 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.
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


