An unhandled exception has occured.

Help and support regarding PR:BF2 installation and in-game issues
Post Reply
RedzaImran08480
Posts: 3
Joined: 2020-05-11 22:44

An unhandled exception has occured.

Post by RedzaImran08480 »

My current laptop had died so in order to pass the time in quarantine, I decided to install it on my mid 2010 13" MacBook Pro in Windows 7 via Bootcamp.

When launching the game, I got a critical error.

'An unhandled exception has occured. Details are as follows:

Could not load file or assembly 'System.Threading.Tasks,
Version=1.5.11.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.
The system cannot find the file specified.'

What can I do to fix the error and get the game running?
AlonTavor
PR:BF2 Developer
Posts: 2991
Joined: 2009-08-10 18:58

Re: An unhandled exception has occured.

Post by AlonTavor »

Uninstall Microsoft .NET completely, then install it again.
RedzaImran08480
Posts: 3
Joined: 2020-05-11 22:44

Re: An unhandled exception has occured.

Post by RedzaImran08480 »

AlonTavor wrote:Uninstall Microsoft .NET completely, then install it again.
Thanks! It works properly now.
mobirem
Posts: 2
Joined: 2021-02-05 12:46

Re: An unhandled exception has occured.

Post by mobirem »

Can't start the game :(
I have Windows 7 (32), processor AMD Athlon II X2 250 3.01GHz, vodeo - NVIDIA GeForce 9600 GT


PRLauncher.exe started at: 2021-02-05T14:25:33

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

????? ?? ??????: "Int32 System.Runtime.InteropServices.Marshal.SizeOf(!!0)".

Further details can be found in the following file:

[url]C:\Program Files\Project Reality\Project Reality BF2\mods\pr\bin\PRLauncher.log[/url]

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

Visit Support Forum

> System.MissingMethodException: ????? ?? ??????: "Int32 System.Runtime.InteropServices.Marshal.SizeOf(!!0)".
? ??.?..()
? ??.?.()
? Reality.BF2.Settings.Video.GetDefaultResolution()
? Reality.BF2.Settings.Video.CreateDefault(UInt16 )
? -.f.a()
? -.f.OnStartup(StartupEventArgs a)
? System.Windows.Application.<.ctor>b__1(Object unused)
? System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
? MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
[/code]
User avatar
Suchar
PR:BF2 Lead Developer
Posts: 2177
Joined: 2016-10-12 13:25
Location: Poland

Re: An unhandled exception has occured.

Post by Suchar »

mobirem wrote:Can't start the game :(
I have Windows 7 (32), processor AMD Athlon II X2 250 3.01GHz, vodeo - NVIDIA GeForce 9600 GT


PRLauncher.exe started at: 2021-02-05T14:25:33

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

????? ?? ??????: "Int32 System.Runtime.InteropServices.Marshal.SizeOf(!!0)".

Further details can be found in the following file:

[url]C:\Program Files\Project Reality\Project Reality BF2\mods\pr\bin\PRLauncher.log[/url]

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

Visit Support Forum

> System.MissingMethodException: ????? ?? ??????: "Int32 System.Runtime.InteropServices.Marshal.SizeOf(!!0)".
? ??.?..()
? ??.?.()
? Reality.BF2.Settings.Video.GetDefaultResolution()
? Reality.BF2.Settings.Video.CreateDefault(UInt16 )
? -.f.a()
? -.f.OnStartup(StartupEventArgs a)
? System.Windows.Application.<.ctor>b__1(Object unused)
? System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
? MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
[/code]
This is completely unrelated to this thread.

Solutions for your issue can be found in many threads:

https://www.realitymod.com/forum/showth ... ost2209473

https://www.realitymod.com/forum/showth ... ost2208848

https://www.realitymod.com/forum/showth ... ost2208847

and the solution is: update .NET Framework to 4.6
Image
mobirem
Posts: 2
Joined: 2021-02-05 12:46

Re: An unhandled exception has occured.

Post by mobirem »

AlonTavor wrote:Uninstall Microsoft .NET completely, then install it again.
Suchar wrote:This is completely unrelated to this thread.

Solutions for your issue can be found in many threads:

https://www.realitymod.com/forum/showth ... ost2209473

https://www.realitymod.com/forum/showth ... ost2208848

https://www.realitymod.com/forum/showth ... ost2208847

and the solution is: update .NET Framework to 4.6

Thank you very much :wink:
Post Reply

Return to “PR:BF2 Support”