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

DESPERATE HELP: LNK1215: metadata operation failed (8013110E)
peterko
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
Duppi
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
j.cran
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
RomanG
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
sg2000
Brian
StephenMas
-hg
Vassilux
I will try your suggestions too. Thanks for the tip!
Dennis
windsamurai
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