locked
registering .net assembly RRS feed

  • Question

  • I have a c#class library (VS2005) that I need to call from asp and have tried unsuccessfully to register for the last 2 days. I dont know what I am doing wrong. This is what I am doing:

    Created c# assembley with comvisible=true; signed the assembly

    compiled the assembly

    put the assembly in GAC

    used regasm /codebase myassembly.dll (also tried regasm /codebase /tlb myassembly.dll, regasm /tlb myassembly.dll)

    Get msg saying 'Types registered successfully'

    But I dont see it in hkey_classes_root nor can I create object from ASP

    Please Help !!

    Tuesday, March 6, 2007 12:51 AM

Answers

  • You shouldn't use the /codebase option if the assembly is in the GAC.

    Does the typelib generated by Regasm contain the types you expect?

     

    Tuesday, March 6, 2007 9:25 AM

All replies

  • You shouldn't use the /codebase option if the assembly is in the GAC.

    Does the typelib generated by Regasm contain the types you expect?

     

    Tuesday, March 6, 2007 9:25 AM
  • Hi Mattias, out of about 30, I can see 10. I think I might know why, the ones that are missing have private constructor. I changed it to public in one of them and it is showing now. Thanks for your help.

     

    Tuesday, March 6, 2007 5:36 PM