Hi. My Umbraco AppPool is crashing every few hours and I believe I've traced it to a razor script I have, below:
var gallery = Model.AncestorOrSelf("gallery");
if (gallery == null)
{
if (Model.articleGalleryChooser != null && Model.articleGalleryChooser.GetType() == typeof(Int32))
{
gallery = Library.NodeById(Model.articleGalleryChooser);
}
else
{
gallery = Model;
}
}
var galleryImages = gallery.Descendants("galleryImage").OrderBy("createDate desc");
var galleryImageCount = galleryImages.Count();
short maxImageHeight = 409;
short maxImageWidth = 554;
var index = 0;
var i = 0;
var description = "";
int.TryParse(Request.QueryString["index"], out index);
After this I proceed to look through the galleryImages collection:
@foreach (var galleryImage in galleryImages) { }
I thought that's all pretty straight forward but looking at a stack trace I noticed:
Which version of Umbraco are you using> This sounds very much like this issue I created in Codeplex - http://umbraco.codeplex.com/workitem/30498 This was (supposed) to have been fixed in 4.7.1.1 So I'd suggest upgrading to that.
DynamicNode Stack Overflow
Hi. My Umbraco AppPool is crashing every few hours and I believe I've traced it to a razor script I have, below:
After this I proceed to look through the galleryImages collection:
I thought that's all pretty straight forward but looking at a stack trace I noticed:
Which version of Umbraco are you using> This sounds very much like this issue I created in Codeplex - http://umbraco.codeplex.com/workitem/30498 This was (supposed) to have been fixed in 4.7.1.1 So I'd suggest upgrading to that.
Yep, hat's running version 4.7
Thanks Dan, I'll try upgrading and see if that solves it.
is working on a reply...