MediaPortal Forums HTPC/MediaCenter

Go Back   MediaPortal Forum » MediaPortal TV-Server » General Talk


General Talk Talk about the MediaPortal TV-Server

Reply
 
Thread Tools Display Modes
Old 2008-10-08, 17:48   #1 (permalink)
Portal Member
 
dhanjel's Avatar
 
Join Date: Jul 2005
Age: 27
Posts: 87
Thanks: 0
Thanked 1 Time in 1 Post

Country:

My System

Send a message via ICQ to dhanjel Send a message via MSN to dhanjel
Default Exception is thrown when trying to connect to tv-server using .Net

I'm trying to connect and access the tv-server remotely using this simple piece of code:
Code:
try
            {
                
                String provider;
                String connectionString;
                RemoteControl.Instance.GetDatabaseConnectionString(out connectionString, out provider);
                ProviderFactory.SetDefaultProviderConnectionString(connectionString);
            }
            catch (Exception ex)
            {
                MessageBox.Show("Failed to connect to host.\r\n\r\n" + ex.Message);
                return;
            }

            IList channels = Channel.ListAll();
            for (int i = 0; i < channels.Count; ++i)
            {
                comboBoxChannels.Items.Add(channels[i]);
            }
But it throws an error, any ideas what I might have missed?

Quote:
System.TypeInitializationException: The type initializer for 'Gentle.Framework.ProviderFactory' threw an exception. ---> Error: NoConfigStoreFoundUnclassified
Gentle.Common.GentleException: FATAL ERROR: No configuration store was found!
Gentle is unable to continue!

The handlers emitted the following error messages:
Unable to create GentleSectionHandler for section named "gentle" in file "F:\Visual Studio 2008\Projects\MediaPortal TVClient\MediaPortal TVClient\bin\Debug\MediaPortal TVClient.vshost.exe.config".

Unable to create FileHandler for file Gentle.config.
This usually means that the file could not be found in any of the default search locations.

The handlers threw the following exceptions:
Error: DeveloperErrorUnclassified
Gentle.Common.GentleException: No configuration file could be located.
at Gentle.Common.FileHandler..ctor(String file)
at Gentle.Common.Configurator.AddFileHandler(String configStoreName, String fileName)


at Gentle.Common.Configurator.InitializeHandlers()
at Gentle.Common.Configurator.Configure(String configStoreName, Object instance)
at Gentle.Common.Configurator.Configure(Object instance)
at Gentle.Framework.ProviderRegistry..ctor()
at Gentle.Framework.ProviderFactory..cctor()
--- End of inner exception stack trace ---
at Gentle.Framework.ProviderFactory.SetDefaultProvide rConnectionString(String connectionString)
at MediaPortal_TVClient.Form1.buttonConnect_Click(Obj ect sender, EventArgs e) in F:\Visual Studio 2008\Projects\MediaPortal TVClient\MediaPortal TVClient\Form1.cs:line 33
__________________
My HTPC: http://minhembio.com/dhanjel/37468/
dhanjel is offline   Reply With Quote
Old 2008-10-08, 18:38   #2 (permalink)
Portal Developer
 
gemx's Avatar
 
Join Date: Oct 2006
Age: 32
Posts: 1,318
Thanks: 25
Thanked 200 Times in 107 Posts

Country:

My System

Default

It depends where you put your gentle.config file. It seems like your prog can't find it.
__________________
ACCENT HT-100 | 2x16 VFD | ADM Athlon 64 3500+ | Win XP SP2 | SkyStar 2 DVB-S PCI | TT connect S2-3600
gemx is offline   Reply With Quote
Old 2008-10-08, 19:44   #3 (permalink)
Portal Member
 
dhanjel's Avatar
 
Join Date: Jul 2005
Age: 27
Posts: 87
Thanks: 0
Thanked 1 Time in 1 Post

Country:

My System

Send a message via ICQ to dhanjel Send a message via MSN to dhanjel
Default

What is that file and what should it contain? It said nothing about that in the example on the wiki
__________________
My HTPC: http://minhembio.com/dhanjel/37468/
dhanjel is offline   Reply With Quote
Reply

Bookmarks

Tags
connect, exception, net, thrown, tvserver

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 Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mediaportal closed with .net Exception SCHRANK 0.2.3.0 RC1 and SVN Builds 11 2008-01-06 19:46
Exception :unable to connect b2c2->_infTeeMain cleao General Support 4 2007-05-09 11:22
Exception :unable to connect b2c2->_infTeeMain cleao General Support 2 2007-04-06 22:24
.NET exception in MYTV donc99 General Support 9 2006-07-09 11:47
Unhandled exception in Microsoft .NET Framework csberto The old Bugreport Forum 4 2006-02-18 17:28


All times are GMT +1. The time now is 08:54.


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