home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 2
Plugin Development
MediaPortal 2 MS SQL Server database connecting
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="morpheus_xx" data-source="post: 1100824" data-attributes="member: 48495"><p>The cause is an invalid cast of SQL Server Guid into a C# Guid:</p><p>[code][2014-09-18 17:19:46,992] [7410 ] [Main ] [FATAL] - Error starting application</p><p>System.InvalidCastException: Specified cast is not valid.</p><p>at System.Data.SqlClient.SqlBuffer.get_SqlGuid()</p><p>at System.Data.SqlClient.SqlDataReader.GetGuid(Int32 i)</p><p>at MediaPortal.Backend.Services.Database.DBUtils.ReadSimpleDBValue(Type type, IDataReader reader, Int32 colIndex)</p><p>at MediaPortal.Database.SQLCE.SQLCEDatabase.ReadDBValue(Type type, IDataReader reader, Int32 colIndex)[/code]</p><p>You have to check the type mapping and test what is working.</p><p></p><p>Once you fixed this make sure to:</p><ol> <li data-xf-list-type="ol">Create a new PluginID (plugin.xml) to avoid conflicts</li> <li data-xf-list-type="ol">Use a proper namespace for your new plugin (should be MediaPortal.Database.SQLServer) and name classes accordingly ("SQLDatabase" without CE).</li> </ol></blockquote><p></p>
[QUOTE="morpheus_xx, post: 1100824, member: 48495"] 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: [LIST=1] [*]Create a new PluginID (plugin.xml) to avoid conflicts [*]Use a proper namespace for your new plugin (should be MediaPortal.Database.SQLServer) and name classes accordingly ("SQLDatabase" without CE). [/LIST] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 2
Plugin Development
MediaPortal 2 MS SQL Server database connecting
Contact us
RSS
Top
Bottom