Reply to thread

The cause is an invalid cast of SQL Server Guid into a C# Guid:

[code][2014-09-18 17:19:46,992] [7410 ] [Main ] [FATAL] - Error starting application

System.InvalidCastException: Specified cast is not valid.

at System.Data.SqlClient.SqlBuffer.get_SqlGuid()

at System.Data.SqlClient.SqlDataReader.GetGuid(Int32 i)

at MediaPortal.Backend.Services.Database.DBUtils.ReadSimpleDBValue(Type type, IDataReader reader, Int32 colIndex)

at MediaPortal.Database.SQLCE.SQLCEDatabase.ReadDBValue(Type type, IDataReader reader, Int32 colIndex)[/code]

You have to check the type mapping and test what is working.


Once you fixed this make sure to:

  1. Create a new PluginID (plugin.xml) to avoid conflicts
  2. Use a proper namespace for your new plugin (should be MediaPortal.Database.SQLServer) and name classes accordingly ("SQLDatabase" without CE).


Top Bottom