Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 ASP.NET
 referencing a dll

Author  Topic 

erics44
Starting Member

12 Posts

Posted - 2009-12-02 : 09:19:49
Hi

I have a class with a method that returns a dataset


Public DataSet getDS()

{

DataSet ds = new DataSet();

//populate the dataset

return ds;

}


now if i have that class within a project all works fine but if i put it in a class library and in the project bin file I get an error


failed to initialize object. use the new keyword


(or something like that)


any ideas how i can get around this so i can use the call from a dll?


Thanks

afrika
Master Smack Fu Yak Hacker

2706 Posts

Posted - 2009-12-02 : 16:47:43
did you build the site ?
Go to Top of Page
   

- Advertisement -