Click here to Skip to main content
15,898,979 members

Comments by Chris Reynolds (UK) (Top 61 by date)

Chris Reynolds (UK) 27-Feb-13 6:54am View    
What do you think is wrong? You haven't said what is happening that is unexpected. I can see a problem if fsensorvalue1 is a float as a value of 29.5 will fall between the two ifs.
Chris Reynolds (UK) 26-Feb-13 9:05am View    
One thing to bear in mind that when a service starts there may well be no user logged on. Also a server could have multiple sessions, which user session's credentials would you use?
Chris Reynolds (UK) 26-Feb-13 5:07am View    
You need to give a lot more detail if you want any help. How much XML? What database server are you looking to load it into? What is the structure of the XML, give a small sample? Do you have an existing DB schema or can you create a new one?
Chris Reynolds (UK) 26-Feb-13 5:00am View    
Put some break points in and break the problem down. Is the first part definitely populating your list correctly? Then single step through your matching code to see if the comparisons are what you expect. Some time spent learning how to use the debugger to set breakpoints and inspect variables will save you a lot of time and you'll find solutions faster than us doing a static analysis of your code.
Chris Reynolds (UK) 25-Feb-13 7:20am View    
Also there is the 'Register for COM interop' option in Project Settings|Build tab which should be ticked