MediaPortal Forums HTPC/MediaCenter
Old 2010-02-01, 23:12   #1 (permalink)
Portal Member
 
staticx's Avatar
 
Join Date: Mar 2009
Posts: 58
Thanks: 12
Thanked 0 Times in 0 Posts

Country:


Exclamation server error - application message

Hi

I've tried many times, but I'm about to give up... I cannot get this to work.
The plugin is installed on th main computer with MP1.1B and TVSERVER beta + latest SVN.
some bugs:

--- I get this error message when trying to enter TV/RECORDING/RADIO/SCHEDULES/TV SERVER STATUS.

Code:
Server Error in '/' Application.
--------------------------------------------------------------------------------

No such host is known 
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.Net.Sockets.SocketException: No such host is known

Source Error: 


Line 204:      if (!ConnectToDatabase())
Line 205:        return ret;
Line 206:      IList<ChannelGroup> groups=ChannelGroup.ListAll();
Line 207:      foreach (ChannelGroup group in groups)
Line 208:        ret.Add(new WebChannelGroup(group.IdGroup,group.GroupName));
 

Source File: c:\Program Files\Team MediaPortal\MediaPortal TV Server\Plugins\MPWebServices\htdocs\App_Code\TvServiceWebServices.asmx.cs    Line: 206 

Stack Trace: 


[SocketException (0x2af9): No such host is known]
   System.Net.Dns.GetAddrInfo(String name) +414
   System.Net.Dns.InternalGetHostByName(String hostName, Boolean includeIPv6) +97
   System.Net.Dns.GetHostEntry(String hostNameOrAddress) +174
   MySql.Data.Common.StreamCreator.GetHostEntry(String hostname) +98
   MySql.Data.Common.StreamCreator.GetStream(UInt32 timeOut) +345
   MySql.Data.MySqlClient.NativeDriver.Open() +219

[MySqlException (0x80004005): Unable to connect to any of the specified MySQL hosts.]
   MySql.Data.MySqlClient.NativeDriver.Open() +305
   MySql.Data.MySqlClient.MySqlPool.GetPooledConnection() +89
   MySql.Data.MySqlClient.MySqlPool.GetConnection() +160
   MySql.Data.MySqlClient.MySqlConnection.Open() +212
   Gentle.Provider.MySQL.MySQLProvider.GetConnection() +63

[GentleException: The database backend (provider MySQL) could not be reached.
Check the connection string: Password=mediaportal;Persist Security Info=True;User ID=sa;Initial Catalog=MpTvDb;Data Source=HTPC-1\SQLEXPRESS;Connection Timeout=300;]
   Gentle.Common.Check.FailWith(Severity severity, Error error, Exception e, String msg) +89
   Gentle.Common.Check.Fail(Exception e, Error error, Object[] args) +42
   Gentle.Provider.MySQL.MySQLAnalyzer.Analyze(String tableName) +515
   Gentle.Framework.GentleAnalyzer.UpdateObjectMap(ObjectMap map) +155
   Gentle.Framework.ObjectFactory.ConstructMap(PersistenceBroker broker, Type type) +1519
   Gentle.Framework.ObjectFactory.GetMap(PersistenceBroker broker, Type type) +114
   Gentle.Framework.SqlBuilder..ctor(IGentleProvider provider, StatementType stmtType, Type type, LogicalOperator logicalOperator) +204
   Gentle.Framework.SqlBuilder..ctor(StatementType stmtType, Type type) +13
   TvDatabase.ChannelGroup.ListAll() +39
   MediaPortal.TvServer.WebServices.ServiceInterface.GetTvChannelGroups() in c:\Program Files\Team MediaPortal\MediaPortal TV Server\Plugins\MPWebServices\htdocs\App_Code\TvServiceWebServices.asmx.cs:206
   Default.RefreshTv() in c:\Program Files\Team MediaPortal\MediaPortal TV Server\Plugins\MPWebServices\htdocs\Default.aspx.cs:163
   Default.btnTv_Click(Object sender, EventArgs e) in c:\Program Files\Team MediaPortal\MediaPortal TV Server\Plugins\MPWebServices\htdocs\Default.aspx.cs:112
   System.Web.UI.WebControls.Button.OnClick(EventArgs e) +78
   System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +100
   System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2863
--- I cannot see any video or music files, I don't know where can I find the VLC browser patch - can't it be in asx format for media player? it's more versatile player than VLC...
--- I can't see any photos, all I see is blank squares with the file name.
--- I cannot see anything in "Movies"
--- When I try to search for an album I also get the error message above

please help me make this plugin work.

thanks
staticx is offline   Reply With Quote
Old 2010-02-10, 13:48   #2 (permalink)
Portal Member
 
DieBagger's Avatar
 
Join Date: Sep 2007
Location: NÖ
Age: 25
Posts: 335
Thanks: 74
Thanked 58 Times in 31 Posts

Country:

My System

Default Re: server error - application message

The problems seems to be that the webservice cannot access the database.
  1. Do you use MySQL?
  2. Is your computers' name "HTPC-1"?
  3. Is the username "sa" and password "mediaportal" correct?
DieBagger is offline   Reply With Quote
Old 2010-02-10, 14:28   #3 (permalink)
Portal Member
 
staticx's Avatar
 
Join Date: Mar 2009
Posts: 58
Thanks: 12
Thanked 0 Times in 0 Posts

Country:


Default Re: server error - application message

I think I'm using Microsoft SQL , not mysql
the user/pass is root and mediaportal

my htpc name is HTPC-1
staticx is offline   Reply With Quote
Old 2010-02-10, 14:45   #4 (permalink)
Portal Member
 
DieBagger's Avatar
 
Join Date: Sep 2007
Location: NÖ
Age: 25
Posts: 335
Thanks: 74
Thanked 58 Times in 31 Posts

Country:

My System

Default Re: server error - application message

That is most likely the problem but you'll have to wait for gemx to comment on whether or not it's even possible to use ms-sql.
DieBagger is offline   Reply With Quote
Old 2010-02-16, 21:12   #5 (permalink)
Portal Member
 
Join Date: Aug 2009
Posts: 16
Thanks: 1
Thanked 1 Time in 1 Post

Country:


Default Re: server error - application message

WebServices isn't changing the DefaultProviderName when opening the database connection. It seems that de default provider is always mysql, also if you're using MySQL. A quick hack is to add on line 91 of App_Code/TvServiceWebServices.asmx.cs this:
Code:
        Gentle.Framework.GentleSettings.DefaultProviderName = provider;
(just above Gentle.Framework.ProviderFactory.SetDefaultProviderConnectionString(connStr))
Oxan is offline   Reply With Quote
Old 2010-02-18, 19:15   #6 (permalink)
MP Donator
 
Join Date: Oct 2009
Location: Derby
Posts: 154
Thanks: 25
Thanked 0 Times in 0 Posts

Country:

My System

Default Re: server error - application message

Hi there,

I am running with MS SQL 2008 Express.

Works fine (regarding DB connectivity) - I can't remember if I ad to change anything to get it working though

J.
Jay_UK is online now   Reply With Quote
Old 2010-03-10, 20:15   #7 (permalink)
Portal Member
 
Join Date: Sep 2008
Posts: 16
Thanks: 7
Thanked 0 Times in 0 Posts

My System

Default Re: server error - application message

Quote:
Originally Posted by Oxan View Post
WebServices isn't changing the DefaultProviderName when opening the database connection. It seems that de default provider is always mysql, also if you're using MySQL. A quick hack is to add on line 91 of App_Code/TvServiceWebServices.asmx.cs this:
Code:
        Gentle.Framework.GentleSettings.DefaultProviderName = provider;
(just above Gentle.Framework.ProviderFactory.SetDefaultProviderConnectionString(connStr))
Sorry for jumping on this thread but i have the exact same problem i've added the line but with no luck except the error is now on Line: 207 lol

staticx did you ever find a solution to this problem?

regards

Wappy
Wappy is offline   Reply With Quote
Old 2010-03-14, 00:52   #8 (permalink)
Portal Member
 
staticx's Avatar
 
Join Date: Mar 2009
Posts: 58
Thanks: 12
Thanked 0 Times in 0 Posts

Country:


Default Re: server error - application message

nope. I'm working now with MySql and mp1.1rc
staticx is offline   Reply With Quote
Reply

Bookmarks

Tags
application, message, server

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Error message leg server! donkarlos MediaPortal 1 Talk 2 2008-06-23 00:27
WebEPG-conf.exe application error message ExiledWool WebEPG 0 2008-05-03 17:01
Exception :Error in the application diletant Newcomers Forum 2 2008-02-07 10:26
Application hangs and 'Unable to create graph message' Fidoboy General Support 5 2006-05-05 19:04


All times are GMT +1. The time now is 13:33.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2 Protected by Akismet Blog with WordPress
Advertisement System V2.6 By   Branden