Results 1 to 3 of 3

Thread: Object reference not set to an instance of an object

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2004
    Posts
    14

    Angry Object reference not set to an instance of an object

    Hello,

    I have a .NET DLL which I am trying to call from an ASP .NET application. The DLL errors (Object reference not set to an instance of an object) when using a function from another DLL which is instantiated once successfully.

    This DLL works perfectly when called from a VB.NET application.

    ASP.NET:

    Code:
    Private Sub btnSubmit_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnSubmit.Click
    
    Dim objProgram As New WCS_DLL_Interface_Girobank_Split.WCS_DLL_Interface_Girobank_Split
                objProgram.Run("040927", "C:\Inetpub\wwwroot\WCS_ASP_Interface_BulkPayments\App.config")
            End If
        End Sub
    VB.NET DLL:

    Code:
    'Successfully creates instance
    Dim objDB As New WCS_db_authentication.db
    
    'Loop
    'Error Line
    strRAN = objDB.getData_ID(strAppPath, "WCS_SP_TMP_Girobank_Split_FindDebt", strWCS_SP_TMP_Girobank_Split_FindDebt)
                
    'End Loop
    I can't see why this would work in VB.NET and not ASP.NET. It creates the object fine (Even debugging "objDB is null" returns false).

    Any one any ideas?

    Cheers...

  2. #2

  3. #3

    Thread Starter
    New Member
    Join Date
    Oct 2004
    Posts
    14
    Originally posted by Wokawidget
    what is the code for WCS_db_authentication.db


    Woka
    Seems it was a problem with a database function in wcs_db_authentication after all. Didn't have the correct permissions to connect.

    Thanks for the reply.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width