MyGeneration 1.2.0.7
EntitySpaces Version # 2007.0.0507.0
SQL Server 2005
Here is the exception message.
Code:
System.Exception was unhandled
Message="Exception"
Source="EntitySpaces.Interfaces"
StackTrace:
at EntitySpaces.Interfaces.esDynamicQuery.Load()
at EntitySpaces.Core.esEntityCollection.LoadAll()
at Logistics.MainForm.MainForm_Load(Object sender, EventArgs e) in C:\Development\Customers\TRNJ\Logistics\Logistics\MainForm.cs:line 45
at System.EventHandler.Invoke(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.SafeNativeMethods.ShowWindow(HandleRef hWnd, Int32 nCmdShow)
at System.Windows.Forms.Control.SetVisibleCore(Boolean value)
at System.Windows.Forms.Form.SetVisibleCore(Boolean value)
at System.Windows.Forms.Control.set_Visible(Boolean value)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at Logistics.Program.Main(String[] args) in C:\Development\Customers\TRNJ\Logistics\Logistics\Program.cs:line 26
at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
Here are the last few lines from the output window of VS
'Logistics.vshost.exe' (Managed): Loaded 'C:\Development\Customers\TRNJ\Logistics\Logistics\bin\Release\Logistics.exe', Symbols loaded.
'Logistics.vshost.exe' (Managed): Loaded 'C:\Development\Customers\TRNJ\Logistics\Logistics\bin\Release\EntitySpaces.LoaderMT.dll', No symbols loaded.
'Logistics.vshost.exe' (Managed): Loaded 'C:\Development\Customers\TRNJ\Logistics\Logistics\bin\Release\EntitySpaces.Interfaces.dll', No symbols loaded.
'Logistics.vshost.exe' (Managed): Loaded 'C:\Development\Customers\TRNJ\Logistics\Logistics\bin\Release\EntitySpaces.dll', Symbols loaded.
'Logistics.vshost.exe' (Managed): Loaded 'C:\Development\Customers\TRNJ\Logistics\Logistics\bin\Release\EntitySpaces.Core.dll', No symbols loaded.
'Logistics.vshost.exe' (Managed): Loaded 'C:\Windows\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
A first chance exception of type 'System.Exception' occurred in EntitySpaces.Interfaces.dll
Code:
public partial class MainForm : Form
{
public bool SkipLoadSettings = false;
private Color cCustomsError = System.Drawing.Color.Red;
private Infragistics.Win.GradientStyle gCustomsError = Infragistics.Win.GradientStyle.GlassBottom37 ;
private bool blnInternalChange = true;
private ContainersCollection _containers = new ContainersCollection();
private BillOfLadingCollection _problemContainers = new BillOfLadingCollection();
private BillOfLadingCollection _BillOfLadings = new BillOfLadingCollection();
private string SettingsFilename = string.Empty;
private bool EnteringTstBOL = false;
public MainForm()
{
InitializeComponent();
}
private void MainForm_Load(object sender, EventArgs e)
{
_containers.LoadAll();
statusCollection1.LoadAll();
_containers.LoadAll(); is line 45. I get the same message if I swap that line with the next statusCollection1.LoadAll().
Program.cs
Code:
static void Main(string[] args)
{
esProviderFactory.Factory =
new EntitySpaces.LoaderMT.esDataProviderFactory();
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
MainForm start = new MainForm();
if (args.Length>0 && args[0].ToLower() == "/reset")
{
start.SkipLoadSettings = true;
}
Application.Run(start);
}
Call Stack
Code:
Logistics.exe!Logistics.MainForm.MainForm_Load(object sender = {Logistics.MainForm, Text: Customer Logistics}, System.EventArgs e = {System.EventArgs}) Line 45 C#
[External Code]
Logistics.exe!Logistics.Program.Main(string[] args = {Dimensions:[0]}) Line 27 C#
[External Code]
I tried to past in the config section but it didn't work too well.