Quantcast
Channel: MySQL Forums - Connector/NET and C#, Mono, .Net
Viewing all 1447 articles
Browse latest View live

mysql connector net compatibility (1 reply)

$
0
0
Amigos mysql,
tengo una aplicación asp.net con VS 2008, usando entity framework con el conector 6.2.3 y server 5.1, lo que quiero es, pasarme vs 2010, con server 5.5 y el conector 6.4.4.

Pero no puedo tener instalado ambos conectores, con eso lo único que me queda es migrar todo a lo último.

Existe la posibilidad de tener los 2 conectores o si migro todo, tendré que volver a generar los objetos con entity data model?.

De antemano, gracias por vuestra ayuda.

choosing best connector for .NET legacy app (no replies)

$
0
0
Hello Experts
I've a legacy .NET application written in ASP.NET 1.1/ C# which currently runs on MS SQL 2000. We have a mandate to migrate it off to MySQL 5.5.

What is the best available connector for me to use for .NET 1.1 with MySQL 5.5? I could see (understand) the current Connector/NET 6.4.4 doesn't support .NET 1.1 and if I choose Connector/Net 1.0.10, it doesn't support mySQL 5.5. I'd not be able to upgrade .NET version, given its legacy system.

What would be my best choice, other than using Connector/ ODBC?

thanks in advance, Krishna

Problems with Connector 6.4.4 (1 reply)

$
0
0
Hi you all.

I'm having a problem with my own app developed in VB.net 2010 with SP1. First of all I'm going to give you my configuration to make you an idea of what I'm talking about.

OS: WindowsXP Pro SP3
MySQL Server: 5.5
Connector .NET: 6.4.4

First of all I configured file my.ini to accept remote connetions by adding the line bind-address=0.0.0.0 and I erased line that says skip-networking.

When I run my app localy, I login as root user and everything works fine. The problem came when I tried to remotely access to MySQL. I login as root user and everything works fine until the vb code executes the following:

DbGCATPacientes_PersonalespacientesTableAdapter.Fill(DbGCATPacientes_Personales.pacientes)

This line raises the Error 1042 - Unable to connect to any of the specified MySQL hosts

So I access the server via command line. I login without any problem and type in show proccesslist; to see the connections. There is a connection for the app. Grants for user root are all for *.* and for the database I created in mysql. And I also have a user 'root'@'%' with all privileges to ensure that remote hosts can access the database.

Where can be the problem? I don't understand, if I can login mysql without any problem, why or what raises this error and just for remote connection?

Thanks and waitting for an answer,
Gustavo

Problem installing .NET connector 6.4.4 (1 reply)

$
0
0
Tried to install the MySQL .NET connector version 6.4.4
Installer complains that an older version already exists on the system.
No older version can be found in the "Installed Programs", so I can also not uninstall it.

Installed now several older versions and uninstalled them also.
Still no go with the 6.4.4 installation.
Also removed ALL other MySQL Stuff like the server and the administrator tools.
Also that didn't help.

How can I install this connector???
Please help!!

OS: Win7 ultimate 64bit

Need web developers help? (no replies)

$
0
0
When you need any kind of web development services then contact to VIPSha.Inc (http://www.vipsha.com) it is a best service provided for Application also. To day I am getting lost of business from help of this company.

EntityFramework and mySQL (no replies)

$
0
0
Hey MySQL

I really have big problems using the Database Model first. I can connect to the database just fine and select the Tables I want, but when I push finish, Visual Studio freeze up for a long time and then comes with an error message.

"Loading metadata from the database took 00:00:02.7821914.
Generating the model took 00:05:04.5286877.
Added the connection string to the Web.Config file.
Successfully registered the assembly 'System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' in the Web.Config file.
Unable to generate the model because of the following exception: 'An error occurred while executing the command definition. See the inner exception for details.
Fatal error encountered during command execution.
Fatal error encountered attempting to read the resultset.
Reading from the stream has failed.
Attempted to read past the end of the stream."


I got the feeling that it is not using the .Net Connector(Got the lastest version from this site).

Can anyone help me here, ty.

best regards
Pete

Create a column using a variable string? (no replies)

$
0
0
I hope that someonw can help me with this. This code is inteneded to add a new column to a mariaDB based on data extracted from a filename. I get the error " near @sname = s111206 syntax error. The variable @sname contains the proper data for the text file. I am new to working with databases so forgive me my ignorance.

I have tried several variation of the sql but have not had any luck, and have not been able to find an answer in the connector.net help. Thanks for your consideration.

Jules
(julesjenson@me.com)


sxxxxxx would be s111206, always plus six digits
'create column for filename date as sxxxxxx
Try
conn.Open()
Dim sql As String
Dim adapter As New MySqlDataAdapter
Dim command As New MySqlCommand
sql = ("ALTER TABLE attendance ADD @sname varchar(14)")
command.CommandText = sql
command.Connection = conn
adapter.SelectCommand = command
command.Prepare()
command.Parameters.AddWithValue("@sname", sname)
command.ExecuteNonQuery()

Catch ex As MySql.Data.MySqlClient.MySqlException
MessageBox.Show(ex.Message)
End Try

If I change @sname to sname, I get a column named 'sname'. I would really like it to be sxxxxxx, that way each week when the software
executes to would create the column and update based upon the file
contents.


conn.Close()

Session Timeout (no replies)

$
0
0
Hi,

I'm using MYSQL Connector 5.1.17 with mysql 5.0. I get Session Timeout error, if the queries takes a long time. Do I have to add or change any parameters in the MYSQL Connector, so I don't get Session Timeout error.

Please let me know, if anyone needs more information.

Thanks,
Katie

Error Code: 1414. OUT or INOUT argument 2 for routine knockout_dbo.ko_SignUpYoungBoxer is not a variable or NEW pseudo-variable in BEFORE trigger (3 replies)

$
0
0
I have made a simple OUT procedure, and I get error:
Error Code: 1414. OUT or INOUT argument 2 for routine knockout_dbo.ko_SignUpYoungBoxer_Caller is not a variable or NEW pseudo-variable in BEFORE trigger

DELIMITER $$

CREATE DEFINER=`root`@`localhost` PROCEDURE `ko_SignUpYoungBoxer_Caller`(IN gymID int, OUT BoxerId int)
BEGIN

SET boxerID=5;

END

How to get varchar by Entity framework (no replies)

$
0
0
Guys:

I use the vs 2011 +Entity framework + MySql Connecter. I hope to generate DB from Entity framework. But I got a problem to create varchar(xxx). In EDMX diagram design view, I set the data to "Fixed size=false, Max length=6000, type=string), after I click generating db, it always set the data type to longtext. but it works well if I generate MSSql script.

Does anyone knoe how to resolve it?

Thanks
Ming

MySQL Connector/Net 6.3.8 has been released (no replies)

$
0
0
MySQL Connector/Net 6.3.8, a new version of the all-managed .NET driver for MySQL has been released. This is a maintenance release to our 6.3 release chain and includes 40 changes and fixes.

Version 6.3.8 is appropriate for use with versions of MySQL 5.0-5.5.

It is now available in source and binary form from http://dev.mysql.com/downloads/connector/net/6.3.html#downloads and mirror sites (note that not all mirror sites may be up to date at this point-if you can't find this version on some mirror, please try again later or choose another download site.)

The release is also available for download on My Oracle Support (MOS).

Enjoy and thanks for the support!

Standalone edition for integration with VS 2010 Express? (no replies)

$
0
0
Is there a standalone edition - a lite one - that integrates well with the EXPRESS version of VC# 2010 under .Net Framework V4.?

Can it be installed on Win PRO SP3 AND Vista Home Basic?

I know I can do alot of searching for answers to these, but it would save me alot of time if someone knew the answers to these questions off the top of their head.

MySQL Connector/Net 6.5.0 beta has been released (no replies)

$
0
0
MySQL Connector/Net 6.5.0, a new version of the all-managed .NET driver for MySQL has been released. This is a beta release of our newest connector and comes with several new features. It is of beta quality and should not be used in any production environment. It is appropriate for use with MySQL server versions 5.0-5.6

It is now available in source and binary form from http://dev.mysql.com/downloads/connector/net/#downloads and mirror sites (note that not all mirror sites may be up to date at this point-if you can't find this version on some mirror, please try again later or choose another download site.)

This new versions brings new features such as

Exception and command injector support
Millseconds support
Better partial-trust support
Better intellisense including auto-completion when editing stored procedures or .mysql files

These features are not yet documented in the shipping documentation. We will be posting a series of posts to our blog outlining these new features and will have them fully documented by GA.

You can find our team blog at http://blogs.oracle.com/MySQLOnWindows.

Enjoy and thanks for the support!

.Net Connector & Visual Studio Express (2 replies)

$
0
0
I'm running Win XP Pro SP3 and .Net V4, VC# 2010 Express.
I installed the .Net Connector V6.4.4 and included the Visual Studio Integration option.
I did not however install MySQL as yet.

Now... I searched for the mysql.visualstudio.dll, but Wndows did not find it. This probably explains why VC# 2010 Express will not show the assembly when I use "Add Reference" to the project.

Is this problem a matter of the DLL not being installed because VS Express is being used?
Or is it because MySQL is not yet installed?

Thx.

Automate data import via C# (no replies)

$
0
0
I am new to MySQL and have the task of automating a data import. The entire database is scripted into a sql file and delivered over FTP. The script has table create statements followed by data insert statements (MySQL data dump).

Currently, I run the MySQL command line import statement. Is there a way I can automate this through .NET / C# code ? I tried running the query as a MySqlCommand but the length of the file is too big and I run into out of memory exception issues.

Tried running the mysql.exe as a "Process" but was not able to pass in arguments to login & execute the import.

Any help or pointers would be greatly appreciated.

Getting an error when using MySQL Security Provider (no replies)

$
0
0
Hi,

I am new to development, so I tried to setup a new website, I had to start using mySQL, having looked around I was able to download the .NET Connectors for MySQL for VS2010 and I am able to successfully configure the users, roles, membership, etc through ASP.NET Configuration Utility, HOWEVER everytime I run the website (this is with no development just a blank default page with MySQL as security provider, i get an error message as follows



<-- ERROR MESSAGE BEGIN --



Server Error in '/WebSite4' Application.
Failed to map the path '/'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.InvalidOperationException: Failed to map the path '/'.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[InvalidOperationException: Failed to map the path '/'.]
System.Web.Configuration.ProcessHostConfigUtils.MapPathActual(String siteName, VirtualPath path) +244
System.Web.Configuration.ProcessHostMapPath.MapPathCaching(String siteID, VirtualPath path) +982
System.Web.Configuration.ProcessHostMapPath.GetPathConfigFilenameWorker(String siteID, VirtualPath path, String& directory, String& baseName) +19
System.Web.Configuration.ProcessHostMapPath.System.Web.Configuration.IConfigMapPath.GetPathConfigFilename(String siteID, String path, String& directory, String& baseName) +37
System.Web.Configuration.HostingPreferredMapPath.GetPathConfigFilename(String siteID, String path, String& directory, String& baseName) +75
System.Web.Configuration.WebConfigurationHost.GetStreamName(String configPath) +8937938
System.Configuration.Internal.DelegatingConfigHost.GetStreamName(String configPath) +13
System.Configuration.BaseConfigurationRecord.InitConfigFromFile() +219

[ConfigurationErrorsException: An error occurred loading a configuration file: Failed to map the path '/'.]
System.Configuration.ConfigurationSchemaErrors.ThrowIfErrors(Boolean ignoreLocal) +677804
System.Configuration.BaseConfigurationRecord.ThrowIfParseErrors(ConfigurationSchemaErrors schemaErrors) +34
System.Configuration.Configuration..ctor(String locationSubPath, Type typeConfigHost, Object[] hostInitConfigurationParams) +332
System.Configuration.Internal.InternalConfigConfigurationFactory.System.Configuration.Internal.IInternalConfigConfigurationFactory.Create(Type typeConfigHost, Object[] hostInitConfigurationParams) +31
System.Web.Configuration.WebConfigurationHost.OpenConfiguration(WebLevel webLevel, ConfigurationFileMap fileMap, VirtualPath path, String site, String locationSubPath, String server, String userName, String password, IntPtr tokenHandle) +394
System.Web.Configuration.WebConfigurationManager.OpenWebConfiguration(String path) +90
MySql.Web.SessionState.MySqlSessionStateStore.Initialize(String name, NameValueCollection config) +390
System.Web.Configuration.ProvidersHelper.InstantiateProvider(ProviderSettings providerSettings, Type providerType) +601
System.Web.SessionState.SessionStateModule.SecureInstantiateProvider(ProviderSettings settings) +43
System.Web.SessionState.SessionStateModule.InitCustomStore(SessionStateSection config) +93
System.Web.SessionState.SessionStateModule.InitModuleFromConfig(HttpApplication app, SessionStateSection config) +8891437
System.Web.SessionState.SessionStateModule.Init(HttpApplication app) +162
System.Web.HttpApplication.InitModulesCommon() +172
System.Web.HttpApplication.InitModules() +43
System.Web.HttpApplication.InitInternal(HttpContext context, HttpApplicationState state, MethodInfo[] handlers) +828
System.Web.HttpApplicationFactory.GetNormalApplicationInstance(HttpContext context) +304
System.Web.HttpApplicationFactory.GetApplicationInstance(HttpContext context) +107
System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +327

-- Error Message End --





My Web.Config is as follows, which was autogenerated by MySQL .Net Connector.



<?xml version="1.0"?>
<!--
For more information on how to configure your ASP.NET application, please visit
http://go.microsoft.com/fwlink/?LinkId=169433
<add name="ApplicationServices" connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\aspnetdb.mdf;User Instance=true" providerName="System.Data.SqlClient"/>

-->
<configuration>
<connectionStrings>
<add name="ApplicationServices" connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\aspnetdb.mdf;User Instance=true" providerName="System.Data.SqlClient" />
<remove name="LocalMySqlServer" />
<add name="LocalMySqlServer" connectionString="server=192.168.0.111;User Id=web;password=password123;Persist Security Info=True;database=test" providerName="MySql.Data.MySqlClient" />
</connectionStrings>
<system.web>
<sessionState mode="Custom" cookieless="true" regenerateExpiredSessionId="true" customProvider="MySqlSessionStateProvider">
<providers>
<add name="MySqlSessionStateProvider" type="MySql.Web.SessionState.MySqlSessionStateStore, MySql.Web, Version=6.4.4.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" applicationName="/" description="MySql Session Provider" connectionStringName="LocalMySqlServer" writeExceptionsToEventLog="False" autogenerateschema="True" />
</providers>
</sessionState>
<compilation debug="true" strict="false" explicit="true" targetFramework="4.0" />
<authentication mode="Forms">
<forms loginUrl="~/Account/Login.aspx" timeout="2880" />
</authentication>
<membership defaultProvider="MySQLMembershipProvider">
<providers>
<clear />
<add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="ApplicationServices" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" applicationName="/" />
<remove name="MySQLMembershipProvider" />
<add name="MySQLMembershipProvider" type="MySql.Web.Security.MySQLMembershipProvider, MySql.Web, Version=6.4.4.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" applicationName="/" description="MySQL default application" connectionStringName="LocalMySqlServer" writeExceptionsToEventLog="False" autogenerateschema="True" enablePasswordRetrieval="True" enablePasswordReset="True" requiresQuestionAndAnswer="True" requiresUniqueEmail="True" passwordFormat="Clear" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="7" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" passwordStrengthRegularExpression="" />
</providers>
</membership>
<profile defaultProvider="MySQLProfileProvider">
<providers>
<clear />
<add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="ApplicationServices" applicationName="/" />
<remove name="MySQLProfileProvider" />
<add name="MySQLProfileProvider" type="MySql.Web.Profile.MySQLProfileProvider, MySql.Web, Version=6.4.4.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" applicationName="/" description="MySql Profiles Provier" connectionStringName="LocalMySqlServer" writeExceptionsToEventLog="False" autogenerateschema="True" />
</providers>
</profile>
<roleManager enabled="true" defaultProvider="MySQLRoleProvider">
<providers>
<clear />
<add connectionStringName="ApplicationServices" applicationName="/" name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider" />
<remove name="MySQLRoleProvider" />
<add name="MySQLRoleProvider" type="MySql.Web.Security.MySQLRoleProvider, MySql.Web, Version=6.4.4.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d"
applicationName="/" description="MySQL Role Provider" connectionStringName="LocalMySqlServer" writeExceptionsToEventLog="False" autogenerateschema="True" />
</providers>
</roleManager>
</system.web>
<system.webServer>
<modules runAllManagedModulesForAllRequests="true" />
</system.webServer>
</configuration>




Can you please let me know where I am going wrong ??? :)

mysql Watch Southampton v Bristol City Free Stream Friday 30/12/2011 (no replies)

dotNet Connector works in SharpDevelop?? (no replies)

$
0
0
I'm not well acquainted with data providers (connectors), but I read the MS documentation on implementing data providers, and I was just curious:

If a provider exists for Visual studio, would it not be usable in SharpDevelop - an open source version of Visual Studio for dotNet? Is not the implementation for the two the same?

MySQL Connector/NET: Milliseconds value support on DateTime Columns (no replies)

MySQL Connector/NET: Running Connector/Net 6.5 inside Medium-Trust Level (no replies)

Viewing all 1447 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>