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
Language specific support
Deutsches MediaPortal Forum
Plugins & Skins für das MediaPortal
Plugins & Erweiterungen
Fehlermeldung bei Verbindungsaufbau aus externe Klasse
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="nu_81" data-source="post: 940933" data-attributes="member: 99603"><p>Hallo Zusammen,</p><p> </p><p>möchte von einem externen Programm auf den TVServer zugreifen.</p><p>So sieht vereinfacht der Code aus:</p><p> </p><p> <em> RemoteControl.HostName = "localhost";</em></p><p><em> //get the location of the database..</em></p><p><em> string connStr;</em></p><p><em> string provider;</em></p><p><em> IController controller = RemoteControl.Instance;</em></p><p><em> controller.GetDatabaseConnectionString(out connStr, out provider);</em></p><p> </p><p><em> //set the connection string</em></p><p><span style="color: #ff0000"><em> ProviderFactory.ResetGentle(true); </em></span></p><p><span style="color: #ff0000"><em> ProviderFactory.SetDefaultProvider(provider);</em></span></p><p><span style="color: #ff0000"><em> ProviderFactory.SetDefaultProviderConnectionString(connStr);</em></span></p><p> </p><p>Bei den rot markeirten Zeilen erhalte ich dabei folgende Exception:</p><p> </p><p><em>{"FATAL ERROR: No configuration store was found!\r\nGentle is unable to continue!\r\n\r\nThe handlers emitted the following error messages:\r\nUnable to create GentleSectionHandler for section named \"gentle\" in file \"C:\\Users\\npiazzolla\\Documents\\Visual Studio 2010\\Projects\\ConsoleApplication1.config\".\r\n\r\nUnable to create FileHandler for file Gentle.config.\r\nThis usually means that the file could not be found in any of the default search locations.\r\n\r\nThe handlers threw the following exceptions:\r\nError: DeveloperErrorUnclassified\r\nGentle.Common.GentleException: No configuration file could be located.\r\n bei Gentle.Common.FileHandler..ctor(String file)\r\n bei Gentle.Common.Configurator.AddFileHandler(String configStoreName, String fileName)\r\n\r\n"}</em></p><p>Die Datei Gentle.config habe ich gefunden, weiss aber nicht wie ich diese einbinden kann.</p><p> </p><p>Hoffe mir kann jemand einen Anstoß geben.</p><p>Vielen Dank im Voraus.</p><p> </p><p>Ciao Nu</p></blockquote><p></p>
[QUOTE="nu_81, post: 940933, member: 99603"] Hallo Zusammen, möchte von einem externen Programm auf den TVServer zugreifen. So sieht vereinfacht der Code aus: [I] RemoteControl.HostName = "localhost";[/I] [I] //get the location of the database..[/I] [I] string connStr;[/I] [I] string provider;[/I] [I] IController controller = RemoteControl.Instance;[/I] [I] controller.GetDatabaseConnectionString(out connStr, out provider);[/I] [I] //set the connection string[/I] [COLOR=#ff0000][I] ProviderFactory.ResetGentle(true); [/I][/COLOR] [COLOR=#ff0000][I] ProviderFactory.SetDefaultProvider(provider);[/I][/COLOR] [COLOR=#ff0000][I] ProviderFactory.SetDefaultProviderConnectionString(connStr);[/I][/COLOR] Bei den rot markeirten Zeilen erhalte ich dabei folgende Exception: [I]{"FATAL ERROR: No configuration store was found!\r\nGentle is unable to continue!\r\n\r\nThe handlers emitted the following error messages:\r\nUnable to create GentleSectionHandler for section named \"gentle\" in file \"C:\\Users\\npiazzolla\\Documents\\Visual Studio 2010\\Projects\\ConsoleApplication1.config\".\r\n\r\nUnable to create FileHandler for file Gentle.config.\r\nThis usually means that the file could not be found in any of the default search locations.\r\n\r\nThe handlers threw the following exceptions:\r\nError: DeveloperErrorUnclassified\r\nGentle.Common.GentleException: No configuration file could be located.\r\n bei Gentle.Common.FileHandler..ctor(String file)\r\n bei Gentle.Common.Configurator.AddFileHandler(String configStoreName, String fileName)\r\n\r\n"}[/I] Die Datei Gentle.config habe ich gefunden, weiss aber nicht wie ich diese einbinden kann. Hoffe mir kann jemand einen Anstoß geben. Vielen Dank im Voraus. Ciao Nu [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Language specific support
Deutsches MediaPortal Forum
Plugins & Skins für das MediaPortal
Plugins & Erweiterungen
Fehlermeldung bei Verbindungsaufbau aus externe Klasse
Contact us
RSS
Top
Bottom