ArgumentException: Type 'System.Object' cannot be marshaled

70 views
Skip to first unread message

Muriel Lima

unread,
Sep 13, 2013, 2:16:34 PM9/13/13
to gug-sa...@googlegroups.com
Olá pessoal boa tarde.

Estou tentando publicar meu aplicativo web c# com MySQL na KingHost.
Porem é exibido um erro... Alguém sabe oq pode ser?

Server Error in '/flox' Application.

Type 'System.Object' cannot be marshaled as an unmanaged structure; no meaningful size or offset can be computed.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.ArgumentException: Type 'System.Object' cannot be marshaled as an unmanaged structure; no meaningful size or offset can be computed.

Source Error: 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace: 

[ArgumentException: Type 'System.Object' cannot be marshaled as an unmanaged structure; no meaningful size or offset can be computed.]
   System.Runtime.InteropServices.Marshal.SizeOfHelper(Type t, Boolean throwIfNotMarshalable) +0
   System.Runtime.InteropServices.Marshal.SizeOf(Type t) +90
   MySQLDriverCS.MYSQL_BIND_32.InitForBind(IMYSQL_FIELD fieldMetadata) +149
   MySQLDriverCS.MySQLCursorDataReader32..ctor(UInt32 fieldCount, IntPtr stmt, MySQLConnection _connection, Statement _stmt, Boolean CloseConnection) +464
   MySQLDriverCS.MySQLCursorDataReader.GetInstance(UInt32 fieldCount, IntPtr stmt, MySQLConnection _connection, Statement _stmt, Boolean CloseConnection) +93
   MySQLDriverCS.PreparedStatement.ExecuteReader(Boolean CloseConnection) +118
   MySQLDriverCS.MySQLCommand.ExecuteReader(Boolean CloseConnection) +74
   MySQLDriverCS.MySQLCommand.ExecuteDbDataReader(CommandBehavior behavior) +15
   System.Data.Common.DbCommand.ExecuteReader() +12
   GeneXus.Data.GxMySQLCursorDataReader..ctor(IGxConnectionManager connManager, GxDataRecord dr, IGxConnection connection, GxParameterCollection parameters, String stmt, Int32 fetchSize, Boolean forFirst, Int32 handle, Boolean cached, SlidingTime expiration, Boolean hasNested, Boolean dynStmt) +302
   GeneXus.Data.GxMySql.GetDataReader(IGxConnectionManager connManager, IGxConnection con, GxParameterCollection parameters, String stmt, UInt16 fetchSize, Boolean forFirst, Int32 handle, Boolean cached, SlidingTime expiration, Boolean hasNested, Boolean dynStmt) +355
   GeneXus.Data.ADO.GxCommand.ExecuteReader() +960

[GxADODataException: Type 'System.Object' cannot be marshaled as an unmanaged structure; no meaningful size or offset can be computed.]
   GeneXus.Data.ADO.GxCommand.ExecuteReader() +1039
   GeneXus.Data.ADO.GxCommand.FetchData(IDataReader& dr) +92

[GxADODataException: Type 'System.Object' cannot be marshaled as an unmanaged structure; no meaningful size or offset can be computed.Type 'System.Object' cannot be marshaled as an unmanaged structure; no meaningful size or offset can be computed.]
   GeneXus.Data.ADO.GxCommand.FetchData(IDataReader& dr) +495
   GeneXus.Data.NTier.ADO.ForEachCursor.execute() +212
   GeneXus.Data.NTier.DataStoreProvider.execute(Int32 cursor, Object[] parms, Boolean batch) +614
   GeneXus.Data.NTier.DataStoreProvider.execute(Int32 cursor, Object[] parms) +11
   GeneXus.Programs.verificaacesso.executePrivate() +81
   GeneXus.Programs.verificaacesso.execute(Int16& aP0_UsuarioCodigo, String& aP1_NomePrograma, Int16& aP2_Erro) +57
   GeneXus.Programs.home.E11082() +226
   GeneXus.Programs.home.STRUP080() +52
   GeneXus.Programs.home.START082() +259
   GeneXus.Programs.home.ExecuteStartEvent() +89
   GeneXus.Programs.workwithplusmasterpage.START042() +187
   GeneXus.Programs.workwithplusmasterpage.webExecute() +386
   GeneXus.Programs.home.webExecute() +262
   GeneXus.Http.GXHttpHandler.ProcessRequest(HttpContext httpContext) +295

[Exception: GXApplication exception]
   GeneXus.Http.GXHttpHandler.ProcessRequest(HttpContext httpContext) +414
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +100
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75

Bruno Tavares

unread,
Sep 16, 2013, 9:31:07 AM9/16/13
to gug-sa...@googlegroups.com
Bom dia!

Tente verificar se a conexão ao MySQL está correta.

Outro teste, suba apenas uma web panel com apenas texto e veja se consegue acessar. Se acessar, significa que realmente o problema é de conectividade ao banco de dados.

Abr,
Bruno
Reply all
Reply to author
Forward
0 new messages