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

Timeout Exception - Using MySQL .net Connector 6.6.4 (4 replies)

$
0
0
Hello,
I'm using the MySQL .net Connector 6.6.4 on Windows 7.
I have installed MySQL Server 5.5 on local Windows PC.

When I submit this C# Code with Visual Studio 2012, I get a Timout Exception.

private void initData()
{
String ConnStrig = "server=localhost;User Id=root;password=pswd";

using (MySqlConnection conn = new MySqlConnection(ConnStrig))
{

conn.Open();

try { conn.ChangeDatabase("mydb"); }
catch (Exception e)
{
MessageBox.Show(e.StackTrace);

}


try
{


MySqlCommand com = new MySqlCommand("select id, name from dictionary", conn);
MySqlDataReader mySqlDR = com.ExecuteReader();

while (mySqlDR.Read())
{
mylistbox.Items.Add(mySqlDR.GetString("name"));

}
}
catch (Exception e)
{
MessageBox.Show("Zeile 63 " + e.StackTrace);
MessageBox.Show(e.ToString());


}
}

}

System.TimeoutException: Ein Verbindungsversuch ist fehlgeschlagen, da die Gegenstelle nach einer bestimmten Zeitspanne nicht richtig reagiert hat, oder die hergestellte Verbindung war fehlerhaft, da der verbundene Host nicht reagiert hat --->
System.IO.IOException: Von der Übertragungsverbindung können keine Daten gelesen werden: Ein Verbindungsversuch ist fehlgeschlagen, da die Gegenstelle nach einer bestimmten Zeitspanne nicht richtig reagiert hat,
oder die hergestellte Verbindung war fehlerhaft, da der verbundene Host nicht reagiert hat.
---> System.Net.Sockets.SocketException: Ein Verbindungsversuch ist fehlgeschlagen, da die Gegenstelle nach
einer bestimmten Zeitspanne nicht richtig reagiert hat, oder die hergestellte Verbindung war fehlerhaft, da der
verbundene Host nicht reagiert hat
bei System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
bei System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
--- Ende der internen Ausnahmestapelüberwachung ---
bei System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
bei MySql.Data.Common.MyNetworkStream.Read(Byte[] buffer, Int32 offset, Int32 count)
--- Ende der internen Ausnahmestapelüberwachung ---
bei MySql.Data.Common.MyNetworkStream.HandleOrRethrowException(Exception e)
bei MySql.Data.Common.MyNetworkStream.Read(Byte[] buffer, Int32 offset, Int32 count)
bei MySql.Data.MySqlClient.TimedStream.Read(Byte[] buffer, Int32 offset, Int32 count)
bei System.IO.BufferedStream.Read(Byte[] array, Int32 offset, Int32 count)
bei MySql.Data.MySqlClient.MySqlStream.ReadFully(Stream stream, Byte[] buffer, Int32 offset, Int32 count)
bei MySql.Data.MySqlClient.MySqlStream.LoadPacket()
bei MySql.Data.MySqlClient.MySqlStream.ReadPacket()
bei MySql.Data.MySqlClient.NativeDriver.GetColumnData(MySqlField field)
bei MySql.Data.MySqlClient.NativeDriver.GetColumnsData(MySqlField[] columns)
bei MySql.Data.MySqlClient.Driver.GetColumns(Int32 count)
bei MySql.Data.MySqlClient.ResultSet.LoadColumns(Int32 numCols)
bei MySql.Data.MySqlClient.ResultSet..ctor(Driver d, Int32 statementId, Int32 numCols)
bei MySql.Data.MySqlClient.Driver.NextResult(Int32 statementId, Boolean force)
bei MySql.Data.MySqlClient.MySqlDataReader.NextResult()
bei MySql.Data.MySqlClient.MySqlDataReader.Close()
bei MySql.Data.MySqlClient.MySqlCommand.ResetReader()
bei MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)
bei MySql.Data.MySqlClient.MySqlCommand.ExecuteReader()
bei WpfApplication1Test.MainWindow.initData() in \\psf\home\Documents\Visual Studio 2012\FOM Projects\WpfApplication1Test\WpfApplication1Test\MainWindow.xaml.cs:Zeile 56.

The Configuration of the MySQL has the Default-Settings.
What is the problem that I get the Timeout-Exception?

Detecting the .NET Connector 6.6.4 using Windows Installer (1 reply)

$
0
0
Hi,
In the context of a Windows Installer setup program, how do I detect the .NET Connector 6.6.4 by component ID? In other words, which is the GUID of this component?
Kind regards,
Carlos Mallen

does my msi instal complete? (no replies)

$
0
0
Hi, everyone!

When I install the .net connector it will ask if I want it to be placed in the GAC.
It will only place the MySQL.Data.dll there. Should the ICSharpCode.SharpZipLib also be there???

When I choose to install the minimum, there is no ICSharpCode.SharpZipLib. Can MySQL.Data.dll used without it?

If not, can it be included in the installer?

ASP.NET Membership Provider Not Creating New Users Properly (3 replies)

$
0
0
I have a site that uses the MySQL Membership Provider. It's written almost entirely in ASP.NET and it seems to work OK at first sight. Like when I create a new user (through a special page that invokes the Membership.CreateUser method) from my laptop (not where the live site is stored), everything works OK. However, when others do it, something goes wrong. Their account gets added to the my_aspnet_users table, but my_aspnet_membership remains unchanged. Why is it so inconsistent. How can I troubleshoot this issue?

Connecting VB .net to VIsual Studio please i need help asap (8 replies)

$
0
0
The system detected an invalid pointer address when it tried to use a pointer argument of a call.

--
I Cant connect because of that error. Installed .net connector and everything.

Connector/Net 6.6.4 for Visual Studio 2012 Set connection will Crash (no replies)

$
0
0
OS: Windows 8 x64 pro
Tool: Visual Studio 2012 Ultimate Update 1
I download http://www.mysql.com/downloads/ Connector/NET 6.6.4 Version
1. create empty web project
2. set connection to remote MySql server, click "Test" will show error message:
http://i.imgur.com/Bk7cvV4.png
3. If I click "OK", then visual studio 2012 will crash and restar.

MySQL Connector/Net 6.6.5 MR has been released (no replies)

$
0
0
MySQL Connector/Net 6.6.5, a new version of the all-managed .NET driver
for MySQL has been released. This is a maintenance release for 6.6.x.
This release is feature complete. It is recommended for use in production
environments.
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.)

The 6.6.5 version of MySQL Connector/Net brings full support for MySql 5.6, including the following new features:
- Fix for Support for current_timestamp as default for datetime with ef for server 5.6 (Oracle bug #15935094).
- Added support for new connect attributes feature in server 5.6 (Oracle bug #15935112).
- Added protocol support for password expiration (Oracle bug #15935104).
- Added support for password hashing with appropriate strength for server 5.6 (Oracle bug #15935128).

As well the following bug fixes:
- Fix for bug Keyword not supported. Parameter name: AttachDbFilename (Mysql bug #66880, Oracle bug #14733472).
- Added support to MySql script file to retrieve data when using "SHOW" statements.
- Fix for Package Load Failure in Visual Studio 2005 (MySql bug #63073, Oracle bug #13491674).
- Fix for bug "Unable to connect using IPv6 connections" (MySQL bug #67253, Oracle bug #14835718).
- Added auto-generated values for Guid identity columns (MySql bug #67450, Oracle bug #15834176).
- Fix for method FirstOrDefault not supported in some LINQ to Entities queries (MySql bug #67377, Oracle bug #15856964).
- Fix internal bug "Parser cannot recognize row_count in grammar version 5.6" (id task 326).
- Fixed missing keywords not working as ids (wihout quoting) in parser: value, status, unknown& some unit tests from Arnaud feedback.
- Fix for Datetime precision doesn't work with code first or model first. (Oracle bug #15972773).
- Adding support for Geometry type. Unit Tests included. Supporting server 5.1 and further.
- Added to parser missing "alter user ... password expire".
- Fix for "Debugger error on stored procedure", which is actually a parser bug (parser was expecting decimal both precision& scale), (bug MySql #67975, Oracle bug #16079735).
- Added a more friendly message for error when trying to authenticate with old password.


The release is available to download
at http://dev.mysql.com/downloads/connector/net/6.6.html

Documentation
-------------------------------------
You can view current Connector/Net documentation
at http://dev.mysql.com/doc/refman/5.5/en/connector-net.html


You can find our team blog at http://blogs.oracle.com/MySQLOnWindows.
You can also post questions on our forums at http://forums.mysql.com/.

Enjoy and thanks for the support!

MySQL ASP Sessionstate (3 replies)

$
0
0
Our websites have reached a limit of the server they're sitting on and I want to spread them over multiple servers, but they use session state.

I've setup MySQL5.5 as a Master-Master replication on the web nodes and pointed the session to the "localhost" mysql server. The replication works fine and in testing you can move from one server to the other without issue. However, when it comes to putting the website under load (even a couple of hundred users) the MySQL becomes a real bottleneck and can't cope even thought the resources are minimal.

The connection string i'm using is

<connectionStrings>
<remove name="LocalMySqlServer" />
<add name="LocalMySqlServer" connectionString="database=ASPSession;server=localhost;Maximum Pool Size=100;Minimum Pool Size=10;pooling=True;Cache Server Properties=True;Connection Reset=True;User Id=ASPSession;password=ThePassword;Connection Lifetime=5" providerName="MySql.Data.MySqlClient" />
</connectionStrings>
<system.web>
<sessionState cookieName="Session" mode="Custom" cookieless="false" timeout="20" regenerateExpiredSessionId="true" customProvider="MySqlSessionStateProvider">
<providers>
<add name="MySqlSessionStateProvider" type="MySql.Web.SessionState.MySqlSessionStateStore, MySql.Web, Version=6.5.4.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" applicationName="MySQL Test site" description="" connectionStringName="LocalMySqlServer" writeExceptionsToEventLog="False" autogenerateschema="True" />
</providers>
</sessionState>
</system.web>


Does anyone have any suggestions as to why this would cause such a bottleneck?

Thanks

Verify Server Certificate before connecting (1 reply)

$
0
0
Hi,

Im currently using a MySQL Server(Ver:5.5) with a self signed Certificate. Now I want to secure my self written client in c#, which connects to the server with "SSL Mode=Required" by verify the server certificate(the client has the public key of the Server Certificate)
Is there any way to verify the certificate first before connecting like the RemoteCertificateValidationCallback in the .NET SSLStream?

Hans

Can't uninstall mysql-connector-net-6.6.4 (1 reply)

$
0
0
I can trying to update to mysql-connector-net-6.6.5. And as always I try to uninstall previous version (Win7 x32). Uninstaller at some point is rolling back.
Trying to install 6.6.5 on top is also failing.

Here is end of output from log when trying to uninstall.


MSI (s) (34:84) [12:23:50:916]: Executing op: RegAddValue(Name=UninstallString,Value=#%MsiExec.exe /I{7D9D35EC-57CC-492F-8EB6-751CC4BDDF83},)
MSI (s) (34:84) [12:23:50:916]: Executing op: RegCreateKey()
MSI (s) (34:84) [12:23:50:916]: Executing op: RegAddValue(Name=EstimatedSize,Value=#15507,)
MSI (s) (34:84) [12:23:50:916]: Executing op: RegAddValue(Name=Size,,)
MSI (s) (34:84) [12:23:50:916]: Executing op: RegAddValue(Name=Readme,,)
MSI (s) (34:84) [12:23:50:916]: Executing op: RegAddValue(Name=Publisher,Value=Oracle,)
MSI (s) (34:84) [12:23:50:916]: Executing op: RegCreateKey()
MSI (s) (34:84) [12:23:50:916]: Executing op: RegCreateKey()
MSI (s) (34:84) [12:23:50:916]: Executing op: RegCreateKey()
MSI (s) (34:84) [12:23:50:916]: Executing op: RegAddValue(Name=ModifyPath,Value=#%MsiExec.exe /I{7D9D35EC-57CC-492F-8EB6-751CC4BDDF83},)
MSI (s) (34:84) [12:23:50:916]: Executing op: RegAddValue(Name=LocalPackage,Value=C:\Windows\Installer\21a0f1d.msi,)
MSI (s) (34:84) [12:23:50:916]: Executing op: RegCreateKey()
MSI (s) (34:84) [12:23:50:916]: Executing op: RegAddValue(Name=InstallSource,Value=C:\Users\oxoocoffee\Documents\Projects\Tickmark\,)
MSI (s) (34:84) [12:23:50:916]: Executing op: RegAddValue(Name=InstallLocation,,)
MSI (s) (34:84) [12:23:50:916]: Executing op: RegAddValue(Name=InstallDate,Value=20121030,)
MSI (s) (34:84) [12:23:50:932]: Executing op: RegAddValue(Name=HelpTelephone,,)
MSI (s) (34:84) [12:23:50:932]: Executing op: RegAddValue(Name=HelpLink,,)
MSI (s) (34:84) [12:23:50:932]: Executing op: RegAddValue(Name=DisplayVersion,Value=6.6.4,)
MSI (s) (34:84) [12:23:50:932]: Executing op: RegAddValue(Name=Contact,,)
MSI (s) (34:84) [12:23:50:932]: Executing op: RegAddValue(Name=Comments,,)
MSI (s) (34:84) [12:23:50:932]: Executing op: RegAddValue(Name=AuthorizedCDFPrefix,,)
MSI (s) (34:84) [12:23:50:932]: Executing op: RegOpenKey(Root=-2147483646,Key=Software\Microsoft\Windows\CurrentVersion\Installer\TempPackages,,BinaryType=0,,)
MSI (s) (34:84) [12:23:50:932]: Executing op: RegRemoveValue(Name=C:\Windows\Installer\21a0f1d.msi,Value=#0,)
MSI (s) (34:84) [12:23:50:932]: Executing op: RegRemoveKey()
MSI (s) (34:84) [12:23:50:932]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\TempPackages 3: 2
MSI (s) (34:84) [12:23:50:932]: Executing op: RegOpenKey(Root=-2147483646,Key=Software\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\CE53D9D7CC75F294E86B57C14CDBFD38\Transforms,,BinaryType=0,,)
MSI (s) (34:84) [12:23:50:932]: Executing op: RegRemoveKey()
MSI (s) (34:84) [12:23:50:932]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\CE53D9D7CC75F294E86B57C14CDBFD38\Transforms 3: 2
MSI (s) (34:84) [12:23:50:932]: Executing op: End(Checksum=0,ProgressTotalHDWord=0,ProgressTotalLDWord=0)
MSI (s) (34:84) [12:23:50:932]: Error in rollback skipped. Return: 5
MSI (s) (34:84) [12:23:50:932]: Note: 1: 2318 2:
MSI (s) (34:84) [12:23:50:932]: Calling SRSetRestorePoint API. dwRestorePtType: 13, dwEventType: 103, llSequenceNumber: 321, szDescription: "".
MSI (s) (34:84) [12:23:50:932]: The call to SRSetRestorePoint API succeeded. Returned status: 0.
MSI (s) (34:84) [12:23:50:932]: Unlocking Server
MSI (s) (34:84) [12:23:50:963]: PROPERTY CHANGE: Deleting UpdateStarted property. Its current value is '1'.
Action ended 12:23:50: INSTALL. Return value 3.
MSI (s) (34:84) [12:23:50:963]: Note: 1: 1725
MSI (s) (34:84) [12:23:50:963]: Product: MySQL Connector Net 6.6.4 -- Removal failed.

MSI (s) (34:84) [12:23:50:963]: Windows Installer removed the product. Product Name: MySQL Connector Net 6.6.4. Product Version: 6.6.4. Product Language: 1033. Manufacturer: Oracle. Removal success or error status: 1603.

MSI (s) (34:84) [12:23:50:963]: Deferring clean up of packages/files, if any exist
MSI (s) (34:84) [12:23:50:963]: MainEngineThread is returning 1603
MSI (s) (34:EC) [12:23:50:963]: RESTART MANAGER: Session closed.
=== Logging stopped: 2/6/2013 12:23:50 ===
MSI (s) (34:EC) [12:23:50:963]: User policy value 'DisableRollback' is 0
MSI (s) (34:EC) [12:23:50:963]: Machine policy value 'DisableRollback' is 0
MSI (s) (34:EC) [12:23:50:963]: Incrementing counter to disable shutdown. Counter after increment: 0
MSI (s) (34:EC) [12:23:50:963]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts 3: 2
MSI (s) (34:EC) [12:23:50:963]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts 3: 2
MSI (s) (34:EC) [12:23:50:963]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied. Counter after decrement: -1
MSI (s) (34:EC) [12:23:50:963]: Restoring environment variables
MSI (s) (34:EC) [12:23:50:963]: Destroying RemoteAPI object.
MSI (s) (34:E0) [12:23:50:963]: Custom Action Manager thread ending.
MSI (c) (E0:90) [12:23:50:963]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied. Counter after decrement: -1
MSI (c) (E0:90) [12:23:50:963]: MainEngineThread is returning 1603
=== Verbose logging stopped: 2/6/2013 12:23:50 ===

Extreemly slow transfer speed via .NET Connector -- fixable or architectural limitation? (no replies)

$
0
0
I was recently performing some performance tests on MySQL with a query that returns about 17M rows x 60 columns of ints and bigints. This query was much slower than some other databases, and after some probing I believe the slow part to not be the query itself, but is actually a function of the amount of data being sent back to the client.

When running the application in a profiler, I discovered that about 60% of the time spent in the MySqlDataReader.Read() method was spent in .NET string extraction and parsing methods. This leads me to believe that the data is being communicated via text, and then parsed back into binary types, which would explain the terrible performance.

My question is basically if there is a more efficient way to transfer the data resultant from large queries to clients than MySqlCommand.ExecuteReader()/MySqlDataReader.Read(), or if there are any tunable settings that I am missing. Also, if there are not, then will every connector have this flaw (text->bin conversion being the large majority of the processing time), or is there a connector that is architected differently?

Inconsistent Exceptions: Unable to Connect and Timeout (2 replies)

$
0
0
Another one of these errors just occured inside of an application written in php. We now know that it is not a .Net Connector issue. With that said, if anyone would still like to read the problem and suggest were this question should be directed, I would greatly appreciate it. Also, intermittent network issues could cause this problem, but it is highly unlikely. So any advice/suggestions would be great.

My company's setup consists of Server 2008 R2 with IIS 7.5 installed. The .Net 4.5 framework has also been installed on the system. There are multiple sites running on the IIS server in different applications pools some are the 4.0 framework others are the 2.0 framework. We are using .Net connector 6.1.3 and MySQL server 5.1.44.

The issue is intermittent and does not always cause a complete failure. Also, the issue has occurred across all of the sites at various times. Sometimes the exceptions are being thrown and the system is logging it, but the user never experiences the failure.

The following is such an error where the user never experienced the failure.

Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 2/7/2013 2:04:08 PM
Event time (UTC): 2/7/2013 2:04:08 PM
Event ID: 89afe0e933924603a6b6abe13d666095
Event sequence: 9
Event occurrence: 1
Event detail code: 0

Exception information:
Exception type: MySqlException
Exception message: Unable to connect to any of the specified MySQL hosts.

Thread information:
Thread ID: 12
Thread account name: IIS APPPOOL\--Pool’s Name-
Is impersonating: False
Stack trace: at MySql.Data.MySqlClient.NativeDriver.Open()
at MySql.Data.MySqlClient.Driver.Create(MySqlConnectionStringBuilder settings)
at MySql.Data.MySqlClient.MySqlPool.GetPooledConnection()
at MySql.Data.MySqlClient.MySqlPool.TryToGetDriver()
at MySql.Data.MySqlClient.MySqlPool.GetConnection()
at MySql.Data.MySqlClient.MySqlConnection.Open()
at System.Data.Common.DbDataAdapter.QuietOpen(IDbConnection connection, ConnectionState& originalState)
at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, String srcTable)
at System.Web.UI.WebControls.SqlDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments)
at System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback)
at System.Web.UI.WebControls.DataBoundControl.PerformSelect()
at Home.Page_Load(Object sender, EventArgs e) in e:\Websites\ProsperTechnologiesManagement\Home.aspx.cs:line 32
at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)
at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
at System.Web.UI.Control.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)



At other times, this error along with others will cause the site to actually crash for the user. The following are some of the errors we have been experiencing again intermittently.


Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 1/30/2013 11:55:01 AM
Event time (UTC): 1/30/2013 11:55:01 AM
Event ID: f3ee7e16ef3e432d9e25c2f5f52e53e8
Event sequence: 823
Event occurrence: 3
Event detail code: 0

Exception information:
Exception type: MySqlException
Exception message: Fatal error encountered during command execution.
at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)
at MySql.Data.MySqlClient.MySqlCommand.ExecuteNonQuery()
at Prosper.PTLog.PTLog.Write(String productId, String user, String connectionString, Int32 eventCode, String[] infoItems)
at Prosper.PTLog.PTLog.Write(String productId, String user, Int32 eventCode, String[] eventItems)
at ptchart.Page_Load(Object sender, EventArgs e) in e:\Websites\InsightCenter\widget\ptchart.aspx.cs:line 21
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.
at MySql.Data.MySqlClient.MySqlDataReader.NextResult()
at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)



Lastly, I have included the following error although I am not sure it is related to the rest of them. Sometimes when the config file is loading it chokes on loading the MySQL role provider. It is not specifically mentioned in the trace below, but when I inspected the web.config file that was the line that it was failing on.


Event code: 3008
Event message: A configuration error has occurred.
Event time: 2/6/2013 8:30:59 PM
Event time (UTC): 2/6/2013 8:30:59 PM
Event ID: a5069920119d477e80fbf1849ec49e5d
Event sequence: 10
Event occurrence: 6
Event detail code: 0
Exception information:
Exception type: ConfigurationErrorsException
Exception message: Unable to initialize provider. Missing or incorrect schema. (--Sites reference--\web.con line 38)

Thread information:
Thread ID: 12
Thread account name: IIS APPPOOL\--Pool’s Name----
Is impersonating: False
Stack trace: at System.Web.Security.Roles.Initialize()
at System.Web.Security.RoleManagerModule.OnEnter(Object source, EventArgs eventArgs)
at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)



I am really at a loss as to why this is happening, why it works the majority of the time, and why when it does fail it only causes the site to crash some of the time.

Any thoughts are much appreciated.

On Connector/NET dropping support for VS2005 (Poll) (no replies)

$
0
0
Hi,

As you may know Connector/NET 6.4.x is that last version of Connector/NET supporting Visual Studio 2005.
Currently we don't have plans to add support for Visual Studio 2005 in 6.5.x or 6.6.x (both of which support VS2008, VS2010 & VS2012).

But we want hear feedback from the community... is there still interest in VS2005?

New database not creating when connecting to database server (1 reply)

$
0
0
Hi

I am new to MySql and am using MySql Sever 5.6 with Visual Studio 2010. I was running previous version to this a few days back and in that from Visual studio connect to mysql server and enter a new database name i used to get a message that dababase does not exists and would offer to create a new database. But 5.6 this does not happen and I get this error message.

---------------------------
Microsoft Visual Studio
---------------------------
Authentication to host 'localhost' for user 'root' using method 'mysql_native_password' failed with message: Unknown database 'testDB'
---------------------------
OK
---------------------------

As anything changed or any setting needs to be done. I am trying to do Code First MVC base on https://blogs.oracle.com/MySqlOnWindows/entry/building_an_mvc_3_application and the dababase is not getting created and am suspecting that this is causing the problem.

thanks

dont see mysql data source in visual studio 2012 express for web (1 reply)

$
0
0
i'm trying to add mysql connection to my asp.net mvc 4 projects but i dont see it on the data source window.

after installing visual studio 2012 express for web i added mysql Connector/Net through nuget. i wanted to add new connection to mysql db but i did see mysql data source on the data source window list. after a search i realized that i have v6.6.4 and it supported from 6.6.5 so i uninstalled it from nuget and install 6.6.5 from mysql website(a complete install). it didnt helped.. i tried to uninstall and reinstall it but it didnt change a thing. also tried to uninstall all mysql components and install the mysql complete components installation and tried to repair vs 2012. none of this helped me.

how can i solve this?


The problem was the vs version, it worked with non express version

How to watch wwe fights online ? (no replies)

$
0
0
John Cena, Ryback & Sheamus vs. The Shield (Dean Ambrose, Seth Rollins & Roman Reigns)

This match isn't a six man Elimination Chamber tag match, so I'm hoping they give it street fight rules or something to differentiate it from a regular match. There's still time.
http://www.wwefightsonline.com/albertodelrio-vs-bigshow/
I think fans want to see a lot of physical action with these guys rather than watching them stand on the apron waiting for a tag. It looks like it will be regular tag match, though, so that's what I'll base my prediction on.
http://www.wwefightsonline.com/therock-vs-cmpunk/
I can see a case made for either side to win this match because they've been built up very well. On the babyface side you have three of the top "good guys" in the company. Cena won the Royal Rumble and is likely going to win the WWE Title at the main event of WrestleMania, so should you book him to lose a tag match? Of course you can do that without him getting pinned since it's a tag match.

I doubt most remember, but Cena did lose at both Survivor Series and TLC. Ryback has pay-per-view losses at both of those events plus Hell in a Cell. Isn't he due a pay-per-view win? They could save it for WrestleMania. As for Sheamus, he also lost two of his last three singles pay-per-view matches (Survivor Series was a DQ win) all to Big Show.

Why do I bring up the losses? Because even though they lose they are still three of the strongest characters in WWE.
http://www.wwefightsonline.com/reymysterio-vs-danielbryan-vs-markhenry-vs-randyorton-vs-tba/
I don't want The Shield to lose. They've only had one official match on the main roster and that was a TLC match win in December. It was an outstanding match too. They impressed a lot of people. I'm surprised they haven't had more matches, but that's part of their appeal. They show up when they want, how they want and they don't let anybody dictate anything to them.

I think a guy like Rollins can shine in a match like this because he's the most athletic performer in the trio, so if they're going to get their ass kicked he'll do a good job of making the others look good. I like Ambrose a lot on the microphone and I know he's very skilled in the ring. I just want to see more. I've seen less of Reigns than the other two over the years, but he impressed me at TLC so I'm looking forward to seeing what he can do.

If the babyface team loses it won't be clean. There could be a scenario where a fourth member of The Shield shows up (Kassius Ohno would be perfect) to cost the three good guys the match. Or perhaps there will be a disqualification ending. That would be a bit of a downer. It's also a possibility because if they wanted a definitive ending they would have put a stipulation on it.

In the end I think Cena's team will win. I realize his team could lose without him getting pinned, but if he's going to win the WWE Title at WrestleMania like I expect then it makes sense to see him on the winning side in this match. I don't think it will hurt The Shield too much. They could always win the tag titles on Raw or in a WrestleMania match as a way to keep them strong.
http://www.wwefightsonline.com/albertodelrio-vs-big-show/
The story heading into the match is good with both sides coming in with momentum, so I'd expect an entertaining 15 minute tag match with John Cena ultimately getting the victory for his team.

Detecting auto-closed/ killed connection (1 reply)

$
0
0
Hi,

I have a problem: The Connector .NET or the Mysql Server does automatically close a connection after a few time. My first step to a solution was to check the Connectionstate before doing a query and reconnect if the connection is broken like this:

if (conn.State != ConnectionState.Open)
{
conn.Open();
}

But I noticed that the ConnectionState doesnt change if the connection is closed(checked it over Mysql workbench). So everytime the connection is closed, I get a System.Exception with the Message "Fatal error encountered during command execution.".

Details of the Exception:
called Method: MySql.Data.MySqlClient.MySqlCommand.ExecuteReader()
InnerException.Message: Fatal error encountered attempting to read the resultset.
InnerException.InnerException.Message: "Reading from the Stream has failed"

Doing the next query after the exception was raised, it works fine and it reconnects to the server.

So my question is: Is there any way to Detect when the connection is closed, so that my Query function can do a reconnect if its called?

Sincerely,
Hans

DLL Version 6.0.3.0 (1 reply)

$
0
0
Hi. I´m a brazilian web developer and my web application is ready to deploy in host server. This server works with version 6.0.3.0 from MySql.Data.dll and my aplication works most recent version. I need download the version 6.0.3.0 but on mysql.com i didn´t found.
Anybody can help me? I need theses archives: MyDql.Data.dll, MySql.Data.Entity.dll and MySql.Web
Thank´s.

Data Entity Model (no replies)

$
0
0
Simple SELECT queries run with an Ado.net Entity Data Model connection to mySQL is slow slow slow (6ish sec). The some queries connected with a MySQLConnection in less than a second.
I've seem the problem all over the net, has anyone figured a way to use an ADO.net Data Entity Model with MySQL at normal speeds?

Reading from the stream has failed (4 replies)

$
0
0
Hello,

I am reading the results from a select statement and fairly quickly I get this exception.

Precautions I have taken:

All data is in UTF8_general_ci
Connection character set is UTF8_general_ci
Database server Character set is UTF8_general_ci.

The error occurs at the same result every time.
If I change something to the collation the exception occurs at another result.

Server : 5.5.28
.Net Connector 6.6.5

Running the same select in MySql workbench 5.2.44CE returns all results.

Exception trace:

- $exception {"Fatal error encountered during data read."} System.Exception {MySql.Data.MySqlClient.MySqlException}
+ [MySql.Data.MySqlClient.MySqlException] {"Fatal error encountered during data read."} MySql.Data.MySqlClient.MySqlException
+ Data {System.Collections.ListDictionaryInternal} System.Collections.IDictionary {System.Collections.ListDictionaryInternal}
HelpLink null string
HResult -2147467259 int
- InnerException {"Reading from the stream has failed."} System.Exception {MySql.Data.MySqlClient.MySqlException}
+ [MySql.Data.MySqlClient.MySqlException] {"Reading from the stream has failed."} MySql.Data.MySqlClient.MySqlException
+ Data {System.Collections.ListDictionaryInternal} System.Collections.IDictionary {System.Collections.ListDictionaryInternal}
HelpLink null string
HResult -2147467259 int
- InnerException {"Poging voorbij het einde van de stroom te lezen."} System.Exception {System.IO.EndOfStreamException}
+ [System.IO.EndOfStreamException] {"Poging voorbij het einde van de stroom te lezen."} System.IO.EndOfStreamException
+ Data {System.Collections.ListDictionaryInternal} System.Collections.IDictionary {System.Collections.ListDictionaryInternal}
HelpLink null string
HResult -2147024858 int
+ InnerException null System.Exception
Message "Poging voorbij het einde van de stroom te lezen." string
Source "MySql.Data" string
StackTrace " bij MySql.Data.MySqlClient.MySqlStream.ReadFully(Stream stream, Byte[] buffer, Int32 offset, Int32 count)\r\n bij MySql.Data.MySqlClient.MySqlStream.LoadPacket()" string
+ TargetSite {Void ReadFully(System.IO.Stream, Byte[], Int32, Int32)} System.Reflection.MethodBase {System.Reflection.RuntimeMethodInfo}
+ Static members
+ Non-Public members
Message "Reading from the stream has failed." string
Source "MySql.Data" string
StackTrace " bij MySql.Data.MySqlClient.MySqlStream.LoadPacket()\r\n bij MySql.Data.MySqlClient.MySqlStream.ReadPacket()\r\n bij MySql.Data.MySqlClient.NativeDriver.FetchDataRow(Int32 statementId, Int32 columns)\r\n bij MySql.Data.MySqlClient.Driver.FetchDataRow(Int32 statementId, Int32 columns)\r\n bij MySql.Data.MySqlClient.ResultSet.GetNextRow()\r\n bij MySql.Data.MySqlClient.ResultSet.NextRow(CommandBehavior behavior)\r\n bij MySql.Data.MySqlClient.MySqlDataReader.Read()" string
+ TargetSite {Void LoadPacket()} System.Reflection.MethodBase {System.Reflection.RuntimeMethodInfo}
+ Static members
+ Non-Public members
Message "Fatal error encountered during data read." string
Source "MySql.Data" string
StackTrace " bij MySql.Data.MySqlClient.MySqlDataReader.Read()\r\n bij Videotheek.Interresting.Interresting_Shown(Object sender, EventArgs e) in c:\\Users\\Lambert\\Documents\\Visual Studio 2012\\Projects\\Videotheek\\Interresting.cs:regel 81\r\n bij System.Windows.Forms.Form.OnShown(EventArgs e)\r\n bij System.Windows.Forms.Form.CallShownEvent()\r\n bij System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme)\r\n bij System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)\r\n bij System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)\r\n bij System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)\r\n bij System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)\r\n bij System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)\r\n bij System.Windows.Forms.Control.InvokeMarshaledCallbacks()\r\n bij System.Windows.Forms.Control.WndProc(Message& m)\r\n bij System.Windows.Forms.ScrollableControl.WndProc(Message& m)\r\n bij System.Windows.Forms.ContainerControl.WndProc(Message& m)\r\n bij System.Windows.Forms.Form.WndProc(Message& m)\r\n bij System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)\r\n bij System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)\r\n bij System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)\r\n bij System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)\r\n bij System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)\r\n bij System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)\r\n bij System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)\r\n bij System.Windows.Forms.Application.RunDialog(Form form)\r\n bij System.Windows.Forms.Form.ShowDialog(IWin32Window owner)\r\n bij System.Windows.Forms.Form.ShowDialog()\r\n bij Videotheek.Form1.radioButton1_CheckedChanged_1(Object sender, EventArgs e) in c:\\Users\\Lambert\\Documents\\Visual Studio 2012\\Projects\\Videotheek\\Form1.cs:regel 274\r\n bij System.Windows.Forms.RadioButton.OnCheckedChanged(EventArgs e)\r\n bij System.Windows.Forms.RadioButton.set_Checked(Boolean value)\r\n bij System.Windows.Forms.RadioButton.OnClick(EventArgs e)\r\n bij System.Windows.Forms.RadioButton.OnMouseUp(MouseEventArgs mevent)\r\n bij System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)\r\n bij System.Windows.Forms.Control.WndProc(Message& m)\r\n bij System.Windows.Forms.ButtonBase.WndProc(Message& m)\r\n bij System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)\r\n bij System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)\r\n bij System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)\r\n bij System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)\r\n bij System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)\r\n bij System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)\r\n bij System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)\r\n bij System.Windows.Forms.Application.Run(Form mainForm)\r\n bij Videotheek.Program.Main() in c:\\Users\\Lambert\\Documents\\Visual Studio 2012\\Projects\\Videotheek\\Program.cs:regel 19" string
+ TargetSite {Boolean Read()} System.Reflection.MethodBase {System.Reflection.RuntimeMethodInfo}
+ Static members
+ Non-Public members
+ this {Videotheek.Interresting, Text: Interresting} Videotheek.Interresting
+ sender {Videotheek.Interresting, Text: Interresting} object {Videotheek.Interresting}
+ e {System.EventArgs} System.EventArgs
bFirst false bool
nOld 0 int
IdActor 0 int
Age 0 int
Gender 0 int
Year 0 int
nRef 1 int
t1 null string


Database Create Statements:
CREATE TABLE `tempresults` (
`MovieId` int(11) NOT NULL,
`IdActor` int(11) NOT NULL,
`age` int(11) NOT NULL DEFAULT '0',
`dob` date NOT NULL DEFAULT '1900-01-01',
`Year` year(4) NOT NULL DEFAULT '1901',
`Gender` int(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`MovieId`,`IdActor`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8

CREATE TABLE `refmovie` (
`MovieId` int(11) NOT NULL,
`MovieName` varchar(200) NOT NULL,
`Description` longtext,
`Year` year(4) DEFAULT NULL,
`Link` varchar(100) NOT NULL,
`Completed` bit(1) NOT NULL,
PRIMARY KEY (`MovieId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8

CREATE TABLE `actor` (
`IdActor` int(11) NOT NULL,
`NameActor` varchar(120) NOT NULL,
`dob` date DEFAULT NULL,
`alive` bit(1) DEFAULT NULL,
`Gender` bit(1) DEFAULT NULL,
`LifeStory` longtext,
`Completed` bit(1) DEFAULT NULL,
`dod` date DEFAULT NULL,
`Link` varchar(50) DEFAULT NULL,
PRIMARY KEY (`IdActor`),
KEY `Name` (`NameActor`) USING HASH,
KEY `Link` (`Link`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8

CREATE TABLE `actorbyrefmovie` (
`idActor` int(11) NOT NULL,
`MovieId` int(11) NOT NULL,
`Act` longtext,
PRIMARY KEY (`idActor`,`MovieId`),
KEY `IdActor` (`idActor`) USING HASH,
KEY `IdMovie` (`MovieId`) USING HASH
) ENGINE=InnoDB DEFAULT CHARSET=utf8

Piece of code:

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using MySql.Data.MySqlClient;
using System.Threading;
using System.Windows.Forms;

namespace Videotheek
{
public partial class Interresting : Form
{
public bool bRebuild = false;
MySqlConnection conn = new MySqlConnection(Form1.sqlconnect);
MySqlConnection conn1 = new MySqlConnection(Form1.sqlconnect);
MySqlCommand cmd1 = new MySqlCommand();
MySqlCommand cmd = new MySqlCommand();
MySqlDataReader s,s1;
int LastIdActor = 0;
int MovieId = 0;
int nCount = 0;
int nYoung = 0;
int nAll = 0;
int nUn = 0;
int nYear = 0;
public Interresting()
{
InitializeComponent();
conn.Open();
cmd.Connection = conn;
cmd.CommandTimeout = 0;
cmd.CommandText = "set net_write_timeout=" + Timeout.Infinite + "; set net_read_timeout=" + Timeout.Infinite + "; Set Character_Set_Connection='UTF8'; set Collation_connection='utf8_general_ci';";
cmd.ExecuteNonQuery();
conn1.Open();
cmd1.Connection = conn1;
cmd1.CommandTimeout = 0;
cmd1.CommandText = "set net_write_timeout=" + Timeout.Infinite + "; set net_read_timeout=" + Timeout.Infinite + "; Set Character_Set_connection='UTF8'; set collation_connection='utf8_general_ci';";
cmd1.ExecuteNonQuery();
}

private void Interresting_Shown(object sender, EventArgs e)
{
cmd.CommandText = "Lock table Actor read;";
cmd.ExecuteNonQuery();
cmd.CommandText = "Select IdActor from Actor order by IdActor desc limit 1;";
s = cmd.ExecuteReader();
s.Read();
LastIdActor = Convert.ToInt32(s[0].ToString());
s.Close();
int IdActor;
int Age=0;
int Gender;
int Year;
cmd.CommandText = "Unlock tables;";
cmd.ExecuteNonQuery();
int nRef = 1;
string t1;
if (bRebuild)
{
/* try
{
cmd.CommandText = "drop table tempresults;";
cmd.ExecuteNonQuery();
}
catch
{
}
*/ cmd.CommandText="SET sql_mode='NO_UNSIGNED_SUBTRACTION';";
cmd.ExecuteNonQuery();
cmd.CommandText = "delete from tempresults;";
cmd.ExecuteNonQuery();
cmd.CommandText = "Unlock tables;";
cmd.ExecuteNonQuery();
cmd1.CommandText = "Lock table tempresults write;";
cmd1.ExecuteNonQuery();
cmd.CommandText = "Select ActorByRefMovie.MovieId, ActorByRefMovie.IdActor, Refmovie.Year-Year(Actor.dob) as `age`,Actor.dob as `dob`,RefMovie.Year as `Year`,ACtor.Gender as `Gender` from ActorByRefMovie inner join Actor on ActorByRefmovie.IDactor=Actor.IdActor inner join RefMovie on Actorbyrefmovie.MovieId=refmovie.MovieId;";
s = cmd.ExecuteReader();
while (s.Read())
{
cmd1.CommandText = "Insert into Tempresults (MovieId, Idactor,age,dob,Year,Gender) values(" + Convert.ToInt32(s[0].ToString()).ToString() + "," + Convert.ToInt32(s[1].ToString()).ToString() + "," +
Convert.ToInt32(s[2].ToString()).ToString() + ",'" + HtmlDecode.ConvertDate(s[3].ToString()) + "'," + Convert.ToInt32(s[4].ToString()).ToString() + "," + Convert.ToInt32(s[5].ToString()).ToString() + ");";
cmd1.ExecuteNonQuery(); // errror occurs here after 1480 records read out of roughly 6M(illion) records.
}
s.Close();
cmd1.CommandText = "Unlock tables;";
cmd1.ExecuteNonQuery();

Has anybody got a clue why I get this exception?
Workbench finishes ok.

Thanks for any help
Lambert
Viewing all 1447 articles
Browse latest View live


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