Usuario
Alguien me puede ayudar con este problema de conexión que tengo¿?

Pregunta
-
System.ArgumentException was unhandled
HResult=-2147024809
Message=El formato de la cadena de inicialización no se ajusta a la especificación que comienza en el índice 0.
Source=System.Data
StackTrace:
en System.Data.Common.DbConnectionOptions.GetKeyValuePair(String connectionString, Int32 currentPosition, StringBuilder buffer, Boolean useOdbcRules, String& keyname, String& keyvalue)
en System.Data.Common.DbConnectionOptions.ParseInternal(Hashtable parsetable, String connectionString, Boolean buildChain, Hashtable synonyms, Boolean firstKey)
en System.Data.Common.DbConnectionOptions..ctor(String connectionString, Hashtable synonyms, Boolean useOdbcRules)
en System.Data.SqlClient.SqlConnectionString..ctor(String connectionString)
en System.Data.SqlClient.SqlConnectionFactory.CreateConnectionOptions(String connectionString, DbConnectionOptions previous)
en System.Data.ProviderBase.DbConnectionFactory.GetConnectionPoolGroup(DbConnectionPoolKey key, DbConnectionPoolGroupOptions poolOptions, DbConnectionOptions& userConnectionOptions)
en System.Data.SqlClient.SqlConnection.ConnectionString_Set(DbConnectionPoolKey key)
en System.Data.SqlClient.SqlConnection.set_ConnectionString(String value)
en System.Data.SqlClient.SqlConnection..ctor(String connectionString, SqlCredential credential)
en System.Data.SqlClient.SqlConnection..ctor(String connectionString)
en Arcus_Soft.Login.cargar_Combo(ComboBox ComboBox, String sql) en C:\Users\Edgardo Ruotolo\Proyectos Visual Studio\Agro Software\Arcus Soft\Login.vb:línea 34
en Arcus_Soft.Login.Login_Load(Object sender, EventArgs e) en C:\Users\Edgardo Ruotolo\Proyectos Visual Studio\Agro Software\Arcus Soft\Login.vb:línea 5
en System.EventHandler.Invoke(Object sender, EventArgs e)
en System.Windows.Forms.Form.OnLoad(EventArgs e)
en System.Windows.Forms.Form.OnCreateControl()
en System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
en System.Windows.Forms.Control.CreateControl()
en System.Windows.Forms.Control.WmShowWindow(Message& m)
en System.Windows.Forms.Control.WndProc(Message& m)
en System.Windows.Forms.ScrollableControl.WndProc(Message& m)
en System.Windows.Forms.ContainerControl.WndProc(Message& m)
en System.Windows.Forms.Form.WmShowWindow(Message& m)
en System.Windows.Forms.Form.WndProc(Message& m)
en System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
en System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
en System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
en System.Windows.Forms.SafeNativeMethods.ShowWindow(HandleRef hWnd, Int32 nCmdShow)
en System.Windows.Forms.Control.SetVisibleCore(Boolean value)
en System.Windows.Forms.Form.SetVisibleCore(Boolean value)
en System.Windows.Forms.Control.set_Visible(Boolean value)
en System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
en System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
en System.Windows.Forms.Application.Run(ApplicationContext context)
en Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()
en Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()
en Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)
en Arcus_Soft.My.MyApplication.Main(String[] Args) en 17d14f5c-a337-4978-8281-53493378c1071.vb:línea 81
en System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
en System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
en Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
en System.Threading.ThreadHelper.ThreadStart_Context(Object state)
en System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
en System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
en System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
en System.Threading.ThreadHelper.ThreadStart()
InnerException:
Todas las respuestas
-
El formato de la cadena de inicialización no se ajusta a la especificación que comienza en el índice 0.
en el error que aqui has puesto puedes ver que menciona los nombres d elos archivos y las lineas por donde paso la ejecucion
si rastreas estas en el codigo, donde notas que se produce el error ?
por ejemplo veo que dice Login.vb:línea 34 que linea se ejecuto alli
has validado que el connection string que asignas es correcto ?
saludos
Leandro Tuttini
Blog
Buenos Aires
Argentina