Hi,
This week, I acquired a new computer. Before I erase former computer, I installed and configured my development environment. No problems except when I tried to install and configure Visual Studio 2005.
Everything went OK except the fact that after successfully compiling a sample C++ application, I cannot run it... I even tried to run a few C++ applications (.exe) I made in the past (out of VC++ 2005 environment on former computer), directly from Windows explorer, and I cannot run them either... Seems something is missing...
I compared programs installed between my former machine and my new machine and the only difference I could see is the following program:
- Microsoft Visual C++ 2005 Redistributable
Is there anything I forgot to do during install
Thanks for your help,
Stephane

Reinstalling VC++ 2005 - New machine
TechMate
Hi,
Thanks for helping me. I really appreciate. I checked on my new machine for any files under "c:\winnt\WinSxS" and effectively could find "x86_Microsoft.VC80" files but could notice that compared to my old machine the following item is missing:
"x86_Microsoft.VC80.OpenMP_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_0ee63867" is missing...
Now the error I get when trying to run my C++ application (or anyone else freshly compiled or not) is the following:
"An unhandled exception ("System.IO.FileLoadException") occurred in DrawMeuble.exe [824]"
One detail. I mentionned in my first post that in my attemps I even tried to run on my new machine an application which was already compiled and had been tested successfully on my old machine. After running the corresponding "release" .exe file, and following the error coming out, I really thought that my problem was not with Visual Studio 2005 but rather with .NET Framework 2.0 or else. Your opinion
I tried to review my install of Visual Studio 2005 but there is no way I can expand the detail of Microsoft Visual C++, or anything else, as this is only a global option. I install it or I do not install it. Is there another way that I can check on my C: disk that the Visual C++ Dynamic CRT Libraries are there
Thanks again,
Stephane
Paul Monaghan
Chintan bhatt
OK, with more information available I can help a little more.
First of all, with the WinSxS directory and all subdirectories there then there is no problems with the runtime. Although with what you said it makes me think you are actually using VC++ 2005 Express Edition. If that is the case then there would be no problems with you messing up the install. The OpenMP library is part of the professional or above install, and you got it there by installing the VC Runtime on your old system. Don't worry, its nothing important.
Now, the unhandled exception which it came out with is definitely a .net framework runtime exception. Does this occur with all .net programs you run or just the certain ones you compiled. Also, do native programs which you compile work normally. The problem could be that a certain file that is common is not found on your new system.
I suggest though, that you run one of these projects in the VC++ IDE itself and see where the error occurs and try to figure out what file it is failing to load. Use f10 to step through the program too if possible.
Gwindor
Is that still an issue
Thanks, Ayman Shoukry VC++ Teamanisk
The .net compact framework is different from the .net framework, so you don't have to uninstall it.
When you uninstall the .net framework 2.0, windows update should detect it and make it available. Although I don't think it will show up on automatic updates. Oh, and uninstall the J# redistributable first, since that is dependent on .net 2.0.
When you go to install it. Make sure you install the .net framework 2.0, then the J# redistributable. This will then put it back to how Visual Studio sets it up.
Danny Tuppeny
When you say "I cannot run it", what error does it come up with. Because unless you did something silly during setup, a computer with VS2005 on it should be able to run everything you build. Even the Visual C++ Redist wouldn't make a difference because it just installs the libraries that VS installs to a machine that doesn't have it installed on.
Well, check for a start that a directory called WinSxS exists under your Windows directory. So if your Windows directory is c:\Windows, make sure that c:\Windows\WinSxS exists. In there, make sure that directories that are named like x86_Microsoft.VC80 exist. If they don't then you didn't install the C++ runtime along with Visual Studio.
If this is the case, go back to Visual Studio setup through Add/Remove Programs->Microsoft Visual Studio 8 (Whatever Edition)->Change/Remove
Click Next->Add or Remove Features->Expand Microsoft Visual Studio (Whatever Edition)->Language Tools->Visual C++->Visual C++ Runtime Libraries and make sure at least Visual C++ Dynamic CRT Libraries is selected. Static is useful too. Then press update and it will install these.
ManishSingh
Hi again,
BTW, I'm using Visual Studio 2005 Standard Edition. To answer your question about if the error occurs with all .net programs, I would say yes as I don't have much applications running so far.
Now, I loaded a simple project into Visual C++ 2005. I built it again (no errors) and tried to run it into debug mode. I got the same error as stated in last post and immediatly after, I got the following message window:
"No Symbols are loaded for any call stack frame. The source code cannot be displayed"
Any hint
Thanks
Stephane
NEVILLE GEORGE
Hi again,
This morning, I got a look at Visual Studio 2005 install disk before uninstall all stuff and must come up with this question. Taking into account that you recommend to uninstall J# redistributable before .NET Framework 2.0, how can I reinstall it after considering the fact that VS2005 install process doesn't allow to reinstall it individually The only option I have from install disk is the following:
- Add/Remove Features
- Visual Web Developer (currently selected)
- Visual Basic (currently selected)
- Visual C++ (currently selected)
- Visual C# (currently selected)
- Visual J#
- Smart Device Programmability (currently selected)
Any hint on how I could reinstall J# redistributable alone
Thanks again for your help,
Stephane
trun_gup
Hi,
if the issue is about not being able to run VC++ application from a mapped network drive, yes I still have problems. It doesn't work at all. Should I start a new thread
Stephane
Crasch
Bravo pour ton infini patience Stephane. L'utilisation de .NET donne un passage direct vers le paradis. Fait bien en rire. Bonne chance confrere.
RingOfFire
Hi again,
I uninstalled/reinstalled everything:
- Microsoft .NET Framework 2.0 (KB829019) (Microsoft update detected it)
- Security update for Microsoft .NET version 2.0 (Microsoft update detected it)
- .NET Framework Version 2.0 Language Pack (French)
- Microsoft Visual J# Version 2.0 Redistributable Package (from link you supplied)
I then rebooted my machine and tried to run VC++ sample application. Same message as before. I then tried the following thinking that the fact that I run application taken from a Network drive might be an issue. I copied my VC++ sample application from old computer drive (accessed as mapped network drive) to local C: drive of new computer. Now the VC++ app is running like a charm...
Q: can you tell me why I can't execute VC++ application from mapped network drive
Thanks,
Stephane
vpborza
The J# redistributable is available for download from Microsoft along with the .net framework.
.net framework redistributable
http://www.microsoft.com/downloads/details.aspx familyid=0856eacb-4362-4b0d-8edd-aab15c5e04f5&displaylang=en
J# redistributable
http://www.microsoft.com/downloads/details.aspx familyid=F72C74B3-ED0E-4AF8-AE63-2F0E42501BE1&displaylang=en
waheyluggage
Hi again,
I will definitely follow your suggestion but only tomorrow as right now it is 2h04 in the morning. I'm affraid I could make unwanted errors... ;-)
I presume that if I delete it, Microsoft Update should download it again and install it Am I wrong Or would you rather download it from Microsoft MSDN What would be the best option
Also I noticed that I have Microsoft .NET Compact Framework 2.0 and "Security Update for Microsoft .NET Framework 2.0 (KB917283) installed also. Should I uninstall them and then reinstall them too
I will come back to same post with results. Hope you will still be there if it is not successfull!
Thanks again,
Stephane
benschi
Please do. But also, search the forums since I recall somebody raised the same issue before.
Thanks, Ayman Shoukry VC++ Team