What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

Manicao

New Member
Joined
Mar 16, 2015
Messages
13
Reaction score
0
Out -> I understand you must be very busy but I have searched on google several hours and I didn't find nothing I doing wrong:

Code:
            try
            {
                var connectionString = "Data Source=(LocalDB)\\v11.0;AttachDbFilename=D:\\AB\\Plugins\\TEST\\Data\\testDB.mdf;Integrated Security=True;Connect Timeout=30;";

                using (var connection = new SqlConnection(connectionString))
                {
                    [B]connection.Open(); <--- AB crashes here[/B]
                       ......
Crash Message:
Code:
 Nome do Evento de Problema:	CLR20r3
  Assinatura do Problema 01:	13bfc960.exe
  Assinatura do Problema 02:	1.5.5.5
  Assinatura do Problema 03:	56066b22
  Assinatura do Problema 04:	mscorlib
  Assinatura do Problema 05:	4.0.30319.18408
  Assinatura do Problema 06:	52310b91
  Assinatura do Problema 07:	26db
  Assinatura do Problema 08:	0
  Assinatura do Problema 09:	System.AccessViolationException
  Versão do sistema operacional:	6.1.7601.2.1.0.256.1
  Identificação da Localidade:	1033
  Informações Adicionais 1:	0a9e
  Informações Adicionais 2:	0a9e372d3b4ad19135b953a78882e789
  Informações Adicionais 3:	0a9e
  Informações Adicionais 4:	0a9e372d3b4ad19135b953a78882e789

Compiling as application(.EXE), it works. I'm using VS2013 Express and 2015 Community
 
hi, as you can see - crash not inside ab, but inside mscorlib.
you try run "connection.open" in pluginrun thread? or create new thread?
 
I tried both, inside pluginrun thread and a new WPF thread, same error. I did my plugin layout without AB and it is working find. But when I try it as class library for use it as plugin, I can't do sql connection. Sql server logs didn't register any call.
If you have used Sql Server LocalDB any time, please give an example. I tried LocalDB v11.0 and v12.0.
 
If you have used Sql Server LocalDB any time, please give an example. I tried LocalDB v11.0 and v12.0.
Sorry, never use this before
 
Back
Top