I have a C# project built on VS 2008. The Target Framework is set to 2.0 because I cannot assume that all my clients will upgrade to SP2 and Install Framework 3.0. When I try to run the compiled application on a Win XP (without Service Pack) system with .NET Framework 2.0 it shows the following error:-
This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem.
I have managed to work around this problem by changing the Manifest property under Project Properties > Application to Create application without a manifest; the default value being Embed manifest with default settings.
This has created a new problem as whenever I try to Open a Registry Key the application throws the following exception:-
Request for the permission of type 'System.Securit y.Permissions.R egistryPermissi on, mscorlib, Version=2.0.0.0 , Culture=neutral , PublicKeyToken= b77a5c561934e08 9' failed.
Given below is the code I used to Open a Key.
Microsoft.Win32 .Registry.Curre ntUser.OpenSubK ey("Softawre\\M icrosoft");
I am at a loss on how to get around this problem while still using VS 2008. Please help!
Partho.
This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem.
I have managed to work around this problem by changing the Manifest property under Project Properties > Application to Create application without a manifest; the default value being Embed manifest with default settings.
This has created a new problem as whenever I try to Open a Registry Key the application throws the following exception:-
Request for the permission of type 'System.Securit y.Permissions.R egistryPermissi on, mscorlib, Version=2.0.0.0 , Culture=neutral , PublicKeyToken= b77a5c561934e08 9' failed.
Given below is the code I used to Open a Key.
Microsoft.Win32 .Registry.Curre ntUser.OpenSubK ey("Softawre\\M icrosoft");
I am at a loss on how to get around this problem while still using VS 2008. Please help!
Partho.
Comment