DESPERATE HELP: LNK1215: metadata operation failed (8013110E)

Hi guys,
I keep getting this error: LNK1215: metadata operation failed (8013110E)
: Database file is corrupt and may not be usable.

Previously, when I have this error, I will have to mode some codes from the .h file to the .cpp file. However, I have nothing else I can move in my .h file anymore. I can't seem to find a definitive way to solve this problem. The help said I should reinstall VS.Net 2003. I did and it did not solve the problem.
Please help me on this. I am on a tight project and I am totally stuck on this issue.
ps. I am using Windows forms in MC++ in VS.Net2003
Thanks a million!
Dennis
[651 byte] By [Woofwoof] at [2007-12-17]
# 1
I don't know the answer to your problem, but I can try to assist. You're going to have to isolate this down.

First, try the obvious: the error says the database file is correct. Close your solution and delete all intermediate files, including the project's debug and release directories.

If that doesn't work, you might have to subset your project with #if 0 to isolate the lines of code that leads to this problem. If this ends up isolating it, then you should let Microsoft know of this with a bug report that reproduces the problem.

Does this project have external references? What happens if you #if 0 out its dependencies and remove the references?

Brian

Brian_Kramer at 2007-9-8 > top of Msdn Tech,Visual C++,Visual C++ Language...
# 2
In addition to what Brian said, you might want to see what peverify says for your contributing object files. Specifically, whether there are any MD table schema errors.

-hg

HolgerGrund at 2007-9-8 > top of Msdn Tech,Visual C++,Visual C++ Language...
# 3
Hi Brian,
Thanks for your reply. I took your advice and deleted both the debug and the releaes directory. So far this doesn't seem to solve my problem. I will now use #if to isolate the codes. It has some external references. In the Solution's References section, it uses system.XML, System.Windows.Forms, System.Drawing, System.Data, System, stdole, mscorlib, Microsoft.Office.Interop.Excel, VSFlex8L, CtlListView(this is a DLL from another project), and AxVSFlex8L (this one is a COM control).
If you have any more suggestions, please let me know. I will also post my result here too.
Dennis
Woofwoof at 2007-9-8 > top of Msdn Tech,Visual C++,Visual C++ Language...
# 4
Hi hg,
I will try your suggestions too. Thanks for the tip!
Dennis
Woofwoof at 2007-9-8 > top of Msdn Tech,Visual C++,Visual C++ Language...
# 5
Okay, start from the bottom up. Prune your dependencies on VSFlex8L, AxAVSFlex8L, CtlListView and then Excel.

If you happen to narrow it down to one of these references, then you can also try creating a new project with that reference to see if that reproduces the problem.

Brian

Brian_Kramer at 2007-9-8 > top of Msdn Tech,Visual C++,Visual C++ Language...
# 6
Hi Brian,
My problem is fixed. I removed the excel interop and reference it. It magically started to work again.
I can get back to my work now.
Thanks very much!
Dennis
Woofwoof at 2007-9-8 > top of Msdn Tech,Visual C++,Visual C++ Language...
# 7
Great! This doesn't look like an easily reproable bug unfortunately.

Brian

Brian_Kramer at 2007-9-8 > top of Msdn Tech,Visual C++,Visual C++ Language...
# 8
Hi Brian,
No, I tried to reproduce again but I was unsuccessful. This is not the first time I have this error. I have a bad feeling that it will show it's ugly face again. I hope I can find a pattern. Hopefully, by then I will able to reproduce it and submit it to MS as a bug or something. Before I posted this, I checked the web for a similar error but I wasn't able to find something conclusvie to help me.
I really appreciate your help!
Dennis
Woofwoof at 2007-9-8 > top of Msdn Tech,Visual C++,Visual C++ Language...