Error when using MySqlConnection

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • nthpixel@gmail.com

    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.MySq lClient;". 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.MyS qlClient.MySqlC lient.Strings.r esources" was correctly
    embedded or linked into assembly "MySql.Data ". baseName:
    MySql.Data.MySq lClient.MySqlCl ient.Strings locationInfo: <null>
    resource file name:
    MySql.Data.MySq lClient.MySqlCl ient.Strings.re sources assembly:
    MySql.Data, Version=1.0.5.1 3785, Culture=neutral ,
    PublicKeyToken= c5687fc88969c44 d


    STACK TRACE:

    [MissingManifest ResourceExcepti on: Could not find any resources
    appropriate for the specified culture (or the neutral culture) in the
    given assembly. Make sure
    "MySql.Data.MyS qlClient.MySqlC lient.Strings.r esources" was correctly
    embedded or linked into assembly "MySql.Data ".
    baseName: MySql.Data.MySq lClient.MySqlCl ient.Strings locationInfo:
    <null> resource file name:
    MySql.Data.MySq lClient.MySqlCl ient.Strings.re sources assembly:
    MySql.Data, Version=1.0.5.1 3785, Culture=neutral ,
    PublicKeyToken= c5687fc88969c44 d]
    System.Resource s.ResourceManag er.InternalGetR esourceSet(Cult ureInfo
    culture, Boolean createIfNotExis ts, Boolean tryParents) +1238
    System.Resource s.ResourceManag er.InternalGetR esourceSet(Cult ureInfo
    culture, Boolean createIfNotExis ts, Boolean tryParents) +550
    System.Resource s.ResourceManag er.InternalGetR esourceSet(Cult ureInfo
    culture, Boolean createIfNotExis ts, Boolean tryParents) +550
    System.Resource s.ResourceManag er.GetString(St ring name, CultureInfo
    culture) +103
    System.Resource s.ResourceManag er.GetString(St ring name) +6
    MySql.Data.Comm on.Resources.Ge tString(String name) +88

    MySql.Data.MySq lClient.MySqlCo nnectionString. ConnectionParam eterParsed(Hash table
    hash, String key, String value) +1652
    MySql.Data.Comm on.DBConnection String.Parse(St ring newConnectStrin g)
    +137
    MySql.Data.MySq lClient.MySqlCo nnection.set_Co nnectionString( String
    value) +31
    MySql.Data.MySq lClient.MySqlCo nnection..ctor( String
    connectionStrin g) +23
    tenaffiliate.lo gin.btLogin_Cli ck(Object sender, EventArgs e) in
    c:\inetpub\wwwr oot\tenaffiliat e\login.aspx.cs :53
    System.Web.UI.W ebControls.Butt on.OnClick(Even tArgs e) +108

    System.Web.UI.W ebControls.Butt on.System.Web.U I.IPostBackEven tHandler.RaiseP ostBackEvent(St ring
    eventArgument) +57
    System.Web.UI.P age.RaisePostBa ckEvent(IPostBa ckEventHandler
    sourceControl, String eventArgument) +18
    System.Web.UI.P age.RaisePostBa ckEvent(NameVal ueCollection postData)
    +33
    System.Web.UI.P age.ProcessRequ estMain() +1292

Working...