A
Alan
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);
}
..........
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);
}
..........