Usuário com melhor resposta
Ajuda Urgente, Erro no Programa!

Pergunta
-
Aconteceu um erro no meu programa q até ontem funcionava perfeitamente...alguem me da uma ajuda por favor!!
Esse programa é fundamental pra agilidade da empresa!!
Qualquer ajuda é bem vinda Agradeço muito!!
o erro eh o seguinte:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.************** Exception Text **************
System.Configuration.ConfigurationErrorsException: Configuration system failed to initialize ---> System.Configuration.ConfigurationErrorsException: Unrecognized element. (C:\Documents and Settings\Plugado\Configurações locais\Apps\2.0\24L9YLCB.54X\3PO9831L.Z7Y\gere..tion_535d04a614db7e8c_0001.0000_b5275c353eabea47\GerenciaBancos.exe.Config line 4)
at System.Configuration.ConfigurationSchemaErrors.ThrowIfErrors(Boolean ignoreLocal)
at System.Configuration.BaseConfigurationRecord.ThrowIfParseErrors(ConfigurationSchemaErrors schemaErrors)
at System.Configuration.BaseConfigurationRecord.ThrowIfInitErrors()
at System.Configuration.ClientConfigurationSystem.EnsureInit(String configKey)
--- End of inner exception stack trace ---
at System.Configuration.ConfigurationManager.GetSection(String sectionName)
at System.Configuration.ConfigurationManager.get_ConnectionStrings()
at CamadaDados.AcessoBD.get_StrConnectionIntranet()
at CamadaDados.AcessoBD.Pesquisa(String SqlQuery)
at CamadaNegocios.Conexao.SelecionaVeiculos(String acao1, String acao2)
at GerenciaBancos.AtualizaFontes.btnEnviar_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.832 (QFE.050727-8300)
CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
GerenciaBancos
Assembly Version: 1.0.0.0
Win32 Version: n/a
CodeBase: file:///C:/Documents%20and%20Settings/Plugado/Configura%E7%F5es%20locais/Apps/2.0/24L9YLCB.54X/3PO9831L.Z7Y/gere..tion_535d04a614db7e8c_0001.0000_b5275c353eabea47/GerenciaBancos.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.832 (QFE.050727-8300)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.832 (QFE.050727-8300)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.832 (QFE.050727-8300)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
CamadaNegocios
Assembly Version: 1.0.0.0
Win32 Version: n/a
CodeBase: file:///C:/Documents%20and%20Settings/Plugado/Configura%E7%F5es%20locais/Apps/2.0/24L9YLCB.54X/3PO9831L.Z7Y/gere..tion_535d04a614db7e8c_0001.0000_b5275c353eabea47/CamadaNegocios.DLL
----------------------------------------
CamadaDados
Assembly Version: 1.0.0.0
Win32 Version: n/a
CodeBase: file:///C:/Documents%20and%20Settings/Plugado/Configura%E7%F5es%20locais/Apps/2.0/24L9YLCB.54X/3PO9831L.Z7Y/gere..tion_535d04a614db7e8c_0001.0000_b5275c353eabea47/CamadaDados.DLL
----------------------------------------
System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.832 (QFE.050727-8300)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.832 (QFE.050727-8300)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Data
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.832 (QFE.050727-8300)
CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.For example:
<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.colei tudo pq realmente eh uma EMERGENCIA! Obrigado
Respostas
-
Olá CockRoach,
Bem, obtive um erro parecido com este, mas no meu caso era porque no arquivo app.config ou em produção seuexecutavel.exe.config, dentro dele tinha deixado alguns caracteres especiais, como "ç", letras com acentuação, tive que remover para minha aplicação funcionar. De uma olhada para ver se tem algum caracter especial no seu app.config para ver se é isso.
Espero ter ajudado, t+
Todas as Respostas
-
Olá CockRoach,
Bem, obtive um erro parecido com este, mas no meu caso era porque no arquivo app.config ou em produção seuexecutavel.exe.config, dentro dele tinha deixado alguns caracteres especiais, como "ç", letras com acentuação, tive que remover para minha aplicação funcionar. De uma olhada para ver se tem algum caracter especial no seu app.config para ver se é isso.
Espero ter ajudado, t+
-
Ricardo,
Obrigado pela dica, dei uma olhada em alguns sites e diziam que esse erro eh um conflito entre as versoes do sql server... porem fui procurar pelos caracteres especiais que tu mensionaste e acabei encontrando a falha.. como meu programa visita diversos bancos de dados em locais diferentes , havia um conflito numa stored procedure, um parametro tinha sido trocado sem me avisarem, ou seja eu jamais saberia onde era o erro.
De qualquer forma obrigado pelo ajuda.
Abs.