EDN Admin
Well-known member
I have seen many similar posts, but they dont answer my question. They mostly seem to pertain to Visual C++ projects, and the language I am using is Visual C#. I got this error when I deployed files manually to a target machine for a console
application. Here are the details:
1. I built this app in Visual Studio 2010. The solution consists of one console application project and 3 class library projects.
2. The target framework is .NET Framework 3.5.
3. Based on what I found on the web, I tried installing the Visual C++ redistributable files (I tried BOTH methods described here: http://msdn.microsoft.com/en-us/library/ms235316%28VS.80%29.aspx ); I am fairly certain I performed all steps correctly.
I still get the error when I try to launch my app.
4. I would like to create a setup project and just check the boxes for the .Net framework 3.5 and the Visual C++ runtime modules, but that is not possible in my situation; because of security policies, the target machine has no internet connection,
and therefore I cannot simply run my installer and have it download and install the appropriate dependent files.
So my questions are:
a) why, as many have also wondered, is this error message so cryptic? Why can it not simply tell you what file(s) are missing, so the developer can troubleshoot the problem?
b) what is the actual problem, and how do I solve it?
c) why is there no easy way, within Visual Studio 2010, to do something like Dependency Walker, where the developer can simply know, with certainty, what files are required to run their application on a target computer? Why does one have to go through
this process of building the app, deploying the files, discovering theres something missing, and then having no idea what the missing component(s) might be?
d) Could the error have something to do with an incorrect installation of the .Net framework 3.5 on the target computer?
Any help appreciated. Thank you.
Dave
View the full article
application. Here are the details:
1. I built this app in Visual Studio 2010. The solution consists of one console application project and 3 class library projects.
2. The target framework is .NET Framework 3.5.
3. Based on what I found on the web, I tried installing the Visual C++ redistributable files (I tried BOTH methods described here: http://msdn.microsoft.com/en-us/library/ms235316%28VS.80%29.aspx ); I am fairly certain I performed all steps correctly.
I still get the error when I try to launch my app.
4. I would like to create a setup project and just check the boxes for the .Net framework 3.5 and the Visual C++ runtime modules, but that is not possible in my situation; because of security policies, the target machine has no internet connection,
and therefore I cannot simply run my installer and have it download and install the appropriate dependent files.
So my questions are:
a) why, as many have also wondered, is this error message so cryptic? Why can it not simply tell you what file(s) are missing, so the developer can troubleshoot the problem?
b) what is the actual problem, and how do I solve it?
c) why is there no easy way, within Visual Studio 2010, to do something like Dependency Walker, where the developer can simply know, with certainty, what files are required to run their application on a target computer? Why does one have to go through
this process of building the app, deploying the files, discovering theres something missing, and then having no idea what the missing component(s) might be?
d) Could the error have something to do with an incorrect installation of the .Net framework 3.5 on the target computer?
Any help appreciated. Thank you.
Dave
View the full article