Solved

Compiler Error Message: BC30175:

Posted on 2009-05-20
4
1,023 Views
Last Modified: 2012-05-07
Made some minor changes to Web app and now it will not compile - Keep getting:
Compilation ErrorDescription: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: BC30175: class 'CustomHTTPModule' and class 'CustomHTTPModule', declared in 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\axcess1\8d00aace\8e3ba18\App_SubCode_VBCode.i9dghjub.0vb', conflict in namespace '<Default>'

Source Error:
 

Line 10: 

Line 11: 

Line 12: Public Class CustomHTTPModule

Line 13:     Implements IHttpModule

Line 14: 

Source File: D:\webroot\websites\Axcess1\Axcess1\App_Code\VBCode\GlobalMembers.vb    Line: 12 
 
 

Compiler Warning Messages:

Warning: BC42030: Variable 'rs' is passed by reference before it has been assigned a value. A null reference exception could result at runtime.

Source Error:
 

 

D:\webroot\websites\Axcess1\Axcess1\App_Code\VBCode\Copy of GlobalMembers.vb

Line 155:            Dim found As String = "N"

Line 156:            Dim rs As System.Data.SqlClient.SqlDataReader

Line 157:            dbSelect(selectStr, rs, myReturnCode, dbconn)   'retrieve UserTable entry

Line 158:            wrtTrace(1, "Return code from get UserTable (" & myReturnCode & ").")

Line 159:            If myReturnCode = 0 Then

Warning: BC42021: Function without an 'As' clause; return type of Object assumed.

Source Error:
 

 

D:\webroot\websites\Axcess1\Axcess1\App_Code\VBCode\Copy of GlobalMembers.vb

Line 280:    End Sub

Line 281:

Line 282:    Public Function BuildSQLandFromPDFStructure(ByVal myOrgId As String)

Line 283:        'this function gets the PDF structure from the Organization Table

Line 284:        'and splits it based on commas

Warning: BC42030: Variable 'rs' is passed by reference before it has been assigned a value. A null reference exception could result at runtime.

Source Error:
 

 

D:\webroot\websites\Axcess1\Axcess1\App_Code\VBCode\Copy of GlobalMembers.vb

Line 338:            wrtTrace(2, "SQL Select (" & SQLCmd & ").")

Line 339:

Line 340:            dbSelect(SQLCmd, rs, returnCode, dbconn)

Line 341:

Line 342:            Dim RTtype(10) As String

Warning: BC42021: Function without an 'As' clause; return type of Object assumed.

Source Error:
 

 

D:\webroot\websites\Axcess1\Axcess1\App_Code\VBCode\Copy of GlobalMembers.vb

Line 431:    End Sub

Line 432:

Line 433:    Public Function CleanQueryString(ByVal myStr As String)

Line 434:        '           ================

Line 435:        '==========================================================

Warning: BC42021: Function without an 'As' clause; return type of Object assumed.

Source Error:
 

 

D:\webroot\websites\Axcess1\Axcess1\App_Code\VBCode\Copy of GlobalMembers.vb

Line 464:    End Function

Line 465:

Line 466:    Public Function CleanGTLTQ(ByVal myStr As String)

Line 467:        'replace xml chars &gt; and &lt; with > < and also ' gets replaced by '' for SQL

Line 468:        Dim cs As String = myStr

Warning: BC42104: Variable 'FileHandle' is used before it has been assigned a value. A null reference exception could result at runtime.

Source Error:
 

 

D:\webroot\websites\Axcess1\Axcess1\App_Code\VBCode\Copy of GlobalMembers.vb

Line 722:            'myMessage.Append("!Begin" & ControlChars.NewLine)

Line 723:            myMessage.Append("!Begin")

Line 724:            CreateERMAWrtLine(FileHandle, myMessage.ToString, myReturnCode, myReturnMsg) 'flush buffer

Line 725:            myMessage.Length = 0

Line 726:

Warning: BC42104: Variable 'FileHandle' is used before it has been assigned a value. A null reference exception could result at runtime.

Source Error:
 

 

D:\webroot\websites\Axcess1\Axcess1\App_Code\VBCode\Copy of GlobalMembers.vb

Line 1022:                myMessage.Append(ControlChars.NewLine)

Line 1023:

Line 1024:                CreateERMAWrtLine(FileHandle, myMessage.ToString, myReturnCode, myReturnMsg)

Line 1025:

Line 1026:                If myReturnCode = 0 Then        'previous write to .erma succeeded

Warning: BC42030: Variable 'rs' is passed by reference before it has been assigned a value. A null reference exception could result at runtime.

Source Error:
 

 

D:\webroot\websites\Axcess1\Axcess1\App_Code\VBCode\Copy of GlobalMembers.vb

Line 1038:                        wrtTrace(1, "SQL Cmd (" & SQLCmd & ").")

Line 1039:

Line 1040:                        dbSelect(SQLCmd, rs, returnCode, dbconn)

Line 1041:                        myMessage.Length = 0

Line 1042:                        myMessage.Append("'--   Clause ID   Description ---" & ControlChars.NewLine)

Warning: BC42030: Variable 'rs2' is passed by reference before it has been assigned a value. A null reference exception could result at runtime.

Source Error:
 

 

D:\webroot\websites\Axcess1\Axcess1\App_Code\VBCode\Copy of GlobalMembers.vb

Line 1068:                        Dim rs2 As SqlDataReader

Line 1069:                        Dim initVal As String = ""

Line 1070:                        dbSelect(SQLCmd, rs2, returnCode, dbconn)

Line 1071:                        While rs2.Read

Line 1072:                            'LookUpOther contains the initial value for the custom field

Warning: BC42030: Variable 'rs' is passed by reference before it has been assigned a value. A null reference exception could result at runtime.

Source Error:
 

 

D:\webroot\websites\Axcess1\Axcess1\App_Code\VBCode\Copy of GlobalMembers.vb Line 1184:

Line 1185:        wrtTrace(4, "SQL Cmd (" & SQLCmd & ").")

Line 1186:        dbSelect(SQLCmd, rs, returnCode, dbconn)

Line 1187:        wrtTrace(4, "ReturnCode (" & returnCode & ").")

Line 1188:

Warning: BC42030: Variable 'rs' is passed by reference before it has been assigned a value. A null reference exception could result at runtime.

Source Error:
 

 

D:\webroot\websites\Axcess1\Axcess1\App_Code\VBCode\Copy of GlobalMembers.vb Line 1400:

Line 1401:        wrtTrace(4, "SQL Cmd (" & SQLCmd & ").")

Line 1402:        dbSelect(SQLCmd, rs, returnCode, dbconn)

Line 1403:        wrtTrace(4, "ReturnCode (" & returnCode & ").")

Line 1404:

Warning: BC42021: Function without an 'As' clause; return type of Object assumed.

Source Error:
 

 

D:\webroot\websites\Axcess1\Axcess1\App_Code\VBCode\Copy of GlobalMembers.vb

Line 1514:    End Sub

Line 1515:

Line 1516:    Public Function RemoveBraces(ByVal myText As String)

Line 1517:        'this function removes text out of the request text that is between {} brackets

Line 1518:        Dim i As Integer = 0

Warning: BC42020: Variable declaration without an 'As' clause; type of Object assumed.

Source Error:
 

 

D:\webroot\websites\Axcess1\Axcess1\App_Code\VBCode\Copy of GlobalMembers.vb

Line 1549:        Session("SQLError") = ""

Line 1550:        Dim errorMessages As New System.Text.StringBuilder

Line 1551:        Dim cmdCreate = New SqlCommand(myCmdStr, myConn)

Line 1552:        cmdCreate.CommandTimeout = 0

Line 1553:        myReturnCode = 0

Warning: BC42020: Variable declaration without an 'As' clause; type of Object assumed.

Source Error:
 

 

D:\webroot\websites\Axcess1\Axcess1\App_Code\VBCode\Copy of GlobalMembers.vb

Line 1555:            cmdCreate.ExecuteNonQuery()

Line 1556:        Catch ex As SqlException

Line 1557:            Dim iErr

Line 1558:            errorMessages.Length = 0

Line 1559:            For iErr = 0 To ex.Errors.Count - 1

Warning: BC42021: Function without an 'As' clause; return type of Object assumed.

Source Error:
 

 

D:\webroot\websites\Axcess1\Axcess1\App_Code\VBCode\Copy of GlobalMembers.vb

Line 1642:    End Sub

Line 1643:

Line 1644:    Public Function dateOnly(ByVal myDate As String)

Line 1645:        'this routine strips the time off of a datetime

Line 1646:        Dim shortDate As String = ""

Warning: BC42020: Variable declaration without an 'As' clause; type of Object assumed.

Source Error:
 

 

D:\webroot\websites\Axcess1\Axcess1\App_Code\VBCode\Copy of GlobalMembers.vb

Line 1645:        'this routine strips the time off of a datetime

Line 1646:        Dim shortDate As String = ""

Line 1647:        Dim i = 0

Line 1648:        If Len(Trim(myDate)) > 0 Then

Line 1649:            i = InStr(myDate, " ")

Warning: BC42104: Variable 'customTable' is used before it has been assigned a value. A null reference exception could result at runtime.

Source Error:
 

 

D:\webroot\websites\Axcess1\Axcess1\App_Code\VBCode\Copy of GlobalMembers.vb Line 1830:

Line 1831:        If TypeOf customTable Is Array Then

Line 1832:            For i = 0 To customTable.Length - 1

Line 1833:                wrtTrace(4, "Custom Table (" & customTable(i) & ") Type (" & customType(i) & ").")

Line 1834:                If customType(i).ToUpper = "C" Then

Warning: BC42104: Variable 'customType' is used before it has been assigned a value. A null reference exception could result at runtime.

Source Error:
 

 

D:\webroot\websites\Axcess1\Axcess1\App_Code\VBCode\Copy of GlobalMembers.vb

Line 1831:        If TypeOf customTable Is Array Then

Line 1832:            For i = 0 To customTable.Length - 1

Line 1833:                wrtTrace(4, "Custom Table (" & customTable(i) & ") Type (" & customType(i) & ").")

Line 1834:                If customType(i).ToUpper = "C" Then

Line 1835:                    InsertRequestChoices(customTable(i), myRequestKey, myForm, "CheckBox")

Warning: BC42104: Variable 'customDrop' is used before it has been assigned a value. A null reference exception could result at runtime.

Source Error:
 

 

D:\webroot\websites\Axcess1\Axcess1\App_Code\VBCode\Copy of GlobalMembers.vb

Line 1844:                        End If

Line 1845:                    Next

Line 1846:                    If customDrop.Length > 0 Then

Line 1847:                        dropDownValue = customDrop(0)

Line 1848:                        wrtTrace(4, "Custom Dropdown value is (" & dropDownValue & ").")

Warning: BC42021: Function without an 'As' clause; return type of Object assumed.

Source Error:
 

 

D:\webroot\websites\Axcess1\Axcess1\App_Code\VBCode\Copy of GlobalMembers.vb

Line 1862:    End Sub

Line 1863:

Line 1864:    Public Function InsertRequest(ByVal myRequestType As String, _

Line 1865:                                    ByRef myReqIdentity As Integer, _

Line 1866:                                    ByRef myRC As Integer)

Warning: BC42030: Variable 'rs' is passed by reference before it has been assigned a value. A null reference exception could result at runtime.

Source Error:
 

 

D:\webroot\websites\Axcess1\Axcess1\App_Code\VBCode\Copy of GlobalMembers.vb

Line 1938:        Dim returnCode As Integer = 0

Line 1939:

Line 1940:        dbSelect(SQLCmd, rs, returnCode, dbconn)

Line 1941:        While rs.Read

Line 1942:            'myIdValue = rs(myId)

Warning: BC42021: Function without an 'As' clause; return type of Object assumed.

Source Error:
 

 

D:\webroot\websites\Axcess1\Axcess1\App_Code\VBCode\Copy of GlobalMembers.vb

Line 1960:    End Function

Line 1961:

Line 1962:    Public Function InsertRequestCCC(ByVal myRequestType As String, _

Line 1963:                                        ByRef myTypeDesc As String, _

Line 1964:                                        ByVal myYYYYMMDD As String, _

Warning: BC42024: Unused local variable: 'i'.

Source Error:
 

 

D:\webroot\websites\Axcess1\Axcess1\App_Code\VBCode\Copy of GlobalMembers.vb

Line 1976:        Dim SQLCmd As String = ""

Line 1977:        Dim iRC As Integer

Line 1978:        Dim i As Integer

Line 1979:

Line 1980:

Warning: BC42030: Variable 'rs' is passed by reference before it has been assigned a value. A null reference exception could result at runtime.

Source Error:
 

 

D:\webroot\websites\Axcess1\Axcess1\App_Code\VBCode\Copy of GlobalMembers.vb

Line 2068:        Dim returnCode As Integer = 0

Line 2069:

Line 2070:        dbSelect(SQLCmd, rs, returnCode, dbconn)

Line 2071:        While rs.Read

Line 2072:            'myIdValue = rs(myId)

Warning: BC42021: Function without an 'As' clause; return type of Object assumed.

Source Error:
 

 

D:\webroot\websites\Axcess1\Axcess1\App_Code\VBCode\Copy of GlobalMembers.vb Line 2770:

Line 2771:

Line 2772:    Public Function GetErrorMsg(ByVal myErrorCode As String, ByVal mySubstText As String)

Line 2773:        wrtTrace(4, "[GetErrorMsg] Enter")

Line 2774:        '============================================================

Warning: BC42030: Variable 'rs' is passed by reference before it has been assigned a value. A null reference exception could result at runtime.

Source Error:
 

 

D:\webroot\websites\Axcess1\Axcess1\App_Code\VBCode\Copy of GlobalMembers.vb

Line 2807:            wrtTrace(4, "SQL Cmd (" & SQLCmd & ").")

Line 2808:

Line 2809:            dbSelect(SQLCmd, rs, returnCode, dbconn)

Line 2810:            If returnCode = 0 Then

Line 2811:                While rs.Read

Warning: BC42030: Variable 'rs' is passed by reference before it has been assigned a value. A null reference exception could result at runtime.

Source Error:
 

 

D:\webroot\websites\Axcess1\Axcess1\App_Code\VBCode\Copy of GlobalMembers.vb

Line 2848:        wrtTrace(1, "SQL Cmd (" & SQLCmd & ").")

Line 2849:

Line 2850:        dbSelect(SQLCmd, rs, returnCode, dbconn)

Line 2851:        While rs.Read

Line 2852:            LUKeys(LUCount) = rs("LookUpKey")

Warning: BC42030: Variable 'rs' is passed by reference before it has been assigned a value. A null reference exception could result at runtime.

Source Error:
 

 

D:\webroot\websites\Axcess1\Axcess1\App_Code\VBCode\Copy of GlobalMembers.vb

Line 2900:        wrtTrace(8, "SQL Cmd (" & SQLCmd & ").")

Line 2901:

Line 2902:        dbSelect(SQLCmd, rs, returnCode, dbconn)

Line 2903:        While rs.Read

Line 2904:            LUKeys(LUCount) = rs("LookUpKey")

Warning: BC42030: Variable 'rs' is passed by reference before it has been assigned a value. A null reference exception could result at runtime.

Source Error:
 

 

D:\webroot\websites\Axcess1\Axcess1\App_Code\VBCode\Copy of GlobalMembers.vb

Line 2936:        wrtTrace(8, "SQL Cmd (" & SQLCmd & ").")

Line 2937:

Line 2938:        dbSelect(SQLCmd, rs, returnCode, dbconn)

Line 2939:        While rs.Read

Line 2940:            LUKeys(LUCount) = rs("OrgId")

Warning: BC42021: Function without an 'As' clause; return type of Object assumed.

Source Error:
 

 

D:\webroot\websites\Axcess1\Axcess1\App_Code\VBCode\Copy of GlobalMembers.vb

Line 2954:    End Sub

Line 2955:

Line 2956:    Public Function GetPDFStructure(ByRef myOrgId As String)

Line 2957:        '============================================================

Line 2958:        'this routine gets the PDF Structure from the Organization Table

Warning: BC42030: Variable 'rs' is passed by reference before it has been assigned a value. A null reference exception could result at runtime.

Source Error:
 

 

D:\webroot\websites\Axcess1\Axcess1\App_Code\VBCode\Copy of GlobalMembers.vb

Line 2972:        wrtTrace(8, "SQL Cmd (" & SQLCmd & ").")

Line 2973:

Line 2974:        dbSelect(SQLCmd, rs, returnCode, dbconn)

Line 2975:        While rs.Read

Line 2976:            myStructure = rs("PDFCombinedOrSeparate")

Warning: BC42030: Variable 'rs' is passed by reference before it has been assigned a value. A null reference exception could result at runtime.

Source Error:
 

 

D:\webroot\websites\Axcess1\Axcess1\App_Code\VBCode\Copy of GlobalMembers.vb

Line 3005:        wrtTrace(8, "SQL Cmd (" & SQLCmd & ").")

Line 3006:

Line 3007:        dbSelect(SQLCmd, rs, returnCode, dbconn)

Line 3008:        While rs.Read

Line 3009:            LUKeys(LUCount) = rs("OrgLevel")

Warning: BC42030: Variable 'rs' is passed by reference before it has been assigned a value. A null reference exception could result at runtime.

Source Error:
 

 

D:\webroot\websites\Axcess1\Axcess1\App_Code\VBCode\Copy of GlobalMembers.vb

Line 3050:        myResult = ""

Line 3051:

Line 3052:        dbSelect(SQLCmd, rs, returnCode, dbconn)

Line 3053:        While rs.Read

Line 3054:            myResult = rs(myColumnName) & ""

Warning: BC42021: Function without an 'As' clause; return type of Object assumed.

Source Error:
 

 

D:\webroot\websites\Axcess1\Axcess1\App_Code\VBCode\Copy of GlobalMembers.vb

Line 3061:    End Sub

Line 3062:

Line 3063:    Public Function GetLUTableString(ByVal myTable As String, ByVal myKey As String)

Line 3064:        Dim myStr As String = myKey

Line 3065:        wrtTrace(4, "[GetLUTableString] Enter myTable (" & myTable & ") myKey (" & myKey & ").")

Warning: BC42030: Variable 'rs' is passed by reference before it has been assigned a value. A null reference exception could result at runtime.

Source Error:
 

 

D:\webroot\websites\Axcess1\Axcess1\App_Code\VBCode\Copy of GlobalMembers.vb

Line 3080:        wrtTrace(8, "SQL Cmd (" & SQLCmd & ").")

Line 3081:

Line 3082:        dbSelect(SQLCmd, rs, returnCode, dbconn)

Line 3083:        While rs.Read

Line 3084:            myStr = rs("LookUpString") & ""

Warning: BC42021: Function without an 'As' clause; return type of Object assumed.

Source Error:
 

 

D:\webroot\websites\Axcess1\Axcess1\App_Code\VBCode\Copy of GlobalMembers.vb

Line 3093:    End Function

Line 3094:

Line 3095:    Public Function GetNextRequestId(ByVal myRequestType As String, ByRef myTypeDesc As String, _

Line 3096:                                    ByRef myFee As Decimal, _

Line 3097:                                    ByRef myTimeFrame As Integer, _

Warning: BC42030: Variable 'rs' is passed by reference before it has been assigned a value. A null reference exception could result at runtime.

Source Error:
 

 

D:\webroot\websites\Axcess1\Axcess1\App_Code\VBCode\Copy of GlobalMembers.vb

Line 3128:            wrtTrace(1, "SQL Select (" & SQLCmd & ").")

Line 3129:

Line 3130:            dbSelect(SQLCmd, rs, returnCode, dbconn)

Line 3131:            While rs.Read

Line 3132:                ReqNo = rs("LastUsedRequestNumber") + 1

Warning: BC42030: Variable 'rs' is passed by reference before it has been assigned a value. A null reference exception could result at runtime.

Source Error:
 

 

D:\webroot\websites\Axcess1\Axcess1\App_Code\VBCode\Copy of GlobalMembers.vb

Line 3237:        wrtTrace(1, "SQL Cmd (" & SQLCmd & ").")

Line 3238:

Line 3239:        dbSelect(SQLCmd, rs, returnCode, dbconn)

Line 3240:        While rs.Read

Line 3241:            myTtlReq = rs("TtlReq")

Warning: BC42030: Variable 'rs' is passed by reference before it has been assigned a value. A null reference exception could result at runtime.

Source Error:
 

 

D:\webroot\websites\Axcess1\Axcess1\App_Code\VBCode\Copy of GlobalMembers.vb

Line 3342:        wrtTrace(2, "SQL get RequestDocs (" & SQLCmd & ").")

Line 3343:

Line 3344:        dbSelect(SQLCmd, rs, returnCode, dbconn)

Line 3345:        wrtTrace(2, "Return Code (" & returnCode & ").")

Line 3346:

Warning: BC42030: Variable 'rs' is passed by reference before it has been assigned a value. A null reference exception could result at runtime.

Source Error:
 

 

D:\webroot\websites\Axcess1\Axcess1\App_Code\VBCode\Copy of GlobalMembers.vb

Line 3394:        wrtTrace(1, "SQL Cmd (" & SQLCmd & ").")

Line 3395:

Line 3396:        dbSelect(SQLCmd, rs, returnCode, dbconn)

Line 3397:        While rs.Read

Line 3398:            LUKeys(LUCount) = rs("RequestType")

Warning: BC42021: Function without an 'As' clause; return type of Object assumed.

Source Error:
 

 

D:\webroot\websites\Axcess1\Axcess1\App_Code\VBCode\Copy of GlobalMembers.vb

Line 3493:    End Sub

Line 3494:

Line 3495:    Public Function myCurr(ByVal myMoney As String)

Line 3496:        '=======================================================

Line 3497:        'this function formats a string as money with 2 decimals

Warning: BC42021: Function without an 'As' clause; return type of Object assumed.

Source Error:
 

 

D:\webroot\websites\Axcess1\Axcess1\App_Code\VBCode\Copy of GlobalMembers.vb

Line 3508:    End Function

Line 3509:

Line 3510:    Public Function NonZeroPdfIdCount(ByRef myConn As System.DataSqlClient.SqlConnection, _

Line 3511:                                        ByVal myReqIdentity As Integer, _

Line 3512:                                        ByVal SQLand As String)

Warning: BC42030: Variable 'rs' is passed by reference before it has been assigned a value. A null reference exception could result at runtime.

Source Error:
 

 

D:\webroot\websites\Axcess1\Axcess1\App_Code\VBCode\Copy of GlobalMembers.vb

Line 3526:        wrtTrace(1, "SQL Cmd (" & SQLCmd & ").")

Line 3527:

Line 3528:        dbSelect(SQLCmd, rs, iRC, myConn)

Line 3529:        wrtTrace(1, "Return Code (" & iRC & ").")

Line 3530:

Warning: BC42030: Variable 'rs' is passed by reference before it has been assigned a value. A null reference exception could result at runtime.

Source Error:
 

 

D:\webroot\websites\Axcess1\Axcess1\App_Code\VBCode\Copy of GlobalMembers.vb

Line 3572:        Dim RQChoice As String = ""

Line 3573:

Line 3574:        dbSelect(SQLCmd, rs, returnCode, dbconn)

Line 3575:        While rs.Read

Line 3576:            RQChoice = rs("LookUpKey")

Warning: BC42030: Variable 'rs' is passed by reference before it has been assigned a value. A null reference exception could result at runtime.

Source Error:
 

 

D:\webroot\websites\Axcess1\Axcess1\App_Code\VBCode\Copy of GlobalMembers.vb

Line 3760:        wrtTrace(4, "SQL Select (" & SQLCmd & ").")

Line 3761:

Line 3762:        dbSelect(SQLCmd, rs, returnCode, dbconn)

Line 3763:        While rs.Read

Line 3764:            myDropDownList.Items.Add(New ListItem(rs("LookUpString"), rs("LookUpKey")))

Warning: BC42030: Variable 'rs' is passed by reference before it has been assigned a value. A null reference exception could result at runtime.

Source Error:
 

 

D:\webroot\websites\Axcess1\Axcess1\App_Code\VBCode\Copy of GlobalMembers.vb

Line 3831:        wrtTrace(4, "SQL Select (" & SQLCmd & ").")

Line 3832:

Line 3833:        dbSelect(SQLCmd, rs, returnCode, dbconn)

Line 3834:

Line 3835:        'some events may be disqualified from the DDL because of rules

Warning: BC42030: Variable 'rs' is passed by reference before it has been assigned a value. A null reference exception could result at runtime.

Source Error:
 

 

D:\webroot\websites\Axcess1\Axcess1\App_Code\VBCode\Copy of GlobalMembers.vb

Line 3914:        wrtTrace(4, "SQL Select Cmd (" & SQLCmd & ").")

Line 3915:

Line 3916:        dbSelect(SQLCmd, rs, iRC, dbconn)

Line 3917:        While rs.Read

Line 3918:            'need a filter in here to ensure that we respect OrgLevel

Warning: BC42030: Variable 'rs' is passed by reference before it has been assigned a value. A null reference exception could result at runtime.

Source Error:
 

 

D:\webroot\websites\Axcess1\Axcess1\App_Code\VBCode\Copy of GlobalMembers.vb

Line 4083:        Dim RQCount As Integer = 0

Line 4084:

Line 4085:        dbSelect(SQLCmd, rs, returnCode, dbconn)

Line 4086:        While rs.Read

Line 4087:            RQkeys(RQCount) = rs("LookUpKey")

Warning: BC42030: Variable 'rs' is passed by reference before it has been assigned a value. A null reference exception could result at runtime.

Source Error:
 

 

D:\webroot\websites\Axcess1\Axcess1\App_Code\VBCode\Copy of GlobalMembers.vb

Line 4192:        Dim RQCount As Integer = 0

Line 4193:

Line 4194:        dbSelect(SQLCmd, rs, returnCode, dbconn)

Line 4195:        While rs.Read

Line 4196:            RQkeys(RQCount) = rs("LookUpKey")

Warning: BC42030: Variable 'rs' is passed by reference before it has been assigned a value. A null reference exception could result at runtime.

Source Error:
 

 

D:\webroot\websites\Axcess1\Axcess1\App_Code\VBCode\Copy of GlobalMembers.vb

Line 4304:        Dim RQCount As Integer = 0

Line 4305:

Line 4306:        dbSelect(SQLCmd, rs, returnCode, dbconn)

Line 4307:        While rs.Read

Line 4308:            RQkeys(RQCount) = rs("LookUpKey")

Warning: BC42030: Variable 'rs' is passed by reference before it has been assigned a value. A null reference exception could result at runtime.

Source Error:
 

 

D:\webroot\websites\Axcess1\Axcess1\App_Code\VBCode\Copy of GlobalMembers.vb

Line 4426:        Dim RQCount As Integer = 0

Line 4427:

Line 4428:        dbSelect(SQLCmd, rs, returnCode, dbconn)

Line 4429:        While rs.Read

Line 4430:            RQkeys(RQCount) = rs("Arg1")

Warning: BC42030: Variable 'rs' is passed by reference before it has been assigned a value. A null reference exception could result at runtime.

Source Error:
 

 

D:\webroot\websites\Axcess1\Axcess1\App_Code\VBCode\Copy of GlobalMembers.vb

Line 4536:        Dim RQCount As Integer = 0

Line 4537:

Line 4538:        dbSelect(SQLCmd, rs, returnCode, dbconn)

Line 4539:        While rs.Read

Line 4540:            RQkeys(RQCount) = rs("LookUpKey")

Warning: BC42030: Variable 'rs' is passed by reference before it has been assigned a value. A null reference exception could result at runtime.

Source Error:
 

 

D:\webroot\websites\Axcess1\Axcess1\App_Code\VBCode\Copy of GlobalMembers.vb

Line 4665:        wrtTrace(1, "SQL Cmd (" & SQLCmd & ").")

Line 4666:

Line 4667:        dbSelect(SQLCmd, rs, returnCode, dbconn)

Line 4668:

Line 4669:        While rs.Read

Warning: BC42030: Variable 'rs' is passed by reference before it has been assigned a value. A null reference exception could result at runtime.

Source Error:
 

 

D:\webroot\websites\Axcess1\Axcess1\App_Code\VBCode\Copy of GlobalMembers.vb

Line 5058:        wrtTrace(1, "SQL Cmd (" & SQLCmd & ").")

Line 5059:

Line 5060:        dbSelect(SQLCmd, rs, returnCode, dbconn)

Line 5061:

Line 5062:        While rs.Read

Warning: BC42021: Function without an 'As' clause; return type of Object assumed.

Source Error:
 

 

D:\webroot\websites\Axcess1\Axcess1\App_Code\VBCode\Copy of GlobalMembers.vb

Line 5367:    End Sub

Line 5368:

Line 5369:    Public Function ScrambleStr(ByVal myStr As String, ByVal mySeed As String)

Line 5370:        wrtTrace(8, "[ScrambleStr] Enter")

Line 5371:        ''wrtTrace(6, "myStr (" & myStr & ") mySeed (" & mySeed & ").")

Warning: BC42030: Variable 'rs' is passed by reference before it has been assigned a value. A null reference exception could result at runtime.

Source Error:
 

 

D:\webroot\websites\Axcess1\Axcess1\App_Code\VBCode\Copy of GlobalMembers.vb

Line 5439:        selectStr = "SELECT * FROM Organization Where OrgId = '" & OrgId & "'"

Line 5440:        wrtTrace(6, "[SetOrgSessionVars] Organization Table select string (" & selectStr & ").")

Line 5441:        dbSelect(selectStr, rs, OrgRc, dbconn)

Line 5442:        wrtTrace(1, "Return code from get Organization (" & OrgRc & ").")

Line 5443:        If OrgRc = 0 Then

Warning: BC42030: Variable 'rs' is passed by reference before it has been assigned a value. A null reference exception could result at runtime.

Source Error:
 

 

D:\webroot\websites\Axcess1\Axcess1\App_Code\VBCode\Copy of GlobalMembers.vb

Line 5536:        wrtTrace(1, "SQL Cmd (" & SQLCmd & ").")

Line 5537:

Line 5538:        dbSelect(SQLCmd, rs, returnCode, dbconn)

Line 5539:        While rs.Read

Line 5540:            DeltaDays = rs("DeltaDays")

Warning: BC42030: Variable 'rsTblNames' is passed by reference before it has been assigned a value. A null reference exception could result at runtime

Open in new window

0
Comment
Question by:jw1741
  • 2
  • 2
4 Comments
 
LVL 14

Assisted Solution

by:jjardine
jjardine earned 500 total points
ID: 24433645
You may want to reset iis and clear out your bin before the build.   That may clear the error.  
0
 

Author Comment

by:jw1741
ID: 24434444
Thanks but we tried that and still have the problem.  We also deleted the asp.net temp file and still, no change.

Alsot tried to replicate the problem on another server but could not - everything worked fine, either by adding new files only or via a complete reinstall of the app.

I should add that the Web app is installed with a .msi file.
0
 
LVL 14

Accepted Solution

by:
jjardine earned 500 total points
ID: 24435826
is it possible to delete the virtual directory in iis and then re-create it?
0
 

Author Comment

by:jw1741
ID: 24442145
Thanks for the suggestion - we will try that.  
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Join & Write a Comment

If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
Lync server 2013 Backup Service Error ID 4049 – After File Share Migration
This video teaches viewers how to create their own website using cPanel and Wordpress. Tutorial walks users through how to set up their own domain name from tools like Domain Registrar, Hosting Account, and Wordpress. More specifically, the order in…
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to selectively show certain fields based on user input using rules to gather relevant information and data from your forms. The rules feature provides you with an opportunity…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now