Windows Compatibility Issues

I recently wrote a program in XP, switching between Pro and Media Center Edition.  The other day, I attempted to install the program onto a Windows 2000 32 bit machine and it failed; the program also crashed in Vista.  I'm new to the compatibility in code thing, but I was hoping that there could be some reference I could just add to my program and everything would work, but I'm probably wrong.  So my question is, what is the easiest way to resolve compatibility issues with Windows in C#, or is there not an easy way to do it?
jason4659Asked:
Who is Participating?
 
Anurag ThakurConnect With a Mentor Technical ManagerCommented:
regsvr32 command on the command prompt does that
http://support.microsoft.com/kb/249873
0
 
Anurag ThakurTechnical ManagerCommented:
as far as i know if i write an application with C# on XP (any version) it should run with any other 32 bit microsoft operating system unless and untill you are using an 3rd party component which is specifically designed to be used with XP

why your program is not running on Vista and 2003 server because both these operating systems have tight security and does not allow some applications to run
in vista there is user access control and in the server there are other settings which might be required

be more specific with your question we might be able to help with better solutions
0
 
jason4659Author Commented:
UAC has been disabled in Vista, and it's Windows 2000, not 2003 Server.  What kind of specifics do you need to better answer the question?
0
Cloud Class® Course: MCSA MCSE Windows Server 2012

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

 
Anurag ThakurTechnical ManagerCommented:
see the only reason if you have developed a pure .net application not working on a 2000 server or vista is because of security because i am running my applications on all the servers and on vista also so there is no compatibility issue
initially it was a UAC issue on vista but after disabling it its working fine and on servers there is always some kind of setting required to make it work

for modifications on serves you need to know what all you are using in your application and what all are restricted by the server which you might have to enable

regarding what you want to share with us about your application is up to you - it will be better to know if you are using any kind of third party components or any other introp components etc
0
 
jason4659Author Commented:
"it will be better to know if you are using any kind of third party components or any other introp components etc"

I'm using system.runtime.interopservices, does that make a difference?
0
 
jason4659Author Commented:
I'm also using System.Management.
0
 
Anurag ThakurTechnical ManagerCommented:
if you are using system.runtime.interopservices i am assuming here that you are using some com component and its introp assembly
if the com component is not registered you are going to get an error

resgister the com component and then try again
0
 
jason4659Author Commented:
I can't register the com component because I'm using a Windows Application, and that option isn't available...
0
 
Anurag ThakurTechnical ManagerCommented:
windows dosent stop you from registering the com component
moreover its the part of the setup process to register the com pomponents if any
0
 
jason4659Author Commented:
Do you know how to go about registering the com component?
0
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.

All Courses

From novice to tech pro — start learning today.