two different copies of MSCOREE.DLL-Hell have been loaded

Posted on 2004-04-06
Last Modified: 2012-05-04

I've got a serious problem that I cannot get around. After installing Dundas Chart Windows Forms for .NET on my XP Pro system, I began to get a pop-up error message whenever I tried to work on any forms in my project (IDE is Visual Studio .NET 2003). I've since uninstalled the third party software, reinstalled it, reinstalled Visual Studio, and all to no effect. The complete error pop-up reads as follows:

--- begin ---
devenv.exe - MSCOREE.DLL load error (Error code = %X).
Two different copies of MSCOREE.DLL have been loaded.
First copy:
Second copy:
This is typically caused by having a registered MSCOREE.DLL that is different from the one that is statically linked to the application.
--- end ---

All the above appears on the pop-up. Then, after pressing OK on the pop-up, I get a message in the form designer space that says:

--- begin ---
An error occurred while loadign the document. Fix the error, and then try loading the document again. The error message follows:
Cannot create a file when that file already exists.
--- end ---

I'm about to go nuts fixing this, because I haven't a clue where to start. Does anyone out there have any knowledge of this problem? Is something corrupted in my XP system files? or is it something messed up in VS.NET 2003?

Thanks for your help,


Question by:javanic
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2

Author Comment

ID: 10777959
BTW, the Dundas folks disclaim any part of this error. In their defense, their software install does not include an MSCOREE.DLL. It is possible that the problem comes from an earlier install some software, though I can't recall what I installed last before this problem started.

In any case, I've got this corrupted system in Visual Studio .NET and don't know how to fix it short of a HDD reformat and reinstall of everything.

LVL 12

Expert Comment

ID: 10778319
Take a wander through the registry and see if you can find the references, and delete the *BAD* one.  

Yes, playing in the Registry is dangerous, but if you are going to nuke and resurrect the box anyway it's worth a shot before you take that step.

Author Comment

ID: 10784458
Your suggestion is well founded. However, I nuked the drive last night and started over. We'll see if the error is there after I put everything back on the drive.

I had looked through the registry before, however, and did see references to mscoree.dll versions 1.0~ and 1.1~. Probably versions related to .NET 1.0 and 1.1? Both versions appeared so many times that I thought that deleting one would most certainly impair something.

I did find that the Visual Studio .NET 2003 invokes mscoree.dll whenever a form is going to be displayed in the designer. There was a reference to this in some microsoft documentation that I stumbled across during my days of hair pulling and teeth gritting.
LVL 12

Expert Comment

ID: 10784533
Hope you get it working in short order.

Accepted Solution

Computer101 earned 0 total points
ID: 11122215
PAQed, with points refunded (250)

E-E Admin

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK ( for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question