The EntitySpaces Community

Share and learn about the EntitySpaces Architecture.
Welcome to The EntitySpaces Community Sign in | Join | Help
in
Home Forums Photos

First chance exception

Last post 06-05-2007, 7:49 AM by strattonn. 4 replies.
Sort Posts: Previous Next
  •  06-05-2007, 6:09 AM 3036

    First chance exception

    I have an existing application that I was working on last week. When I opened it today I get this error.

     A first chance exception of type 'System.Exception' occurred in EntitySpaces.Interfaces.dll

    I have no idea where to start to diagnose this. I am not aware of any changes since the code was running last week and there is nothing else to track this error down with.

     

    Thanks,
    Nigel

  •  06-05-2007, 6:23 AM 3039 in reply to 3036

    Re: First chance exception

    Okay, Post what ES version and database you are using, the entire call stack plus. Use the "code" buton when posting the call stack, it's the last button on the right when editing. Also, post the code regarding where the error occurred, format the code as well.  Also, post the entire message from the exception.
    EntitySpaces | Twitter | BLOG | Please honor our Software License
  •  06-05-2007, 7:07 AM 3041 in reply to 3039

    Re: First chance exception

    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.

     

  •  06-05-2007, 7:12 AM 3042 in reply to 3041

    Re: First chance exception

    We now display "Your Trial Version has Expired". I am pretty sure your trial has expired. Can you upgrade to the latest Trial, just install from the home page, click the button.
    EntitySpaces | Twitter | BLOG | Please honor our Software License
  •  06-05-2007, 7:49 AM 3044 in reply to 3042

    Re: First chance exception

    I wondered if that was it, it was the only thing that made sense I had installed the developer edition but I bet the dll's were from the trial version.
View as RSS news feed in XML