An unhandled exception has occured

Help and support regarding PR:BF2 installation and in-game issues
Post Reply
nikitap90
Posts: 3
Joined: 2014-12-18 18:30

An unhandled exception has occured

Post by nikitap90 »

Code: Select all

> System.NullReferenceException:
   в  . .()
   в Reality.BF2.Settings.Video.(String )
   в System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()
   в System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source)
   в Reality.BF2.Settings.Video.GetDefaultResolution()
   в Reality.BF2.Settings.Video.CreateDefault(UInt16 profile)
   в PRLauncher.App.()
   в PRLauncher.App.OnStartup(StartupEventArgs )
   в 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)
Hello there! Had a problem starting PR2. It would be great if u could help me) thx
LITOralis.nMd
Retired PR Developer
Posts: 5658
Joined: 2010-04-10 16:15

Re: An unhandled exception has occured

Post by LITOralis.nMd »

try these:
[R-COM]LITOralis.nMd wrote:Hiya,
Go to MyDocuments\ProjectReality

Rename the \Profiles directory to \ProfilesBackup

GO to D:\Program Files (x86)\EA GAMES\Battlefield 2\
Run PRBF2.exe once.

PR will sorta start, you'll get to main screeen and it will say "You must use launcher". Close PR.

Run PRLauncher.exe , go to options->Pick your online profile from top menu->Video Tab-> check that your resolution and other options are set correctly. Change if needed. Click Apply.

Go back to main PRlauncher window, click Play.
[R-COM]LITOralis.nMd wrote:Here are the other three ways to do this,

moving the video.con file from Profiles\0001 to Profiles\Default is the most usual solution in my experience:
[R-COM]LITOralis.nMd wrote:Your video.con file for your new profile was corrupted/deleted/etc.

Three ways to fix this:

Option 1:
GO to Documents\ProjectReality.old\Profiles\0001 and copy your VIDEO.CON file.
Go to Documents\ProjectReality\Profiles\0001 and paste the VIDEO.CON file.

Start PR and test.

Option 2:
Start PRlauncher,
Click Options
In the top white box, select your new profile
Select the Video Tab,

Change your display resolution , graphics quality and Anti-aliasing to suit your system,

CLICK APPLY.

test PR.

Option 3:
If that fails,
try this:
Start PRlauncher,
Click Options
In the top white box, select your new profile
Click the RESET ALL PROFILES button on bottom left.
CLICK APPLY.
test PR.
nikitap90
Posts: 3
Joined: 2014-12-18 18:30

Re: An unhandled exception has occured

Post by nikitap90 »

Cool) it helped:
Originally Posted by [R-COM]LITOralis.nMd View Post
Hiya,
Go to MyDocuments\ProjectReality

Rename the \Profiles directory to \ProfilesBackup

GO to D:\Program Files (x86)\EA GAMES\Battlefield 2\
Run PRBF2.exe once.

PR will sorta start, you'll get to main screeen and it will say "You must use launcher". Close PR.

Run PRLauncher.exe , go to options->Pick your online profile from top menu->Video Tab-> check that your resolution and other options are set correctly. Change if needed. Click Apply.

Go back to main PRlauncher window, click Play.
But now i have another problem:
Image
LITOralis.nMd
Retired PR Developer
Posts: 5658
Joined: 2010-04-10 16:15

Re: An unhandled exception has occured

Post by LITOralis.nMd »

More often than not it's your Antivirus blocking PRBF2.exe and PRLauncher.exe and maybe PRMumble.exe

Create an exception in your antivirus for those three programs.

Kaspersky is known to do this every time. AVG does it most of the time.
nikitap90
Posts: 3
Joined: 2014-12-18 18:30

Re: An unhandled exception has occured

Post by nikitap90 »

[R-COM]LITOralis.nMd wrote:More often than not it's your Antivirus blocking PRBF2.exe and PRLauncher.exe and maybe PRMumble.exe

Create an exception in your antivirus for those three programs.

Kaspersky is known to do this every time. AVG does it most of the time.
I have ESET NOD32. Turned off all the screens but it did not helped... any ideas?
LITOralis.nMd
Retired PR Developer
Posts: 5658
Joined: 2010-04-10 16:15

Re: An unhandled exception has occured

Post by LITOralis.nMd »

Besides what I suggested above, Here's every known fix for your 1301 problem:

https://www.realitymod.com/forum/f27-pr ... 301-a.html

1. restart your PC.
2. run PRLauncher.exe as an administrator
3. give an ESET and firewall exception to the entire BF2 directory
4. unplug any USB headset/headphones/speakers/microphone before starting PRLauncher, run PRlauncher as admin.
5. Install .NEt 4.5.X , and/or Run the .NET 4 (or 4.5.x) repair tool
6. change DNS server to google public DNS server (8.8.4.4)
7. DISABLE IPv6
8. Turn off router's internal parental control and firewall features.
9. Completely turn off firewall, try PRLauncher->Hover over Play button, select "Check for Updates" button.
10. Reinstall PR.
Last edited by LITOralis.nMd on 2014-12-19 19:34, edited 2 times in total.
Post Reply

Return to “PR:BF2 Support”