Re: DLL register problem
- From: "Alan T" <alanpltseNOSPAM@xxxxxxxxxxxx>
- Date: Wed, 28 Jun 2006 22:16:04 +1000
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
.
- Follow-Ups:
- Re: DLL register problem
- From: Michael Nemtsev
- Re: DLL register problem
- References:
- DLL register problem
- From: Alan
- DLL register problem
- Prev by Date: C# IDE Shortcutkeys
- Next by Date: Custom code in parent form from component
- Previous by thread: DLL register problem
- Next by thread: Re: DLL register problem
- Index(es):
Relevant Pages
|