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()
I Had This Windows Problem
-
- Support Technician
- Posts: 131
- Joined: 2018-04-26 23:50
Re: I Had This Windows Problem
Install dotnet 4.7.2 runtime https://dotnet.microsoft.com/en-us/download/dotnet-framework/net472

-
- Posts: 5
- Joined: 2023-04-07 13:37
- Mats391
- PR:BF2 Lead Developer
- Posts: 7636
- Joined: 2010-08-06 18:06
Re: I Had This Windows Problem
Please share your dxdiag info with us https://support.microsoft.com/en-us/win ... 92228dfd85

Mineral: TIL that Wire-guided missiles actually use wire
-
- Posts: 5
- Joined: 2023-04-07 13:37
Re: I Had This Windows Problem
here's my dxdiag infoMats391 wrote:Please share your dxdiag info with us https://support.microsoft.com/en-us/win ... 92228dfd85





- Mats391
- PR:BF2 Lead Developer
- Posts: 7636
- Joined: 2010-08-06 18:06
Re: I Had This Windows Problem
Did you do a fresh install of PR or copy some existing installation?

Mineral: TIL that Wire-guided missiles actually use wire
-
- Posts: 5
- Joined: 2023-04-07 13:37
Re: I Had This Windows Problem
yeah from the fresh installation i'm download it using torrent is it possible if my files get corrupted?
-
- Posts: 5
- Joined: 2023-04-07 13:37
Re: I Had This Windows Problem
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
- Mats391
- PR:BF2 Lead Developer
- Posts: 7636
- Joined: 2010-08-06 18:06
Re: I Had This Windows Problem
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
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

Mineral: TIL that Wire-guided missiles actually use wire