Unhandled Exception when creating/retrieving a profile

Help and support regarding PR:BF2 installation and in-game issues
Post Reply
SysGabriel
Posts: 4
Joined: 2021-04-02 19:38

Unhandled Exception when creating/retrieving a profile

Post by SysGabriel »

Soo... I tried to play today and I had problems with my profile, I tried the usual mentioned on the forums and didn't work, so I decided to reinstall the game. And after the update 1.6.5.* I got this problem. I tried the usual again few times and I lost hope after the fifth try.

Can anyone help me?

Code: Select all

Project Reality Log File
PRLauncher.exe started at: 2021-04-02T16:34:36

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

Não foi possível localizar o arquivo 'C:\Users\sysga\Documents\ProjectReality\Profiles\0003'.

Further details can be found in the following file:

[url]C:\Program Files (x86)\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.

[url=https://www.realitymod.com/forum/forumdisplay.php?f=27]Visit Support Forum[/url]

 > System.IO.FileNotFoundException: Não foi possível localizar o arquivo 'C:\Users\sysga\Documents\ProjectReality\Profiles\0003'.
Nome do arquivo: 'C:\Users\sysga\Documents\ProjectReality\Profiles\0003'
   em System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   em System.IO.Directory.InternalCreateDirectory(String fullPath, String path, Object dirSecurityObj, Boolean checkHost)
   em System.IO.Directory.InternalCreateDirectoryHelper(String path, Boolean checkHost)
   em Reality.BF2.Accounts.ProfileManager.(String , ProfileType , UInt16 )
   em Reality.BF2.Accounts.ProfileManager.CreateLocalOfflineProfile(String , LocalProfile& )
   em PRLauncher.WPF.ViewModel.Pages.CreateProfilePageViewModel.a()
   em PRLauncher.WPF.ViewModel.Pages.CreateProfilePageViewModel.c.MoveNext()
--- Fim do rastreamento de pilha do local anterior onde a exceção foi gerada ---
   em System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   em System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   em System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
AlonTavor
PR:BF2 Developer
Posts: 2991
Joined: 2009-08-10 18:58

Re: Unhandled Exception when creating/retrieving a profile

Post by AlonTavor »

Try deleting this folder:
C:\Users\sysga\Documents\ProjectReality\
SysGabriel
Posts: 4
Joined: 2021-04-02 19:38

Re: Unhandled Exception when creating/retrieving a profile

Post by SysGabriel »

AlonTavor wrote:Try deleting this folder:
I tried this few times, before and after the reinstallation
He tries to locate and return this error.

Code: Select all

Project Reality Log File
PRLauncher.exe started at: 2021-04-02T17:21:49

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

Não foi possível localizar o arquivo 'C:\Users\sysga\Documents\ProjectReality\Profiles'.

Further details can be found in the following file:

[url]C:\Program Files (x86)\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.

[url=https://www.realitymod.com/forum/forumdisplay.php?f=27]Visit Support Forum[/url]

 > System.IO.FileNotFoundException: Não foi possível localizar o arquivo 'C:\Users\sysga\Documents\ProjectReality\Profiles'.
Nome do arquivo: 'C:\Users\sysga\Documents\ProjectReality\Profiles'
   em System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   em System.IO.Directory.InternalCreateDirectory(String fullPath, String path, Object dirSecurityObj, Boolean checkHost)
   em System.IO.Directory.InternalCreateDirectoryHelper(String path, Boolean checkHost)
   em Reality.BF2.Settings.Global.CreateDefault()
   em -.f.a()
   em -.f.OnStartup(StartupEventArgs a)
   em System.Windows.Application.<.ctor>b__1_0(Object unused)
   em System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   em System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
AlonTavor
PR:BF2 Developer
Posts: 2991
Joined: 2009-08-10 18:58

Re: Unhandled Exception when creating/retrieving a profile

Post by AlonTavor »

The launcher does not have permissions to create the folder. Run as admin or blame your anti virus
SysGabriel
Posts: 4
Joined: 2021-04-02 19:38

Re: Unhandled Exception when creating/retrieving a profile

Post by SysGabriel »

AlonTavor wrote:The launcher does not have permissions to create the folder. Run as admin or blame your anti virus
Ok, I Stopped my AV and Executed the launcher again as Admin. Still the same error.

Code: Select all

Project Reality Log File
PRLauncher.exe started at: 2021-04-02T17:57:50

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

Não foi possível localizar o arquivo 'C:\Users\sysga\Documents\ProjectReality\Profiles'.

Further details can be found in the following file:

[url]C:\Program Files (x86)\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.

[url=https://www.realitymod.com/forum/forumdisplay.php?f=27]Visit Support Forum[/url]

 > System.IO.FileNotFoundException: Não foi possível localizar o arquivo 'C:\Users\sysga\Documents\ProjectReality\Profiles'.
Nome do arquivo: 'C:\Users\sysga\Documents\ProjectReality\Profiles'
   em System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   em System.IO.Directory.InternalCreateDirectory(String fullPath, String path, Object dirSecurityObj, Boolean checkHost)
   em System.IO.Directory.InternalCreateDirectoryHelper(String path, Boolean checkHost)
   em Reality.BF2.Settings.Global.CreateDefault()
   em -.f.a()
   em -.f.OnStartup(StartupEventArgs a)
   em System.Windows.Application.<.ctor>b__1_0(Object unused)
   em System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   em System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
AlonTavor
PR:BF2 Developer
Posts: 2991
Joined: 2009-08-10 18:58

Re: Unhandled Exception when creating/retrieving a profile

Post by AlonTavor »

Permission issues, I cannot help you with this.
If you can't solve it, make a new windows user that is admin and play there.
SysGabriel
Posts: 4
Joined: 2021-04-02 19:38

Re: Unhandled Exception when creating/retrieving a profile

Post by SysGabriel »

Just discovered the issue. For users who uses Windows Defender with ransomware protection, put an permission into your documents folder.

With this configuration active on Windows Defender, it'll sometimes block the PR updates and will block the directory modification and creation for any software, unless that specific folder has permission for change.

Take this note when using Windows 10.
AlonTavor wrote:Permission issues, I cannot help you with this.
If you can't solve it, make a new windows user that is admin and play there.
Thanks for your time [R-DEV]AlonTavor. I wasn't going to do a full look into windows defender if you didn't clarify it for me.

PS: I tried with the fresh user as you suggested and it didn't work, then I did a full look into windows defender ransomware protection.
Post Reply

Return to “PR:BF2 Support”