I'm working on getting an application deployed to our live server, that uses Connector/Net 6.4.4 to connect our .NET application to MySql and am getting the following exception thrown:
Reading from the stream has failed. Inner Exception: Attempted to read past the end of the stream.
The connection is local, using root user. There are two connection strings (there are two, one for ADO.NET, one for Entity framework).
The mysql error log contains nothing relating to this issue. I have checked for access denied using process monitor, but nothing is flagged up.
The production server is MySql 5.1.11 which is the one we are having trouble setting up on, and we have development versions of the application running on 5.1.11 and 5.5.9, which work fine.
<add name="AppEntities" connectionString="metadata=res://*/OrmApp.AppEntities.csdl|res://*/OrmApp.AppEntities.ssdl|res://*/OrmApp.AppEntities.msl;provider=MySql.Data.MySqlClient;provider connection string="server=localhost;User Id=root;password=*********;Persist Security Info=True;database=app_staging;Convert Zero Datetime=True"" providerName="System.Data.EntityClient" />
<add name="AppAdoNet" connectionString="server=localhost;User Id=root;password=*********;Persist Security Info=True;database=app_staging;Convert Zero Datetime=True" providerName="System.Data.MySql" />
How can I diagnose the specific reason for the failed connection?
Reading from the stream has failed. Inner Exception: Attempted to read past the end of the stream.
The connection is local, using root user. There are two connection strings (there are two, one for ADO.NET, one for Entity framework).
The mysql error log contains nothing relating to this issue. I have checked for access denied using process monitor, but nothing is flagged up.
The production server is MySql 5.1.11 which is the one we are having trouble setting up on, and we have development versions of the application running on 5.1.11 and 5.5.9, which work fine.
<add name="AppEntities" connectionString="metadata=res://*/OrmApp.AppEntities.csdl|res://*/OrmApp.AppEntities.ssdl|res://*/OrmApp.AppEntities.msl;provider=MySql.Data.MySqlClient;provider connection string="server=localhost;User Id=root;password=*********;Persist Security Info=True;database=app_staging;Convert Zero Datetime=True"" providerName="System.Data.EntityClient" />
<add name="AppAdoNet" connectionString="server=localhost;User Id=root;password=*********;Persist Security Info=True;database=app_staging;Convert Zero Datetime=True" providerName="System.Data.MySql" />
How can I diagnose the specific reason for the failed connection?