Problem with system.invalidoperationexception Win XP


I have a program written on a windows 7 machine with visual studio 2008 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
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.

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.

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:

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
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.
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.