Register for your free account! | Forgot your password?

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

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

Advertisement



SubSonic Database Error

Discussion on SubSonic Database Error within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
shadowman123's Avatar
 
elite*gold: 0
Join Date: Aug 2007
Posts: 1,525
Received Thanks: 230
Question SubSonic Database Error

well i tried to Load value from Database using SubSonice Read method but it gave me an Error which is :-

PHP Code:
ArgumentException was unhandled
There
's no column called 'superboss' for this object
Parameter name: columnName 
but Actually There is Column Named superboss in Database and was Written Correctly

Reading Code
PHP Code:
mf.SuperBossVariable monsters[x].SuperBoss
SuperBoss Property
PHP Code:
[XmlAttribute("SuperBoss")]
[
Bindable(true)]
public 
uint SuperBoss
{
 
get { return GetColumnValue<uint>(Columns.SuperBoss); }
 
set SetColumnValue(Columns.SuperBossvalue); }

SuperBoss string Field
PHP Code:
public static string SuperBoss = @"superboss"
PHP Code:
public static TableSchema.TableColumn superboss
        
{
            
get { return Schema.Columns[48]; }
        } 
The Column Named superboss inside Database


whats wrong ? And what should i do to Fix this Problem i've Tried Alot

Regards
shadowman123
shadowman123 is offline  
Old 08/17/2013, 00:08   #2
 
elite*gold: 0
Join Date: Feb 2009
Posts: 262
Received Thanks: 161
you add the column?
TableSchema.TableColumn colvarSuperBoss = new TableSchema.TableColumn(schema);
......
teroareboss1 is offline  
Old 08/17/2013, 00:08   #3
 
abdoumatrix's Avatar
 
elite*gold: 0
Join Date: Jul 2008
Posts: 874
Received Thanks: 239
i don't have much exp. in it
but when i checked a file. i released if i wanna add a new coloum i will add it at this.
PHP Code:
#region Columns Struct
        
public struct Columns
        
{
            public static 
string Id = @"id"

PHP Code:
#region Typed Columns


        
public static TableSchema.TableColumn IdColumn
        
{
            
get { return Schema.Columns[0]; }
        } 

PHP Code:
 #region Props

        
[XmlAttribute("Id")]
        [
Bindable(true)]
        public 
int Id
        
{
            
get { return GetColumnValue<int>(Columns.Id); }
            
set SetColumnValue(Columns.Idvalue); }
        } 
PHP Code:
   private static void GetTableSchema()
        {
            if (!
IsSchemaInitialized)
            {
                
//Schema declaration
                
TableSchema.Table schema = new TableSchema.Table("monsterinfos"TableType.TableDataService.GetInstance("Conquer_Server"));
                
schema.Columns = new TableSchema.TableColumnCollection();
                
schema.SchemaName = @"";
                
//columns

                
TableSchema.TableColumn colvarId = new TableSchema.TableColumn(schema);
                
colvarId.ColumnName "id";
                
colvarId.DataType DbType.Int32;
                
colvarId.MaxLength 0;
                
colvarId.AutoIncrement false;
                
colvarId.IsNullable false;
                
colvarId.IsPrimaryKey true;
                
colvarId.IsForeignKey false;
                
colvarId.IsReadOnly false;
                
colvarId.DefaultSetting = @"";
                
colvarId.ForeignKeyTableName "";
                
schema.Columns.Add(colvarId); 


wish if i could help more.
abdoumatrix is offline  
Old 08/17/2013, 00:40   #4
 
shadowman123's Avatar
 
elite*gold: 0
Join Date: Aug 2007
Posts: 1,525
Received Thanks: 230
well After i Added Table Column using the Following codes i Received An Error
PHP Code:
TableSchema.TableColumn colvarSuperBoss = new TableSchema.TableColumn(schema);
colvarOwnitemrate.ColumnName "superboss";
colvarOwnitemrate.DataType DbType.UInt32;
colvarOwnitemrate.MaxLength 0;
colvarOwnitemrate.AutoIncrement false;
colvarOwnitemrate.IsNullable true;
colvarOwnitemrate.IsPrimaryKey false;
colvarOwnitemrate.IsForeignKey false;
colvarOwnitemrate.IsReadOnly true;
colvarOwnitemrate.DefaultSetting = @"";
colvarOwnitemrate.ForeignKeyTableName "";
schema.Columns.Add(colvarSuperBoss); 
Error
PHP Code:
TargetInvocationException was unhandled
Exception has been thrown by the target of an invocation

WTF Should i do .it annoys me
shadowman123 is offline  
Old 08/17/2013, 01:55   #5
 
elite*gold: 0
Join Date: Feb 2009
Posts: 262
Received Thanks: 161
be careful.
read again
you schema is colvarSuperBoss
you use colvarOwnitemrate

TableSchema.TableColumn colvarSuperBoss = new TableSchema.TableColumn(schema);
colvarOwnitemrate.ColumnName = "superboss";
colvarOwnitemrate.DataType = DbType.UInt32;
colvarOwnitemrate.MaxLength = 0;
colvarOwnitemrate.AutoIncrement = false;
colvarOwnitemrate.IsNullable = true;
colvarOwnitemrate.IsPrimaryKey = false;
colvarOwnitemrate.IsForeignKey = false;
colvarOwnitemrate.IsReadOnly = true;
colvarOwnitemrate.DefaultSetting = @"";
colvarOwnitemrate.ForeignKeyTableName = "";
schema.Columns.Add(colvarSuperBoss);
teroareboss1 is offline  
Thanks
3 Users
Old 08/17/2013, 10:16   #6
 
shadowman123's Avatar
 
elite*gold: 0
Join Date: Aug 2007
Posts: 1,525
Received Thanks: 230
oh my bad its weird i havent noticed that anyways thx alot
shadowman123 is offline  
Reply


Similar Threads Similar Threads
Tpg-1 master oder dsr1 subsonic
05/06/2012 - Combat Arms - 6 Replies
hey ich hab eine dsr1 subsonic und eine Tpg-1 master und noch 3 renewall kits und jetzt steh ich vor der frage welche sniper? weil in nächster zeit ich nichts ins spiel reinstecke wer nett wenn mir jemand sagen könnte welche ihr nehmen würdet
Database.exe error
08/09/2011 - Flyff Private Server - 1 Replies
Hey guys i have a little prob> I have folowed all Sedrika steps on setting up a flyff server,every think worked perfectly but when i tryed to start database.exe this error apeard :( I have done all ODBC settings and ini changes+sql database Folowed this tut exactly->http://www.elitepvpers.com/forum/flyff -pserver-discussions-questions/545878-tut-einricht en-der-v15-offi-files.html And got the server files from...
Database Error!
03/06/2011 - Flyff Private Server - 10 Replies
Also meine Fehlermeldung schon den ganzen Tag:confused::confused::confused: FAIL der Datenbase Habe alles Doppelt Ausgeführt meine ODBC zum 3. mal neu gebatcht. Ich komm einfach nicht mehr Klar! Habe auch den richtigen Pfad für Resource Angegeben... Bitte helft mir
Dsr-1 Subsonic oder M416 CQB
09/20/2010 - Combat Arms - 19 Replies
Hey, Community Ich habe Halt Wieder Mit CA Angefangen und wollte Wissen Welche waffe ihr Perm Kaufen Würdet ... Ich hab 30,000 NX Und Wollte Fragen Ob Ihr Euch DSR-1 Subsonic Oder M416 CQB Perm Kaufen Würdet Bitte Antwortet
[Help] SQL Error with DataBase
10/29/2009 - Aion - 0 Replies
Hey im working on my Server and i think i have everything working but when i run the Sql to add my database to navicat it says there is an error :( If someone can help me add me on msn please and thank you. [email protected]



All times are GMT +1. The time now is 20:01.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

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