Hi RhinoBull
It's like this: (Projects am using with thier hierarchy order)
- Data Access Application Block 2006 (Microsoft.Practices.EnterpriseLibrary)
- ObjectBuilder
- Common
- Data
- Common
- Chart
- ReferencesUI
In the ReferencesUI..Most of the WebForms uses this kind of code:
Code:
Private Sub Refresh()
Try
...
Dim objFiscalYear As New FiscalYear
drpFiscalYear.DataSource = objFiscalYear.GetAllFiscalYear
...
Catch ex As Exception
...
End Try
End Sub
The Order of the Projects Execution is like this:
ReferencesUI --> Chart --> Common
In details, It's executed like this:
From ReferencesUI:
Inside Account.aspx.vb:
it executes this:
objFiscalYear.GetAllFiscalYear
& then It goes to Chart:
Inside FiscalYear.vb:
it executes this:
Code:
Public Function GetAllFiscalYear() As FiscalYearCollection
Dim ConString As String
Dim FiscalYears As New FiscalYearCollection
Dim ConSettings As New Settings
ConString = ConSettings.ConnectionString
Dim FiscalYearDr As SqlDataReader = SQLWrapper.ExecuteReader(ConString, "FiscalYear_SelectAll")
...
End Function
Then a window is poped:
The type initializer 'Common.DataAccessLayer.SQLWrapper' threw an exception