When the user is an administrator, the application runs well. But when the user is a standard user the application crashes on startup .
I got the exception information use code from .NET application cannot start and receive XamlParseException
I am using VS2010 and .Net 4.0.
Event Log:
Exception Info:
System.Windows.Markup.XamlParseException Stack:
at System.Windows.Markup.WpfXamlLoader.Load(System.Xaml.XamlReader, System.Xaml.IXamlObjectWriterFactory, Boolean, System.Object, System.Xaml.XamlObjectWriterSettings, System.Uri)
at System.Windows.Markup.WpfXamlLoader.LoadBaml(System.Xaml.XamlReader, Boolean, System.Object, System.Xaml.Permissions.XamlAccessLevel, System.Uri)
at System.Windows.Markup.XamlReader.LoadBaml(System.IO.Stream, System.Windows.Markup.ParserContext, System.Object, Boolean)
at System.Windows.Application.LoadComponent(System.Object, System.Uri)
at MyApp.MainWindow.InitializeComponent()
at MyApp.MainWindow..ctor()
at MyApp.App.Main(System.String[])
update:
I create a default WPF application without any change. it still crash.