none
The assembly could not be converted to type library

    Question


  • Hi every one,

    I developed a simple activex control by including progid, classinterface, guid, comvisible attributes and I need to call the mainform from Java script for which I initialized in a constructor
    public ActiveXObject()
            {
                Application.EnableVisualStyles();
                Application.SetCompatibleTextRenderingDefault(false);
            }

    and called MainForm in an Open() Method,

    public void Open()
            {
               try
                {

                    mForm = new MainForm();
                    Application.Run(new MainForm());
                   
                }
                catch (Exception e)
                {
                    throw e;
                }
            }

     I added ini, cab files and by executing the class library am getting the
    "Error    1    The assembly "E:\ActiveXProjects\csactivexex\csactivexex\bin\Debug\csactivexex.dll" could not be converted to a type library. Type library exporter encountered an error while processing 'csactivexsample.ActiveXObject, csactivexex'. Error: Element not found.    csactivexex" can anyone tell me how to fix this error.

    Thank you all in advance,
    Cheers,
    Sharat.



    • Changed type Harry Zhu Thursday, February 12, 2009 1:50 AM
    • Changed type Harry Zhu Thursday, February 12, 2009 1:51 AM
    • Changed type Harry Zhu Thursday, February 12, 2009 2:08 AM
    Friday, February 06, 2009 10:43 AM

All replies

  •  What version of .NET are you using? Try to convert your dll by tlbImp.exe. See what is going to happen.
    AlexB
    Friday, February 06, 2009 3:07 PM