1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Problem while adding NewsManger in external windowsservice

Problem while adding NewsManger in external windowsservice

2 posts, 0 answered
  1. gopalraman gopal
    gopalraman gopal avatar
    52 posts
    Registered:
    03 Dec 2009
    04 May 2010
    Link to this post
    hi

    While creating object for NewsManger in external windowsservice i got the following error
    "The type initializer for 'Telerik.News.NewsManager' threw an exception."  No error in compilation also.

    I include App.config file and included bellow connection string in it.

    <

     

    connectionStrings>

     

    <

     

    add name="Sitefinity" connectionString="data source=Dbserv01\SQL2005;UID=sa;PWD=Test123;initial catalog=Test" providerName="System.Data.SqlClient"/>

     

    </

     

    connectionStrings>

    anything am i missing. Please reply ASAP.

    Thanks
    G.GopalRaman

     

  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    04 May 2010
    Link to this post
    Hello gopalraman gopal,

    Check the log file. There must be an error thrown before this one you posted. The error you posted is just a result of the actual error that stops the service from initialization. You can use Sitefinity API only in the context of WebService or WCF service.

    Regards,
    Ivan Dimitrov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
2 posts, 0 answered