hi i have written app on vs2008 c# (express edition) on win XP which reads and creates excel files (excel 2003) using microsoft excel 11.0 object library (because that’s the only available one through add references in COM section)… now i publish this project, then copy the setup.exe and take it to my friend’s win vista machine, setup goes smoothly but bumps it starts to throw exceptions and stops in the middle of the processes (on my win xp it runs fine without any problems)… plz can you tell me the solution to this problem??? thanks
Share
Using your XP tested application in a vista environment, most likely it will run into the UAC Wall. Try running your app “as Administrator”. You said, that you’re creating excel files, so maybe the current user doesn’t have permission to write into your target directory.
With this code example, you can check if your app is running on a uac enable OS.
After that, you can this tutorial to request the necessary elevation.