Question

I've developed a C# application that simply reads from a table in a database "FinishedOrders" and puts the results into a list view.

And basically the problem is:

When i run the application on my laptop (the computer used to develop it) off of the file server it works properly and fills the list with the values from the Finished Orders table

When I run the exact same application from the exact same path on my bosses computer it pops up an empty list view as if it caught an exception or something.

Things I've considered:

  • Wrapping the entire loading statement in a try catch block and having it spit out the error message in a message box doesn't show an error on either computer.
  • I'm using a list of stack panels, and the first item in each stack panel is an Image control, I'm setting the image.source like this: Type.Source = new BitmapImage(new Uri("/Control;component/images/42EF.png", UriKind.Relative)); Now I'm not entirely sure if this is causing the problem but if it couldn't load the uri wouldn't it throw an error message within a try catch block instead of just not showing ?
  • I've copy pasted the entire solution instead of just the application onto the fileserver and tried running it from the debug folder (on both computers) -> same problem
  • I've tried changing my connection strings to both a mapped drive "T:...." and "\Fileserver..." both work on my computer. The database is on the fileserver as well.
  • Both computers are using windows 7 (although i think my boss has premium edition, I have ultimate)
  • Both computers have access installed and have other tested and working C# applications using ole.db in pretty much the exact same context.

this is my code: http://pastebin.com/hm0BByDf

Was it helpful?

Solution

I've found the error and i'm quite annoyed with it really.

When i open the access database (on the fileserver) with my computer, the dates are all in the format ddmmyyyy when i open the exact same database from my bosses computer in access 2003 it shows the dates in the format of mmddyyyy The list shows blank on his computer because i'm querying the date in the wrong format

He had his region set to English(United States) which by default puts month first I have mine set to English(Canada)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top