Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Clem 6 posts 26 karma points
    Jan 30, 2010 @ 00:34
    Clem
    0

    blog 4 umbraco crashing

    I've got an issue with blog 4 umbraco crashing upon clicking the F5 key repeatedly (20 to 30 times) when on the blog home page.

    Normally the blog works fine but after repeated refreshes the page hangs for a while and then part renders and part doesn't with various XSL errors reported. Normally all 3 below but occasionaly only 1 or 2 of these errors:
    Error parsing XSLT file: \xslt\BlogListPosts.xslt
    Error parsing XSLT file: \xslt\BlogLatestComments.xslt
    Error parsing XSLT file: \xslt\BlogCategories.xslt

    Trying to access any other part of the umbraco installation (e.g. the admin section) then shows the following error:
    Timeout expired.  The timeout period elapsed prior to obtaining a connection from the pool.  This may have occurred because all pooled connections were in use and max pool size was reached.

    I initially thought it may be due to my customization, but I installed a fresh version of umbraco and blog4umbraco and the same issue occurs.

    Anybody else experiencing this or any ideas what might be causing this?

    Has blog4umbraco been stress tested at all?

    Thanks,
    Clem

    My setup:

    Windows 7 64 bit
    IIS 7.5
    Umbraco 4.0.3
    Blog4Umbraco 2.0.24
    Microsoft SQL Server Management Studio      10.0.2531.0
    Microsoft Analysis Services Client Tools      10.0.1600.22
    Microsoft Data Access Components (MDAC)      6.1.7600.16385
    Microsoft MSXML      3.0 4.0 5.0 6.0
    Microsoft Internet Explorer      8.0.7600.16385
    Microsoft .NET Framework      2.0.50727.4927
    Operating System      6.1.7600

    Stack Trace:

    [InvalidOperationException: Timeout expired.  The timeout period elapsed prior to obtaining a connection from the pool.  This may have occurred because all pooled connections were in use and max pool size was reached.]
       System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +6264689
       System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +6265031
       System.Data.SqlClient.SqlConnection.Open() +258
       Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteScalar(String connectionString, CommandType commandType, String commandText, SqlParameter[] commandParameters) +89
       umbraco.DataLayer.SqlHelpers.SqlServer.SqlServerHelper.ExecuteScalar(String commandText, SqlParameter[] parameters) in d:\TeamCity\buildAgent\work\7380c184e9fcd3ea\umbraco\datalayer\SqlHelpers\SqlServer\SqlServerHelper.cs:51
       umbraco.DataLayer.SqlHelper`1.ExecuteScalar(String commandText, IParameter[] parameters) in d:\TeamCity\buildAgent\work\7380c184e9fcd3ea\umbraco\datalayer\SqlHelper.cs:194

    [SqlHelperException: Umbraco Exception (DataLayer): SQL helper exception in ExecuteScalar]
       umbraco.DataLayer.SqlHelper`1.ExecuteScalar(String commandText, IParameter[] parameters) in d:\TeamCity\buildAgent\work\7380c184e9fcd3ea\umbraco\datalayer\SqlHelper.cs:200
       umbraco.BusinessLogic.User.getUserId(String query, IParameter[] parameterValues) +60
       umbraco.BusinessLogic.User..ctor(String Login) +116
       umbraco.providers.UsersMembershipProvider.ValidateUser(String username, String password) in d:\TeamCity\buildAgent\work\7380c184e9fcd3ea\umbraco\providers\UsersMembershipProvider.cs:568
       umbraco.cms.presentation.login.Button1_Click(Object sender, EventArgs e) +99
       System.Web.UI.WebControls.Button.OnClick(EventArgs e) +115
       System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +140
       System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +29
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2981

     

     

     

  • Stephan Lonntorp 195 posts 212 karma points
    Jan 30, 2010 @ 08:48
    Stephan Lonntorp
    0

    It looks like it has to do with fetching comments, since these are stored in the db.

  • Clem 6 posts 26 karma points
    Jan 30, 2010 @ 11:34
    Clem
    0

    It seems you're right.

    I removed all the macros from the page beside 'BlogListPosts' and the problem still occured so i removed the comments functionality from the BlogListPosts.XSLT by changing the line

    <xsl:variable name="numberofcomments" select="count(BlogLibrary:GetCommentsForPost($post/@id)//comment)"/>
    to
    <xsl:variable name="numberofcomments" select="0"/>

    and then the problem dissapeared.

    So it's to do with fetching comments.

    I've just installed the setup on a seperate computer and the same issue occured. As this hasn't seemed to affect anybody else it may well be down to the way I'm setting up IIS or MSSQL. Is there anything in particular I should be looking out for?

    Or has anybody else experience similar a issue?

  • Dennis Milandt 189 posts 516 karma points
    Feb 09, 2010 @ 13:36
    Dennis Milandt
    0

    Looks like the connection to the database is not closed after selecting the comments,

    [InvalidOperationException: Timeout expired.  The timeout period
    elapsed prior to obtaining a connection from the pool.  This may have
    occurred because all pooled connections were in use and max pool size
    was reached.]
  • Robert DeHaan 5 posts 27 karma points
    Feb 09, 2010 @ 20:59
    Robert DeHaan
    0

    I have this exact same issue, how can I resolve it?

  • Stephan Lonntorp 195 posts 212 karma points
    Feb 09, 2010 @ 21:49
    Stephan Lonntorp
    2

    I checked the source, and Dennis is right, the connection isn't closed properly. I created an issue at codeplex, go vote!

     

    http://blog4umbraco.codeplex.com/WorkItem/View.aspx?WorkItemId=4007

  • Robert DeHaan 5 posts 27 karma points
    Feb 09, 2010 @ 22:13
    Robert DeHaan
    0

    I've a different error in my stack trace (same result...error parsing), but here is what I found important, if more details are needed please let me know.

    Umbraco Exception (DataLayer): SQL helper exception in ExecuteReader
    Umbraco Exception (DataLayer): SQL helper exception in ExecuteReader
      at umbraco.DataLayer.SqlHelper`1.ExecuteReader(String commandText, IParameter[] parameters) in d:\TeamCity\buildAgent\work\7380c184e9fcd3ea\umbraco\datalayer\SqlHelper.cs:line 244
      at Umlaut.Umb.Blog.BlogLibrary.GetCommentsForPost(Int32 id) in d:\TeamCity\buildAgent\work\6c8a1edaa924eb51\Umlaut.Umb.Blog\Library\BlogLibrary.cs:line 83
    0.00707767033977961 0.001435
    umbracoMacro InnerException Invalid object name 'comment'.
  • Laurence Gillian 597 posts 1214 karma points
    Mar 15, 2010 @ 17:28
    Laurence Gillian
    0

    Any update on this issue?

    I wish I'd spotted this issue before using it on a production site, >.< Lx

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Mar 17, 2010 @ 13:36
    Tim Geyssens
    0

    Issue should be fixed you can upgrade to version 2.0.26 by downloading the update here:

    http://nightly.umbraco.org/Blog4Umbraco/2.0.26/

     

     

  • Laurence Gillian 597 posts 1214 karma points
    Mar 17, 2010 @ 13:56
    Laurence Gillian
    0

    This update will make my friends day (: L

  • Ismail Mayat 4511 posts 10059 karma points MVP 2x admin c-trib
    May 21, 2010 @ 15:37
    Ismail Mayat
    0

    Guys,

    Downloaded the patch and i still get this error.  One thing i noticed is that in xsltextensions there is not entry for BlogLibrary not sure if there is bug with installer so that it does not put that entry in?

    regards

    Ismail

  • Ismail Mayat 4511 posts 10059 karma points MVP 2x admin c-trib
    May 24, 2010 @ 10:26
    Ismail Mayat
    0

    Figured out why it was crashing, i didnt have the entry in xsltExtensions.config for the tagsLib library i.e.

      <ext assembly="/bin/umbraco.editorControls" type="umbraco.editorControls.tags.library" alias="tagsLib" />

    I added that and now all works.
    Regards

    Ismial

  • singer777 69 posts 80 karma points
    Oct 15, 2010 @ 01:47
    singer777
    0

    So is this the correct code?

     

    <?xml version="1.0" encoding="utf-8" ?>
    <XsltExtensions>
      <!--
      <ext assembly="/bin/name-of-dll-without-dll-extension" type="Fully.Qualified.Name.Of.Type.Including.Namespace" alias="Prefix-to-use-in-xslt" />
      -->
      <ext assembly="/bin/umbraco.editorControls" type="umbraco.editorControls.tags.library" alias="tagsLib" />
      </XsltExtensions>

    I started with version 2.0.26 and still got the error as well. Another forum post in here had the wrong code that you gave, Ismai (they had backward slashes) but in any case, if I've entered your code in the correct spot in the page, NEITHER strip of code is fixing my problem. I still get " Error parsing XSLT file: \xslt\BlogListPosts.xslt" 

  • Dorian Collier 5 posts 25 karma points
    Oct 29, 2010 @ 11:56
    Dorian Collier
    0

    I'm having similar problems...

    Error parsing XSLT file: \xslt\BlogListPosts.xslt
    Error parsing XSLT file: \xslt\BlogLatestComments.xslt

    Also getting exception "Invalid object name 'comment'." when I try to view the root node of the content section.

    I believe my xsltExtensions.config file is correct...

    --------------------

    <?xml version="1.0" encoding="utf-8"?>
    <XsltExtensions>
      <!--
      <ext assembly="/bin/name-of-dll-without-dll-extension" type="Fully.Qualified.Name.Of.Type.Including.Namespace" alias="Prefix-to-use-in-xslt" />
      -->
      <ext assembly="\bin\umbraco.editorControls" type="umbraco.editorControls.tags.library" alias="tagsLib">
      </ext>
      <ext assembly="\bin\Umlaut.Umb.Blog" type="Umlaut.Umb.Blog.BlogLibrary" alias="BlogLibrary">
      </ext>
    </XsltExtensions>

    --------------------

    Help!

     

     

     

  • singer777 69 posts 80 karma points
    Nov 10, 2010 @ 05:07
    singer777
    0

    I downloaded the latest version 2.0.26 on two different Umbraco 4.0.3 websites and got this same error. Can someone offer any new ideas for fixes? Thank you!

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies