Re: DLL register problem

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



I can now register the DLL by going to project options, set the Visible to
COM check box.

But the problem now is got a runtime error when creating an object in a
webpage using VBScript.
I tried to create a simple DLL also got the same runtime error.

"Michael Nemtsev" <nemtsev@xxxxxxx> wrote in message
news:3B6CADC5-FEAE-4378-84C6-6950B25CC65D@xxxxxxxxxxxxxxxx
Does all dependent componens could be loaded and ComVisibleAttribute are
set
correctly?

Did y tried to googling first? there are a lot of answers
http://groups.google.com/groups/search?q=dotnet+regasm+No+types+were+registered&qt_s=Search

"Alan" wrote:

I created a DLL and tried to register with regasm.exe but got error:

RegAsm: warning RA0000 : No types were registered.


I check that I got the 'no args constructor', so it should be OK.
But it still gave me this warning.

This is the cutdown version of my class:

using System;

using System.Collections.Generic;

using System.Text;

using System.Data.SqlClient;

using System.Data;

namespace DocumentClassLibrary

{

public class DocumentClassLib

{

private string _ConnectionString;

private SqlConnection _Conn;


public DocumentClassLib()

{

_ConnectionString =
"Provider=SQLOLEDB.1;server=myhost;Trusted_Connection=yes;database=mydb;User
ID=alan;Password=alan";

_Conn = new SqlConnection(_ConnectionString);

}
--
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do
not
cease to be insipid." (c) Friedrich Nietzsche



.



Relevant Pages

  • Re: DLL register problem
    ... again now I can create the com object in VBScript. ... I tried to create a simple DLL also got the same runtime error. ... public class DocumentClassLib ...
    (microsoft.public.dotnet.languages.csharp)
  • RE: Registering a custom DLL after deployment - advice?
    ... Register property to vsdraCOM - and leave the output as content ... I added the dll and the tlb and set the build action to ... publishing and invoke the .bat file. ... The custom dll is for the Access ADP. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Self registering a COM dll in a VS2003 Windows setup project...
    ... Most of the Register settings extract the settings at build time and put the ... at install time. ... code in that DLL is doing something that isn't being put into the MSI file. ... I have not been able to make a customized Redemption dll ...
    (microsoft.public.dotnet.framework.setup)
  • Re: IMailRuleClient wont work!!!
    ... Does your DLL properly export DllRegisterServer and DllGetClassObject? ... > So i have tested manually register the COM. ...
    (microsoft.public.pocketpc.developer)
  • Re: Fail to create IXSSO.Query object
    ... It errored out after I registered DLL in WOW64. ... "Dan" wrote: ... Can you switch IIS back to 64-bit mode and see if that then works? ... I also will try to register the dll again. ...
    (microsoft.public.inetserver.asp.general)