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

Forums / Bugs & Issues / News module error

News module error

6 posts, 0 answered
  1. Jason M
    Jason M avatar
    108 posts
    Registered:
    15 Jan 2007
    09 Mar 2009
    Link to this post

    Randomly we get the following error on pages that use the news module controls.  The only way to "solve" this it to duplicate the page and delete the old one.  This page uses the NewsList control.

    I noticed a SQL timout error, but the rest of our site is responding without issue.  This seems to be something with the UrlRewriterService.  Any ideas?

    This is how we've configured it in our web.config:

    <add name="News" urlRewriteFormat="[Publication_Date]/[Title].aspx" urlDateTimeFormat="yy-MM-dd" urlWhitespaceChar="_" visible="False" defaultMetaField="Title" securityProviderName="" allowVersioning="True" applicationName="/News" versioningProviderName="" commentsModeration="true" connectionStringName="GenericContentConnection" type="Telerik.Cms.Engine.Data.Providers.DefaultProvider, Telerik.Cms.Engine.Data"/>


    Detailed Error Message:

    3/9/2009 10:40:04 AM [UNKNOWN]  
    ************************************************************************************  
    ID: c0b26fdb-d824-4294-b7ab-9816216085f1; Code: 3005; Occurrence: 70; Sequence: 7755  
    ------------------------------------------------------------------------------------  
     
    Application information:  
        Machine name: OTTWEB1  
        OS Version: Microsoft Windows NT 5.2.3790 Service Pack 2  
        Product Version: 3.2.1526.2  
        Application Path: D:\webroot\cms\  
        Debug: False  
     
    Process information:  
        Process ID: 3588  
        Process Name: w3wp  
     
    Request information:  
        Request URL: /press/op-eds.aspx  
        Rewrite URL: http://www.mysite.com/press/op-eds.aspx  
        Url Referrer: http://www.mysite.com/press/default.aspx  
        Is Authenticated: True  
        Authentication Type: Forms  
        User: moodie@conferenceboard.ca  
        User Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.2)  
        User Address: 111.111.111.1  
     
    Variables:  
        cmscurrcult: en  
        AspSessionIDManagerInitializeRequestCalled: True  
        Sitefinity.OriginalURL: /press/op-eds.aspx  
        cmspageid: 699ed693-969c-4e99-a9e1-642efdf7d8a6  
        RadControlRandomNumber: 0  
        cmsurlcontext: Telerik.Cms.Web.CmsUrlContext  
     
    - L0 -------------------------------------------------------------------------------  
     
    Exception Type: System.TypeInitializationException  
     
    Message: The type initializer for 'Telerik.News.UrlRewriterService' threw an exception.  
     
    Source: Telerik.News  
     
    Stack Trace:   
       at Telerik.News.UrlRewriterService.FormatURL(IContent item, GenericContentElement settings)  
       at Telerik.News.WebControls.NewsList.Repeater_ItemDataBound(Object sender, RepeaterItemEventArgs e)  
       at System.Web.UI.WebControls.Repeater.OnItemDataBound(RepeaterItemEventArgs e)  
       at System.Web.UI.WebControls.Repeater.CreateItem(Int32 itemIndex, ListItemType itemType, Boolean dataBind, Object dataItem)  
       at System.Web.UI.WebControls.Repeater.CreateControlHierarchy(Boolean useDataSource)  
       at System.Web.UI.WebControls.Repeater.OnDataBinding(EventArgs e)  
       at System.Web.UI.WebControls.Repeater.DataBind()  
       at Telerik.News.WebControls.NewsList.CreateChildControls()  
       at System.Web.UI.Control.EnsureChildControls()  
       at System.Web.UI.Control.PreRenderRecursiveInternal()  
       at System.Web.UI.Control.PreRenderRecursiveInternal()  
       at System.Web.UI.Control.PreRenderRecursiveInternal()  
       at System.Web.UI.Control.PreRenderRecursiveInternal()  
       at System.Web.UI.Control.PreRenderRecursiveInternal()  
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)  
    ------------------------------------------------------------------------------------  
    - L1 -------------------------------------------------------------------------------  
     
    Exception Type: System.Reflection.TargetInvocationException  
     
    Message: Exception has been thrown by the target of an invocation.  
     
    Source: mscorlib  
     
    Stack Trace:   
       at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)  
       at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)  
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)  
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)  
       at System.Reflection.RuntimePropertyInfo.GetValue(Object obj, BindingFlags invokeAttr, Binder binder, Object[] index, CultureInfo culture)  
       at System.Reflection.RuntimePropertyInfo.GetValue(Object obj, Object[] index)  
       at Nolics.ORMapper.Base.FieldPropertyDescriptor.GetValue(Object parent)  
       at Nolics.ORMapper.Base.RelationToAttribute.Nolics.ORMapper.Base.IGroup.EnumMembers(Object parent, String groupName)  
       at Nolics.ORMapper.Base.GroupEnumerator.scan(String group, IOdbView obj)  
       at Nolics.ORMapper.Base.GroupEnumerator.scan(String group, IOdbView obj)  
       at Nolics.ORMapper.Base.GroupEnumerator.ScanRoot(IOdbView root)  
       at Nolics.ORMapper.Base.GroupSerialize.Add(String root, IOdbView dbClass)  
       at Nolics.ORMapper.Base.OdbDataProvider.ProcessGroupQuery(DataSet ds, OdbQueryInfo queryInfo, String group)  
       at Nolics.ORMapper.DataProviders.SQLDataProvider.ExecQuery(DataSet queries)  
       at Nolics.ORMapper.Base.QueryBase`1.LoadQuery(Int32 maxElements, Int32 fromElement)  
       at Nolics.ORMapper.Base.QueryBase`1.Load(Int32 maxElements, Int32 from)  
       at Telerik.Cms.Engine.Data.Providers.DefaultProvider.GetContent(Int32 from, Int32 max, String sortExp, String tagName, Nullable`1 status, Guid[] parentIDs, IMetaSearchInfo[] filter)  
       at Telerik.Cms.Engine.ContentManager.GetContent()  
       at Telerik.News.UrlRewriterService..cctor()  
    ------------------------------------------------------------------------------------  
    - L2 -------------------------------------------------------------------------------  
     
    Exception Type: System.Data.SqlClient.SqlException  
     
    Message: Timeout expired.  The timeout period elapsed prior to completion of the operation or the server is not responding.  
     
    Source: .Net SqlClient Data Provider  
     
    Stack Trace:   
       at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)  
       at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)  
       at System.Data.SqlClient.TdsParserStateObject.ReadSniError(TdsParserStateObject stateObj, UInt32 error)  
       at System.Data.SqlClient.TdsParserStateObject.ReadSni(DbAsyncResult asyncResult, TdsParserStateObject stateObj)  
       at System.Data.SqlClient.TdsParserStateObject.ReadNetworkPacket()  
       at System.Data.SqlClient.TdsParserStateObject.ReadBuffer()  
       at System.Data.SqlClient.TdsParserStateObject.ReadByte()  
       at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)  
       at System.Data.SqlClient.SqlInternalConnectionTds.CompleteLogin(Boolean enlistOK)  
       at System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, Boolean ignoreSniOpenTimeout, Int64 timerExpire, SqlConnection owningObject)  
       at System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(String host, String newPassword, Boolean redirectedUserInstance, SqlConnection owningObject, SqlConnectionString connectionOptions, Int64 timerStart)  
       at System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance)  
       at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance)  
       at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection)  
       at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options)  
       at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject)  
       at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject)  
       at System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject)  
       at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection)  
       at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)  
       at System.Data.SqlClient.SqlConnection.Open()  
       at Nolics.ORMapper.DataProviders.SqlServer2005Provider.newConnection(String connectionString)  
       at Nolics.ORMapper.DataProviders.SQLDataProvider.GetConnection()  
       at Nolics.ORMapper.DataProviders.SqlServer2005Provider.GetSQLBuilder()  
       at Nolics.ORMapper.DataProviders.SQLDataProvider.ExecuteKeyQuery(DataSet queries, Boolean fPrimaryKey)  
       at Nolics.ORMapper.DataProviders.SQLDataProvider.QueryByForeignKey(DataSet keys)  
       at Nolics.ORMapper.Base.ForeignKeyQuery.LoadFKQuery()  
       at Nolics.ORMapper.Base.Relation`1.Load()  
       at Nolics.ORMapper.Base.Relation`1.Refresh()  
       at Nolics.ORMapper.Base.Relation`1.DoAutoRefresh(ObKey foreignKey)  
       at Telerik.Cms.Engine.Data.CmsContentBase.get_ContentVersions()  
    ------------------------------------------------------------------------------------ 

  2. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    09 Mar 2009
    Link to this post
    Hello Jason M,

    Looking at the stack trace, I see that the problem comes from the NewsList control. This control is obsolete which means that we do not test against it anymore.
    I suggest you to replace that control with the NewsView control, and I believe that the problem will be resolved.

    Sincerely yours,
    Georgi
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. Jason M
    Jason M avatar
    108 posts
    Registered:
    15 Jan 2007
    09 Mar 2009
    Link to this post
    Thanks for the quick response Georgi,

    I checked the News folder (\Sitefinity\ControlTemplates\News\) and didn't notice this control.  We're using Sitefinity 3.2 SP1.

    J
  4. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    10 Mar 2009
    Link to this post
    Hi Jason M,

    I apologize for misleading you, actully the NewsView control was added in the next service pack - sp2. I still suggest you to upgrade to a later version and use the new control.
    Let me know if this is an option for you.

    Best wishes,
    Georgi
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  5. Jason M
    Jason M avatar
    108 posts
    Registered:
    15 Jan 2007
    10 Mar 2009
    Link to this post
    Aha.  We're hoping to upgrade to 3.6 once SP1 is out.  Is there anyway to just upgrade this control?  Should I just copy the NewsView control from 3.2 SP2 and the Telerik.News.dlls?  Any changes to the web.config?

    J
  6. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    13 Mar 2009
    Link to this post
    Hi Jason M,

    Unfortunately this is no way to upgrade just the News functionality. This is because the Url handling is also changed in order the new control to works. There are many assembly dependencies that should be taken into consideration.

    Sincerely yours,
    Georgi
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Register for webinar
6 posts, 0 answered