Page 1 of 1

Unhandled exception starting launcher ( .Net Framework Updated Required )

Posted: 2013-08-06 00:02
by camacazi
Every time I try to start up the launcher I get an unhandled exception error:

Code: Select all

Project Reality Log File
PRLauncher.exe started at: 2013-08-05T17:02:55

Critical Error: An unhandled exception has occured. Details are as follows:

Provide value on 'System.Windows.Baml2006.TypeConverterMarkupExtension' threw an exception.

Further details can be found in the following file:

[url]C:\Program Files (x86)\EA GAMES\Battlefield 2\mods\pr\bin\PRLauncher.log[/url]

Please report this error to the Project Reality Team, and include the log file in your report.

[url=https://www.realitymod.com/forum/f27-pr-bf2-support]Visit Support Forum[/url]

 > System.Windows.Markup.XamlParseException: Provide value on 'System.Windows.Baml2006.TypeConverterMarkupExtension' threw an exception. ---> System.BadImageFormatException: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)
   at MS.Win32.PresentationCore.UnsafeNativeMethods.WICCodec.CreateColorTransform(BitmapSourceSafeMILHandle& ppWICColorTransform)
   at System.Windows.Media.Imaging.ColorConvertedBitmap.FinalizeCreation()
   at System.Windows.Media.Imaging.ColorConvertedBitmap..ctor(BitmapSource source, ColorContext sourceColorContext, ColorContext destinationColorContext, PixelFormat format)
   at System.Windows.Media.Imaging.BitmapSource.CreateCachedBitmap(BitmapFrame frame, BitmapSourceSafeMILHandle wicSource, BitmapCreateOptions createOptions, BitmapCacheOption cacheOption, BitmapPalette palette)
   at System.Windows.Media.Imaging.BitmapFrameDecode.FinalizeCreation()
   at System.Windows.Media.Imaging.BitmapDecoder.SetupFrames(BitmapDecoder decoder, ReadOnlyCollection`1 frames)
   at System.Windows.Media.Imaging.BitmapDecoder.get_Frames()
   at System.Windows.Media.Imaging.BitmapFrame.CreateFromUriOrStream(Uri baseUri, Uri uri, Stream stream, BitmapCreateOptions createOptions, BitmapCacheOption cacheOption, RequestCachePolicy uriCachePolicy)
   at System.Windows.Media.ImageSourceConverter.ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, Object value)
   at MS.Internal.Xaml.Runtime.ClrObjectRuntime.CallProvideValue(MarkupExtension me, IServiceProvider serviceProvider)
   --- End of inner exception stack trace ---
   at System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)
   at System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel, Uri baseUri)
   at System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream)
   at PRLauncher.WPF.View.MainWindow..ctor()
   at PRLauncher.App.OnStartup(StartupEventArgs )
   at System.Windows.Application.<.ctor>b__1(Object unused)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
Running Windows 7 Pro and I just can't seem to find a way to get it to work.

Re: Unhandled exception starting launcher

Posted: 2013-08-06 00:26
by LITOralis.nMd
Go to bf2\mods\pr\bin\PRLauncher.exe
right click
Properties
Compatibility ->set to winXP SP3. Do NOT set as admin. Test.

If that doesn't work, try
Compatibility ->set to win 7. Do NOT set as admin. Test.

Re: Unhandled exception starting launcher

Posted: 2013-08-06 01:10
by camacazi
Looked in the compatibility and didnt see anything for Win XP. Just Win server 2008, vista, and win 7. Tried all of them and tried it without compatibility selected. None of them worked.

Re: Unhandled exception starting launcher

Posted: 2013-08-06 01:26
by SAM609
Do you have all the latest version of .NET Frameworks in your OS ??!
Try Repair/Reinstalling all of them !!

Re: Unhandled exception starting launcher

Posted: 2013-08-06 01:44
by camacazi
SAM609 wrote:Do you have all the latest version of .NET Frameworks in your OS ??!
Try Repair/Reinstalling all of them !!
I have the latest version and I tried repairing what I could prior to posting this thread. So still no luck :/ Any idea as to why I can only pick a limited amount of options for compatibility on the launcher? Running the game through PRBF2.exe works just fine but of course you need the launcher running.

Re: Unhandled exception starting launcher

Posted: 2013-08-06 02:22
by LITOralis.nMd
Are you running as an admin?

Re: Unhandled exception starting launcher

Posted: 2013-08-06 02:34
by camacazi
No. The user I'm using has admin permissions but I have it set to not run as an admin.

Re: Unhandled exception starting launcher

Posted: 2013-08-06 10:33
by SAM609
Same error in other program >> 'System.Windows.Baml2006.TypeConverterMarkupExtension'
in his case it turned out to be a conflict with another program that caused the problem !
Are you using GameBooster ??!

Re: Unhandled exception starting launcher

Posted: 2013-08-06 10:43
by AncientMan
No, the error is:

System.BadImageFormatException: An attempt was made to load a program with an incorrect format.

Which is an issue with 32bit/64bit. How did you install PR and what is your operating system (32bit or 64bit)?

Re: Unhandled exception starting launcher

Posted: 2013-08-06 15:06
by camacazi
Im running on 64bit and I installed PR by mounting the ISO using Daemon tools from the torrent. Its installed with BF2 (obviously) in the (x86) program files. And I'm not using any other programs that would cause a problem I think.

Re: Unhandled exception starting launcher

Posted: 2013-08-06 23:53
by camacazi
I got it to work. Just needed some security updates for .net and it works just fine now.

Re: Unhandled exception starting launcher ( .Net Framework Updated Required )

Posted: 2013-08-07 09:54
by SAM609
Good to hear it finally worked !
See you in the Battlefield ! ;)

Cheers
SAM