473,395 Members | 1,413 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Error when using MySqlConnection

Hey Folks,

I am getting the following errors when I try to connect to my db with
the MySqlConnection. I added MySql.Data to my Reference list and have
the .dll in my bin directory. I also have "using
MySql.Data.MySqlClient;". I know it's not my connection string because
it works when I use an OdbcConnection. The error points to this line:

MySqlConnection conn = new MySqlConnection(ConnString);

Below is the error. Any help is greatly appreciated. Thanks!
Could not find any resources appropriate for the specified culture (or
the neutral culture) in the given assembly. Make sure
"MySql.Data.MySqlClient.MySqlClient.Strings.resour ces" was correctly
embedded or linked into assembly "MySql.Data". baseName:
MySql.Data.MySqlClient.MySqlClient.Strings locationInfo: <null>
resource file name:
MySql.Data.MySqlClient.MySqlClient.Strings.resourc es assembly:
MySql.Data, Version=1.0.5.13785, Culture=neutral,
PublicKeyToken=c5687fc88969c44d
STACK TRACE:

[MissingManifestResourceException: Could not find any resources
appropriate for the specified culture (or the neutral culture) in the
given assembly. Make sure
"MySql.Data.MySqlClient.MySqlClient.Strings.resour ces" was correctly
embedded or linked into assembly "MySql.Data".
baseName: MySql.Data.MySqlClient.MySqlClient.Strings locationInfo:
<null> resource file name:
MySql.Data.MySqlClient.MySqlClient.Strings.resourc es assembly:
MySql.Data, Version=1.0.5.13785, Culture=neutral,
PublicKeyToken=c5687fc88969c44d]
System.Resources.ResourceManager.InternalGetResour ceSet(CultureInfo
culture, Boolean createIfNotExists, Boolean tryParents) +1238
System.Resources.ResourceManager.InternalGetResour ceSet(CultureInfo
culture, Boolean createIfNotExists, Boolean tryParents) +550
System.Resources.ResourceManager.InternalGetResour ceSet(CultureInfo
culture, Boolean createIfNotExists, Boolean tryParents) +550
System.Resources.ResourceManager.GetString(String name, CultureInfo
culture) +103
System.Resources.ResourceManager.GetString(String name) +6
MySql.Data.Common.Resources.GetString(String name) +88

MySql.Data.MySqlClient.MySqlConnectionString.Conne ctionParameterParsed(Hashtable
hash, String key, String value) +1652
MySql.Data.Common.DBConnectionString.Parse(String newConnectString)
+137
MySql.Data.MySqlClient.MySqlConnection.set_Connect ionString(String
value) +31
MySql.Data.MySqlClient.MySqlConnection..ctor(Strin g
connectionString) +23
tenaffiliate.login.btLogin_Click(Object sender, EventArgs e) in
c:\inetpub\wwwroot\tenaffiliate\login.aspx.cs:53
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108

System.Web.UI.WebControls.Button.System.Web.UI.IPo stBackEventHandler.RaisePostBackEvent(String
eventArgument) +57
System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler
sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection postData)
+33
System.Web.UI.Page.ProcessRequestMain() +1292

Nov 19 '05 #1
0 2126

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Phil Powell | last post by:
Actually the client is saying it sometimes happens and sometimes doesn't happen, and when they refresh their screen it clears itself (I assume the memory clears). Here is line 1135: $result =...
1
by: Markusek Peter | last post by:
Hi, I'm using MySQLDriverCS. I've got no problem to store BLOB into database, but I can't get it back(save to file). Problem is with DataTable(returns string:( ) My code: -- DataTable dt = new...
6
by: Erik H. | last post by:
Trying to connect to MySQL db on localhost, and populate datagrid from a dataset using code inline method. Getting the following compile error: Error Message: "CS0246: The type or namespace...
1
by: Miku | last post by:
Hi Guies, I am new to vb.net. In my project I am using vb.net & MySql 4.0.17 as a backend. For database connectivity i have downloaded ByteFX - Mysql .net native provider. I have written the...
0
by: David P. Donahue | last post by:
Per a previous question I posted on this group, I have a Web Service which returns a DataSet (just a simple SELECT query grabbed from a database). My application calls the web service function and...
0
by: =?Utf-8?B?Sm9l?= | last post by:
Very weird; I lost a day worth of work because of this problem. I have an ASP.NET application written in VB that is using MySQL database. Shortly, a page creates a Customer record in the database...
0
by: anureddy | last post by:
help me how to add datagridview columns to another table,using windowsapplications. and set the displaymember and value member datagridviewcomboboxcolumn. i used this below code but that not...
11
donilourdu
by: donilourdu | last post by:
hi, I am trying to retrive data from MYSQL database.I am using limit to fetch the data.It will fetch two rows instead of fetching ten rows.But when i try to debug it fetches eight rows instead...
2
by: WellCom34 | last post by:
hey guys need a little help. i tried to save image into my database, it saves without error but when i tried to check if it saves in mysql, the data about my picture id save, but the image i save...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.