Normal
Hello Here is an okay place for this question.I think it would be good if you could explain exactly what you're trying to do, because in general it would be better if you could let the TV service handle the database connection and use the TVDatabase.dll and TvBusinessLayer.dll to access the data you need. If you need to use custom queries then it makes sense to have your own connection. To directly address the problem...For a start, make sure you have the Gentle.NET provider DLLs in the right place. You need all of the following DLLs:Gentle.Common.dllGentle.Framework.dllGentle.Provider.MySQL.dllGentle.Provider.SQLServer.dllMySql.Data.dll I'm not sure exactly what is going wrong, but since Gentle.NET is open source I would suggest to check the source code to work out why the exception is being thrown. The source code is here:https://github.com/MediaPortal/MediaPortal-1/blob/master/Common-MP-TVE3/External/Gentle.NET/Source/https://github.com/MediaPortal/MediaPortal-1/blob/master/Common-MP-TVE3/External/Gentle.NET/Source/Gentle.Framework/Core/ProviderFactory.cs I hope that helps at least a little. mm
Hello
Here is an okay place for this question.
I think it would be good if you could explain exactly what you're trying to do, because in general it would be better if you could let the TV service handle the database connection and use the TVDatabase.dll and TvBusinessLayer.dll to access the data you need. If you need to use custom queries then it makes sense to have your own connection.
To directly address the problem...
For a start, make sure you have the Gentle.NET provider DLLs in the right place. You need all of the following DLLs:
Gentle.Common.dll
Gentle.Framework.dll
Gentle.Provider.MySQL.dll
Gentle.Provider.SQLServer.dll
MySql.Data.dll
I'm not sure exactly what is going wrong, but since Gentle.NET is open source I would suggest to check the source code to work out why the exception is being thrown. The source code is here:
https://github.com/MediaPortal/MediaPortal-1/blob/master/Common-MP-TVE3/External/Gentle.NET/Source/
https://github.com/MediaPortal/MediaPortal-1/blob/master/Common-MP-TVE3/External/Gentle.NET/Source/Gentle.Framework/Core/ProviderFactory.cs
I hope that helps at least a little.
mm