From: Peter Brawley Date: November 10 2005 2:59pm Subject: Re: MySQL .NET Connector List-Archive: http://lists.mysql.com/mysql/191505 Message-Id: <43736055.6030900@earthlink.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Jesse >I can actually see the line # where AN error occurrs, but it doesn't make >sense. It indicates "Type 'MySqlConnection' is not defined", however, it IS >defined. At the top of the file, I include <%@ Import >Namespace="MySql.Data.MySqlClient"%>. Besides this, before I did the "Create >application" thing, I was able to access and view the data on the screen w/o >a problem. It's only after doing the "Create Application" that this is an >issue. You might try the .NET list (http://lists.mysql.com/dotnet). Meanwhile make sure your header code includes ... <%@ import Namespace="System.Data" %> <%@ import Namespace="MySql.Data.MySqlClient" %> ... Sub Page_Load(sender As Object, e As EventArgs) Dim myConnection As MySqlConnection Dim myDataAdapter As MySqlDataAdapter Dim myDataSet As DataSet ... myConnection = New MySqlConnection("server=...;") ... PB ----- Jesse Castleberry wrote: >I'm using the MySQL .Net connector to access my MySQL database from my >ASP.Net application. I've got kind of a catch 22 thing going on here. I'm >getting an error, which indicates that I need to set the debug="true" in my >web.config file (I realize this isn't a MySQL problem, but bare with me...). >Well, it IS set. So, trying to figure out what the issue is, I go into IIS >and right-click on the folder with my .net app in it and click the Create >button beside the Application name field, it creates an application. Now, I >can actually see the line # where AN error occurrs, but it doesn't make >sense. It indicates "Type 'MySqlConnection' is not defined", however, it IS >defined. At the top of the file, I include <%@ Import >Namespace="MySql.Data.MySqlClient"%>. Besides this, before I did the "Create >application" thing, I was able to access and view the data on the screen w/o >a problem. It's only after doing the "Create Application" that this is an >issue. > >This may not be a MySQL issue, it may be more of an ASP.NET thing, but >figured I'd pass this by y'all first an see if anyone knew what might be >going on. > >Thanks, >Jesse > > > > -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.362 / Virus Database: 267.12.8/163 - Release Date: 11/8/2005