System.Data.Linq error with exception System.InvalidOperationException RRS feed

  • Question

  • Hi,


    I have a simple LINQ to SQL statement on my code but on certain PC that I install, my program crash and I got the following error below.

    My client environment that crash are using  .Net framework 4, client profile, SQL CE deployed using ClickOnce at DataDirectory and crash on Windows 7 Home Premium and Professional OS

    Basically my code is as such:


    Dim db As New Database1(ApplicationDeployment.CurrentDeployment.DataDirectory & "\Database1.sdf")
      Public Sub New()
       Dim q = (From a In db.ApplicationInformation Order By a.ApplicationLabel Select a.ApplicationID, a.ApplicationLabel, a.ApplicationIcon).ToList()
        For Each abc In q
        '...code statement here
       Catch ex As Exception
                MessageBox.Show("Error: " & ex.ToString)
       End Try
      End Sub



    What should I do to get detailed error message to further troubleshoot this problem? Error log as shown below:

    Problem signature:

      Problem Event Name: CLR20r3

      Problem Signature 01: desktop.exe

      Problem Signature 02:

      Problem Signature 03: 4efb89be

      Problem Signature 04: System.Data.Linq

      Problem Signature 05:

      Problem Signature 06: 4ba1e3c9

      Problem Signature 07: c81

      Problem Signature 08: 69

      Problem Signature 09: System.InvalidOperationException

      OS Version:      6.1.7600.

      Locale ID:           17417

      Additional Information 1:           0a9e

      Additional Information 2:           0a9e372d3b4ad19135b953a78882e789

      Additional Information 3:           0a9e

      Additional Information 4:           0a9e372d3b4ad19135b953a78882e789


    Read our privacy statement online:


    If the online privacy statement is not available, please read our privacy statement offline:


    Thursday, December 29, 2011 3:05 AM