Anu Viswan

Hi

i am getting following warning when i run my application. the project is to be registered as com interop.

Warning 2 "D:\My Codes\C# Codes\DataGen\Controlling Shell\DBConnectionWizard\bin\Debug\DBConnectionWizard.dll" does not contain any types that can be registered for COM Interop. DBConnectionWizard

can any one help

i would also like to know if there is any restrictions in com in .net like multi threading or certain complex controls




Re: Visual C# General COM registration

TilakGopi

Hi,

Have u not exposed the interface or class as public

(Be sure that every interface and class have their own guids.)

Thanx,

Ch.T.Gopi Kumar.






Re: Visual C# General COM registration

Anu Viswan

Hi

Yes, i did make sure all classes are public and all are given seperate guid and progid.

it doesnt make any difference and error contnued.

when i tried to register the tlb with Regasm i am getting following error.

RegAsm : error RA0000 : Failed to load 'D:\My Codes\C# Codes\DataGen\Controlling
Shell\DBConnectionWizard\bin\Debug\DBConnectionWizard.tlb' because it is not a
valid .NET assembly






Re: Visual C# General COM registration

TilakGopi

Hey,

R u trying to register the .tlb or .dll

Register the .dll using regasm and export the .tlb .

Thanx,

Ch.T.Gopi Kumar.






Re: Visual C# General COM registration

Anu Viswan

hi

i registered using dll..and it showed registration successfully.

when i checked in registry...only 1 out of 3 controls in that project was registered. rest of them was not registered.

i had given prog id and guid for all the classes.

i would also like to know what u mean by export tlb






Re: Visual C# General COM registration

TilakGopi

Hi,

u can do registration and aswellas exporting the .tlb file for the assembly with regasm.That's what i mean to say.

Do one thing,comment the registered control code,and build and see if the second one has got registered or not.If not ,compare the code between control1 and control2.U'll get to know the error.

Thanx,

Ch.T.Gopi Kumar.






Re: Visual C# General COM registration

Anu Viswan

hi

thanks for responses, but the problem still persists..

i checked out the code, but there is rarely any change.

is there any restriction in com components in .net like regarding certain controls , multi threading






Re: Visual C# General COM registration

TilakGopi

Hi,

could u please post the code or forward project to 'gopi_ch@googley.com',so that i can try bit more.

Thanx,

Ch.T.Gopi Kumar.






Re: Visual C# General COM registration

Anu Viswan

hi

i have forwarded the code to your id. thanks a ton in advance






Re: Visual C# General COM registration

TilakGopi

Yep,

I got it man.I'll try my leve best to fix the issue.

Happy week end..

Ch.T.Gopi Kumar.






Re: Visual C# General COM registration

TilakGopi

Hi viswan,

What are the controls that are not getting registered on your machine

Can you give brief description about the solution files what is what,what for what and all..

Thanks & Best Regards,

Ch.T.Gopi Kumar.






Re: Visual C# General COM registration

Anu Viswan

hi

onlu dbserver control from the dbconnection wizard project is getting registerd. other two, dbtableselectioncontrol and holder control , dbwizard is not getting registered






Re: Visual C# General COM registration

JocularJoe

> only 1 out of 3 controls in that project was registered. rest of them was not registered

Do your controls all have parameterless constructors





Re: Visual C# General COM registration

Anu Viswan

hi

thanks gopi...i got the issue...i had exposed the parameter constructor and hid the default one....

but thanksa ton for ur time and help....






Re: Visual C# General COM registration

Anu Viswan

hi, yup that was the issue. i just posted it seconds before u replied. but thanks a ton.