I Had This Windows Problem

Help and support regarding PR:BF2 installation and in-game issues
Post Reply
Pertamax
Posts: 5
Joined: 2023-04-07 13:37

I Had This Windows Problem

Post by Pertamax »

Hello guys so i had this windows problem like this anywone can help?


PRLauncher.exe started at: 2023-04-07T20:19:55

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

The type initializer for 'System.Windows.Automation.Peers.AutomationPeer' threw an exception.

Further details can be found in the following file:

[url]E:\project reality\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.TypeInitializationException: The type initializer for 'System.Windows.Automation.Peers.AutomationPeer' threw an exception. ---> System.BadImageFormatException: Could not load file or assembly 'UIAutomationProvider, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The module was expected to contain an assembly manifest.
at System.Windows.Automation.Peers.AutomationPeer.Initialize()
at System.Windows.Automation.Peers.AutomationPeer..cctor()
--- End of inner exception stack trace ---
at System.Windows.Automation.Peers.AutomationPeer.RaiseFocusChangedEventHelper(IInputElement newFocus)
at System.Windows.Input.KeyboardDevice.ChangeFocus(DependencyObject focus, Int32 timestamp)
at System.Windows.Input.KeyboardDevice.TryChangeFocus(DependencyObject newFocus, IKeyboardInputProvider keyboardInputProvider, Boolean askOld, Boolean askNew, Boolean forceToNullIfFailed)
at System.Windows.Input.KeyboardDevice.Focus(DependencyObject focus, Boolean askOld, Boolean askNew, Boolean forceToNullIfFailed)
at System.Windows.Input.KeyboardDevice.Focus(IInputElement element)
at System.Windows.Interop.HwndKeyboardInputProvider.OnSetFocus(IntPtr hwnd)
at System.Windows.Interop.HwndKeyboardInputProvider.FilterMessage(IntPtr hwnd, WindowMessage message, IntPtr wParam, IntPtr lParam, Boolean& handled)
at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
>> System.BadImageFormatException: Could not load file or assembly 'UIAutomationProvider, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The module was expected to contain an assembly manifest.
File name: 'UIAutomationProvider, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
at System.Windows.Automation.Peers.AutomationPeer.Initialize()
at System.Windows.Automation.Peers.AutomationPeer..cctor()
PvtNewb
Support Technician
Posts: 131
Joined: 2018-04-26 23:50

Re: I Had This Windows Problem

Post by PvtNewb »

Image
Pertamax
Posts: 5
Joined: 2023-04-07 13:37

Re: I Had This Windows Problem

Post by Pertamax »

sorry but it's said i already installed it
Imageimage ru
User avatar
Mats391
PR:BF2 Lead Developer
Posts: 7636
Joined: 2010-08-06 18:06

Re: I Had This Windows Problem

Post by Mats391 »

Please share your dxdiag info with us https://support.microsoft.com/en-us/win ... 92228dfd85
Image

Mineral: TIL that Wire-guided missiles actually use wire
Pertamax
Posts: 5
Joined: 2023-04-07 13:37

Re: I Had This Windows Problem

Post by Pertamax »

Mats391 wrote:Please share your dxdiag info with us https://support.microsoft.com/en-us/win ... 92228dfd85
here's my dxdiag info

Image

Image

Image[/IMG]

Image

Image
User avatar
Mats391
PR:BF2 Lead Developer
Posts: 7636
Joined: 2010-08-06 18:06

Re: I Had This Windows Problem

Post by Mats391 »

Did you do a fresh install of PR or copy some existing installation?
Image

Mineral: TIL that Wire-guided missiles actually use wire
Pertamax
Posts: 5
Joined: 2023-04-07 13:37

Re: I Had This Windows Problem

Post by Pertamax »

yeah from the fresh installation i'm download it using torrent is it possible if my files get corrupted?
Pertamax
Posts: 5
Joined: 2023-04-07 13:37

Re: I Had This Windows Problem

Post by Pertamax »

i'm actually already redownload the files and installed it again but the issue still poping up im really confused right now. i already chek everything microsoft net, visual, direct x all of the things that need to played but still not working also
User avatar
Mats391
PR:BF2 Lead Developer
Posts: 7636
Joined: 2010-08-06 18:06

Re: I Had This Windows Problem

Post by Mats391 »

Can you verify the UIAutomationProvider.dll exists and is correct? Just search for it on your boot drive where you installed windows (usually C:\).
Something is broken on your system.

You can also try this to repair your .net Framework and see if it helps: https://learn.microsoft.com/en-us/dotne ... all/repair
Lastly you can try downloading the latest .net Framework and install that: https://dotnet.microsoft.com/en-us/down ... -framework
Image

Mineral: TIL that Wire-guided missiles actually use wire
Post Reply

Return to “PR:BF2 Support”