开发者

Error during registration of the .tlb file in a C# DLL for COM INTEROP

I have a DLL which I am trying to design with COM interop in order to use inside a VB6 program. When I try to build the solution, the following error shows up:

The assembly DLLFile开发者_开发问答Path could not be converted to a type library. Type library exporter encountered an error while processing 'DLLName.DLLName, DLLName'. Error: Element not found.

Then, I tried to manually register the .tlb using RegAsm, however I found a very similar error (error: RA0000).

I don't know the reason for this mistakes? Could it be because I am using the DataTable type, and it could not be compatible?


I have already found the solution for the problem! I was using the same GUID in the solution assembly and in the class declaration. By generating a new GUID, the problem was solved!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜