Usamos cookies para medir audiência e melhorar sua experiência. Você pode aceitar ou recusar a qualquer momento. Veja sobre o iMasters.
Pessoal no meu web config tah assim:
<configuration xmlns="[http://schemas.microsoft.com/.NetConfiguration/v2.0">](http://schemas.microsoft.com/.NetConfiguration/v2.0)
<appSettings/>
<connectionStrings>
<add name="cnSIL" connectionString="Data Source=localhost;Database=SIL;User ID=XXXX;Password=XXXX;Command Logging=false;"
providerName="MySql.Data.MySqlClient"/>
</connectionStrings>
<system.web>Na minha pagina to apenas fazendo um open assim:
Imports System.web.Configuration
Imports MySql.Data.MySqlClient
Dim cn As New MySqlConnection(System.Web.Configuration.WebConfigurationManager.ConnectionStrin
gs("cnSIL").ConnectionString)
cn.Open()Ele me retorna um erro na linha Dim cn as New.....Na Immediate Windows me retorna isso:
Warning: Cannot debug script code. Script debugging is disabled for the application you are debugging. Please uncheck the 'Disable script debugging' option on the Internet Options dialog box (Advanced page) for Internet Explorer and restart the process.
A first chance exception of type 'System.ArgumentException' occurred in MySql.Data.DLL
Auto-attach to process '[1348] aspnet_wp.exe' on machine 'RODRIGO' succeeded.
Warning: Cannot debug script code. Script debugging is disabled for the application you are debugging. Please uncheck the 'Disable script debugging' option on the Internet Options dialog box (Advanced page) for Internet Explorer and restart the process.
A first chance exception of type 'System.ArgumentException' occurred in MySql.Data.DLL
Sei que deve ser uma coisa simples mas nao estou conseguindo fazer funcionar.
Valeu a todos
Carregando comentários...