Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. ActiveX Dll project in Visual Basic.net

ActiveX Dll project in Visual Basic.net

Scheduled Pinned Locked Moved Visual Basic
comhelpcsharpsysadmin
2 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    iluha
    wrote on last edited by
    #1

    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 1 Reply Last reply
    0
    • I 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 Offline
      I Offline
      iluha
      wrote on last edited by
      #2

      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:

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups