Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server
You last visited: Today at 23:05

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Nullreferenceexception

Discussion on Nullreferenceexception within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
killersub's Avatar
 
elite*gold: 0
Join Date: May 2009
Posts: 884
Received Thanks: 211
Nullreferenceexception

Alright i'm getting these errors on nobility. I never had these errors before but the error reads this line in MySqlReader.cs
Code:
 private MySqlConnection _conn = new MySqlConnection(ConnectionString);
that line never had errors for me. Can someone please explain this exception to me and give me tips on how to fix it.

I would appreciate it ever so much (:.
killersub is offline  
Old 10/06/2011, 23:36   #2
 
elite*gold: 0
Join Date: May 2011
Posts: 1,769
Received Thanks: 756
ConnectionString is most likely null.

Use
Code:
if (string.IsEmptyOrNull(ConnectionString))
return;
BaussHacker is offline  
Thanks
1 User
Old 10/07/2011, 03:59   #3
 
killersub's Avatar
 
elite*gold: 0
Join Date: May 2009
Posts: 884
Received Thanks: 211
Quote:
Originally Posted by BaussHacker View Post
ConnectionString is most likely null.

Use
Code:
if (string.IsEmptyOrNull(ConnectionString))
return;
I forgot to mention I have this on top
Code:
public MySqlDataReader = null
Btw the "IsEmptyOrNull" is not found anywhere in my c# express solution :/

Quote:
Originally Posted by BaussHacker View Post
ConnectionString is most likely null.

Use
[code]
if (string.IsEmptyOrNull(ConnectionString))
Nvm I fixed it already but since that fix it gave me a side error loading char stats.

Code:
could not load type 'server.extensions' from assembly 'server, version 1, because the method ToArray has no implementation <no RVA>. At server.shops.load<>'
killersub is offline  
Old 10/07/2011, 07:08   #4
 
elite*gold: 0
Join Date: May 2011
Posts: 1,769
Received Thanks: 756
My bad. It's NullOrEmpty ><
BaussHacker is offline  
Old 10/07/2011, 19:40   #5
 
killersub's Avatar
 
elite*gold: 0
Join Date: May 2009
Posts: 884
Received Thanks: 211
Nvm I fixed it already but since that fix it gave me a side error loading char stats.

Code:
could not load type 'server.extensions' from assembly 'server, version 1, because the method ToArray has no implementation <no RVA>. At server.shops.load<>'
killersub is offline  
Reply


Similar Threads Similar Threads
NullReferenceException
03/21/2011 - CO2 Programming - 12 Replies
Alright, This Damn Exception annoys me as fuck , and I've got No Idea why. I Believe I'm missing something.. Can somebody remind me what is it? I know It's un-pro question but ermm... here we go. http://i989.photobucket.com/albums/af15/RockArch/ Untitled.png?t=1300203698
[Visual Basic 2010]System.NullReferenceException
02/13/2011 - .NET Languages - 3 Replies
Hallo Elitepvpers, ich hoffe ich bin hier am richtigen Platz, also ich hab einen Emulator versucht zuverbessern aber es kommt dieser Fehler: System.NullReferenceException: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
[VB 2008] "System.NullReferenceException wurde nicht behandelt"
12/30/2009 - .NET Languages - 9 Replies
Und der Fehler passiert in der Zeile: Sub _Anmelden() WebBrowser1.Document.GetElementById("user&qu ot;).InnerText = TextBox2.Text .......... .......... .......... .......... End Sub
[Help]NullReferenceException
11/23/2008 - CO2 Private Server - 3 Replies
Ok... Well first off, I feel like an idiot fot not knowing what to do here. But I'm completely lost, so if somene could point me in the right direction, I'd appreciate it. Seems this is completely random, sometimes it will occur after 30 minutes, sometimes the server can run for hours without an issue. But occasionally this kicks in, and everything freezes. The code effected is... if (Charr.MyClient.Online) if (MyMath.CanSee(Attacked.LocX,...



All times are GMT +2. The time now is 23:05.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.