Can't enter Mediaportal TV Server Configuration after adding Slave Server (2 Viewers)

hermann

Portal Member
May 31, 2006
10
0
56
Parkstein
Home Country
Germany Germany
Hello,

the mentioned TVservice\TvController.cs is part of the TVE source code - that's why You dont see it.

Hermann
 

hermann

Portal Member
May 31, 2006
10
0
56
Parkstein
Home Country
Germany Germany
Hello vertiger,

with SVN 13343 still the same. No config except the 2 servers in setuptv. I've added the error logs of both machines here:
 

vertiger

Portal Pro
July 8, 2007
141
14
Home Country
Switzerland Switzerland
From our masters log:

2007-10-24 11:39:19.406250 [1]: Failed to startup cause of exception
2007-10-24 11:39:19.421875 [1]: Exception :confused:ystem.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at TvControl.IController.Type(Int32 cardId)
at SetupTv.SetupTvSettingsForm..ctor()
2007-10-24 11:39:19.421875 [1]: Exception :The given key was not present in the dictionary.
2007-10-24 11:39:19.421875 [1]: site :Void ThrowKeyNotFoundException()
2007-10-24 11:39:19.421875 [1]: source :mscorlib
2007-10-24 11:39:19.421875 [1]: stacktrace:

--> an exception comes from the interface icontroller in tvcontrol (in function type)

source is this function:
public CardType Type(int cardId)
{
return _cards[cardId].Type;
}

From the MSDN help:
Dictionary.Item

Exception type - Condition
ArgumentNullException - key is a null reference (Nothing in Visual Basic).
KeyNotFoundException - The property is retrieved and key does not exist in the collection.

It looks like the card with cardId is not found and so it throws an exception.

I think it is caused in SettingsForm.cs line 157 till 185. Try to add an try-catch-block there.

foreach (Card dbsCard in server.ReferringCard())
{
try
{
CardType type = RemoteControl.Instance.Type(dbsCard.IdCard);
string cardName = dbsCard.Name;
switch (type)
{
case CardType.Analog:
cardName = String.Format("{0} Analog {1}", cardNo, cardName);
AddChildSection(cardPage, new CardAnalog(cardName, dbsCard.IdCard), 1);
break;

case CardType.DvbT:
cardName = String.Format("{0} DVB-T {1}", cardNo, cardName);
AddChildSection(cardPage, new CardDvbT(cardName, dbsCard.IdCard), 1);
//AddChildSection(cardPage, new CardDvbS(cardName, dbsCard.IdCard));
break;
case CardType.DvbC:
cardName = String.Format("{0} DVB-C {1}", cardNo, cardName);
AddChildSection(cardPage, new CardDvbC(cardName, dbsCard.IdCard), 1);
break;
case CardType.DvbS:
cardName = String.Format("{0} DVB-S {1}", cardNo, cardName);
AddChildSection(cardPage, new CardDvbS(cardName, dbsCard.IdCard), 1);
break;
case CardType.Atsc:
cardName = String.Format("{0} ATSC {1}", cardNo, cardName);
AddChildSection(cardPage, new CardAtsc(cardName, dbsCard.IdCard), 1);
break;
}
cardNo++;
}
catch (Exception ex)
{
Log.Write("exception while adding cards");
Log.Write(ex);
}
}

I'm sorry but i can not try this, because i do not have two servers.
 

P-Ray

Portal Member
May 14, 2007
20
0
Home Country
Austria Austria
in case you got VMWare you can possibly try it. just install the master on the host computer and then install the slave on a vmware guest.


wbr

P-Ray
 

vertiger

Portal Pro
July 8, 2007
141
14
Home Country
Switzerland Switzerland
it worked. But there is a smaller problem with the selection of the slave tuner-cards in the left box.

here is the screenshot

Configuration:
Master - real PC - Hauppauge HVR-4000
Slave - VMWare - Terratec Cinergy Hybrid XS (via passthrough USB)

I think the smaller problem can be solved too.
 

hermann

Portal Member
May 31, 2006
10
0
56
Parkstein
Home Country
Germany Germany
Hello vertiger,

this sounds very good, thanx for Your midnite work :D

BTW (a little bit offtopic): Is it possible to use the terratec USB inside the VM session?

Greetings
Hermann
 

vertiger

Portal Pro
July 8, 2007
141
14
Home Country
Switzerland Switzerland
yes, you can use the usb devices inside the virtuell maschine. The terratec software claims it can not run but it does.
But in vmware there is no display of the tv-picture in mediaportal.

Note: this is only possible with usb-devices.
 

P-Ray

Portal Member
May 14, 2007
20
0
Home Country
Austria Austria
which build you did use? i just tried it with current SVN from 27.10.2007 but i still got the issue that i can`t configure anything as soon as i add the slave server.

btw. good to see that it worked with VMWare :)

wbr

P-Ray
 

vertiger

Portal Pro
July 8, 2007
141
14
Home Country
Switzerland Switzerland
i have made an small patch to the sources (svn 16340) - see post #34

for the results see post #36
 

Users who are viewing this thread

Top Bottom