ActiveX Dll project in Visual Basic.net
-
Hello everybody! I'm new to the Visual basic.net and I'm trying to create a ActiveX dll project to use on server side in my asp pages. I have created several of similar projects in vb6 and never had a problem. I created a new Class library project. Added ComClass tag with ClassID, InterfaceId and EventsID. I checked the "Register for COM Interop" in project properties. I created test asp page that calls Server.CreateObject("appname.classname") and this is when I get the error "object reference not set to an instance of an object" Does any one know why this happens? :confused: Thank you for any help! iluha
-
Hello everybody! I'm new to the Visual basic.net and I'm trying to create a ActiveX dll project to use on server side in my asp pages. I have created several of similar projects in vb6 and never had a problem. I created a new Class library project. Added ComClass tag with ClassID, InterfaceId and EventsID. I checked the "Register for COM Interop" in project properties. I created test asp page that calls Server.CreateObject("appname.classname") and this is when I get the error "object reference not set to an instance of an object" Does any one know why this happens? :confused: Thank you for any help! iluha
I found the problem! Public Sub New() MyBase.New() g_dbConnString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" End Sub as soon as i commented the "g_dbConnString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=""" line it started to work. Can some one tell me, can i have extra code in the sub new ? besides the MyBase.New()? :confused: