Problem with system.invalidoperationexception Win XP VB.net

Hi

I have a program written on a windows 7 machine with visual studio 2008 vb.net. It runs fine on any windows 7 machine but I get a system.invalidoperationexception when I try to run it on a windows xp machine. i have tried a couple of xp machines and they both give me the same error. Is there a way to trap this error so I can get more info? It appears to be thrown before the main form loads.

Thanks Nick Steele
nsteele84Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

UnifiedISCommented:
Can you look at the details of the unhandled exception window and post?  Often you can determine the source of the error from that.  Do you have anything in your app that isn't .NET?  The .Net framework should equalize the OS so to speak.  Make sure the XP versions have a recent enough version of the framework for the version that you are targetting.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
nsteele84Author Commented:
Hi

I have attached a screenshot of the rror not sure if that helps. I will try to pin down the area of th eproblem. Error Screenshot
0
nsteele84Author Commented:
Still dont know what caused the problem. I traced it down to the main form which I believe someshow had become corrupted. I created a new main form with all th eold controls and it now works.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.