Tuesday, 28 June 2011

Design time error: In this mode, command line arguments will not be passed


problem

c# idiot fucken error!!! (microsoft SUCKS)
---------------------------
The current project settings specify that the project will be debugged with specific security permissions.  In this mode, command line arguments will not be passed to the executable.
Do you want to continue debugging anyway?
[Yes]   [No]  
---------------------------
difficulty level

3/10 :|
compatibility

vs2008 .net 2.5
solution

- open the properties of the application
- go to at security tab
- click "Enable ClickOnce security settings"
- select "This is a partial trust" (at the end you may turn it back)
- Under all these, there is a button "Advanced" where it is not displayed sometimes if your monitor has lo resolution, scroll down to see it, press it and there you may find the settings if you with to use this "permission set" on debug execution. If you selected to use this settings you cannot use the specified command line arguments at "debug" tab of the parameters (one more reason why Microsoft sucks). Your application will use the command line arguments finally in "release" version. Who fucks Microsoft anyway, add some code to feed your application with the command line argument from inside your code. This is not so professional but with Microsoft we can't be professionals anyway!
- SAVE the parameters window and then ReBuild!

No comments:

Post a Comment