hello
I have developed an application using C# and I want it to run from start > run when I write the name like when I write 'calc' to run the calculator
I set the path variable to add the application folder
when I write the name it gives me 'Application Name stopped working' error
I thought that there is something wrong with the app but when I navigated through start>>run to the file as 'C:\program files\application\app.exe' it worked perfectly
but when I write just 'app.exe' it gives me the previous error
I tracked the error report
and found System.dllnotfoundexception
and the dll in the report is in the application folder and it works because the program runs very normal when I run it from a shortcut
but from commandline it doesn't recognize this dll
Is your app a web service? If so, you will need to add to your code for it to be able find the bin folder of your app in the Win7 default web server folder . If it is, I will help you with that.
Please post the exact path of the executable and the exact command you type into the run command.
Also, please post the exact names you gave in the environment variables: Variable name & Variable value.