ASP.NET error message Object reference not set to an instance of an object

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • urveshv
    New Member
    • Oct 2007
    • 1

    ASP.NET error message Object reference not set to an instance of an object

    Hello,

    I got a problem to view a page and getting above error. The strange thig is I am geeting this error in one login. When I am login with administrator creditentails it allows me.

    the codes are as below:

    The error on Throw ex.... line

    Please pass any suggestion.

    Public Function GetActiveUserLi stByUser(ByVal userId As Integer) As DataTable
    Try
    Dim oDal As New UserDAL
    Dim oUser As New User
    oUser = GetUser(userId)
    Dim tbl As DataTable = oDal.GetUserBra nchId(oUser.iOr gId)
    Dim iBranchId As Integer = tbl.Rows(0).Ite m("iBranchOrgID ")
    Return oDal.GetActiveU serList(userId, oUser.iOrgId, iBranchId)
    Catch ex As Exception
    Throw ex
    End Try

    End Function
Working...