ok i've solved this problem, and now i've new one...
this is the message:
-------------------------------
System.MethodAccessException: iBatisTutorial.Person..ctor()
   in CreateImplementation(Object[] )
   in IBatisNet.Common.Utilities.Objects.DelegateFactory.Create.Invoke(Object[]
parameters)
   in IBatisNet.Common.Utilities.Objects.DelegateFactory.CreateInstance(Object[]
parameters)
   in
IBatisNet.DataMapper.Configuration.ResultMapping.AutoResultMap.CreateInstanceOfResultClass
()
   in
IBatisNet.DataMapper.MappedStatements.ResultStrategy.AutoMapStrategy.Process(RequestScope
request, IDataReader& reader, Object resultObject)
   in
IBatisNet.DataMapper.MappedStatements.ResultStrategy.ResultClassStrategy.Process(RequestScope
request, IDataReader& reader, Object resultObject)
   in
IBatisNet.DataMapper.MappedStatements.MappedStatement.RunQueryForObject(RequestScope
request, ISqlMapSession session, Object parameterObject, Object
resultObject)
   in
IBatisNet.DataMapper.MappedStatements.MappedStatement.ExecuteQueryForObject(ISqlMapSession
session, Object parameterObject, Object resultObject)
   in
IBatisNet.DataMapper.MappedStatements.MappedStatement.ExecuteQueryForObject(ISqlMapSession
session, Object parameterObject)
   in IBatisNet.DataMapper.SqlMapper.QueryForObject(String statementName,
Object parameterObject)
   in iBatisTutorial.Form1.button1_Click(Object sender, EventArgs e) in
C:\Documents and Settings\Serlab05\Documenti\Visual Studio
2005\Projects\iBatisTutorial\iBatisTutorial\Form1.cs:riga 41


ideas?
thanks!!!!
byeeeeeeeeeeezzzzzzzzzzzzzzzzzzzzzzz

2007/12/12, Clyde Coolidge <[EMAIL PROTECTED]>:
>
> If you suspect it's the MySQL connector, why not try using the basic ODBC
> connector (http://www.mysql.com/products/connector/odbc/) to narrow down
> the problem?
>
> On Dec 12, 2007 3:47 PM, Clough, Samuel (USPC.PRG.Atlanta) <
> [EMAIL PROTECTED]> wrote:
>
> >   I don't know as I don't use MySQL with iBatis (off hand I'd say
> > whatever's offered at their website should be solid).
> >
> >
> >
> > You might want to check your logs.  There's probably a reason MySQL
> > dropped the connection on you.
> >
> >
> >
> > *From:* Giovanni D'Addabbo [mailto:[EMAIL PROTECTED]
> > *Sent:* Wednesday, December 12, 2007 10:10 AM
> > *To:* [email protected]
> > *Subject:* mysql connector error
> >
> >
> >
> > hi all
> > i've do a simple example of ibatis mapping application...so mapping work
> > correctly but now i've this problem:
> >
> > IBatisNet.DataMapper.Exceptions.DataMapperException: Unable to open
> > connection to "MySQL, MySQL provider 5.0.8.1". --->
> > MySql.Data.MySqlClient.MySqlException: Connection unexpectedly
> > terminated.
> >    in MySql.Data.MySqlClient.MySqlStream.LoadPacket()
> >    in MySql.Data.MySqlClient.MySqlStream.OpenPacket ()
> >    in MySql.Data.MySqlClient.NativeDriver.Open()
> >    in MySql.Data.MySqlClient.MySqlPool.GetPooledConnection()
> >    in MySql.Data.MySqlClient.MySqlPool.GetConnection()
> >    in MySql.Data.MySqlClient.MySqlConnection.Open ()
> >    in IBatisNet.DataMapper.SqlMapSession.OpenConnection(String
> > connectionString)
> >    --- Fine dell'analisi dello stack dell'eccezione interna ---
> >    in IBatisNet.DataMapper.SqlMapSession.OpenConnection(String
> > connectionString)
> >    in IBatisNet.DataMapper.SqlMapSession.OpenConnection()
> >    in
> > IBatisNet.DataMapper.Commands.DbCommandDecorator.System.Data.IDbCommand.ExecuteReader
> > ()
> >    in
> > IBatisNet.DataMapper.MappedStatements.MappedStatement.RunQueryForObject[T](RequestScope
> >  request, ISqlMapSession session, Object parameterObject, T
> > resultObject)
> >    in
> > IBatisNet.DataMapper.MappedStatements.MappedStatement.ExecuteQueryForObject[T](ISqlMapSession
> > session, Object parameterObject, T resultObject)
> >    in
> > IBatisNet.DataMapper.MappedStatements.MappedStatement.ExecuteQueryForObject[T](ISqlMapSession
> > session, Object parameterObject)
> >    in IBatisNet.DataMapper.SqlMapper.QueryForObject[T](String
> > statementName, Object parameterObject)
> >    in iBatisTutorial.Form1.button1_Click(Object sender, EventArgs e) in
> > C:\Documents and Settings\Serlab05\Documenti\Visual Studio
> > 2005\Projects\iBatisTutorial\iBatisTutorial\Form1.cs:riga 30
> >
> > in other words...i've problem with mysql connector...
> > i use c# + .net framework 2.0
> > where can i find a good mysql connector for .NET 2.0 framework?
> > thanks!
> > --
> > Giovanni D'Addabbo
> > UIN: 22490534
> >
>
>


-- 
Giovanni D'Addabbo
UIN: 22490534

Reply via email to