I've got a minimal app I just created, using VS 2008 SP1 on Vista x64. Its a Console app, created with the wizard, no MFC or anything, I'm building it in 64bit.

When I run the debug exe, on my development box, by pressing F5 in Visual Studio 2008, I get this error:

```
TestApp.exe - Unable To Locate Component

This application has failed to start because MSVCR90.dll was not found. 
Re-installing the application may fix this problem. 

OK   

```

I don't get this error when I run the release exe, it works as expected.

This problem started when I added some include dependencies on iostream and fstream and started calling some winsock API calls.

Any suggestions?

UPDATE: I copied msvcr90.dll (not msvcrd90.dll) into the correct folder, and now I get a different error:

---

Microsoft Visual C++ Runtime Library
------------------------------------

Runtime Error!

Program: [snip]...

R6034

An application has made an attempt to load the C runtime library incorrectly.
Please contact the application's support team for more information.

---

OK
--

* Alex