Server Error in '/' Application.

An unexpected network error occurred.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.IO.IOException: An unexpected network error occurred.


Source Error:


Line 98: { Line 99: var slug = gallery.Name.ToLower().Replace(" ", "").Trim(); Line 100: var imageList = gallery.GalleryImages.ToString().Split(new string[] { "," }, StringSplitOptions.RemoveEmptyEntries); Line 101: var images = Umbraco.Media(imageList); Line 102: var firstImage = images.FirstOrDefault();

Source File: C:\home\site\wwwroot\Views\MediaGalleryPage.cshtml    Line: 100

Stack Trace:


[IOException: An unexpected network error occurred. ] System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +12796714 System.IO.FileStream.ReadCore(Byte[] buffer, Int32 offset, Int32 count) +12907726 System.IO.FileStream.Read(Byte[] array, Int32 offset, Int32 count) +208 System.IO.BinaryReader.Read(Byte[] buffer, Int32 index, Int32 count) +79 Lucene.Net.Store.SimpleFSIndexInput.ReadInternal(Byte[] b, Int32 offset, Int32 len) +194 Lucene.Net.Store.BufferedIndexInput.ReadBytes(Byte[] b, Int32 offset, Int32 len, Boolean useBuffer) +235 Lucene.Net.Index.CSIndexInput.ReadInternal(Byte[] b, Int32 offset, Int32 len) +97 Lucene.Net.Store.BufferedIndexInput.Refill() +158 Lucene.Net.Store.BufferedIndexInput.ReadByte() +21 Lucene.Net.Store.IndexInput.ReadInt() +16 Lucene.Net.Store.IndexInput.ReadLong() +17 Lucene.Net.Index.FieldsReader.Doc(Int32 n, FieldSelector fieldSelector) +29 Lucene.Net.Index.SegmentReader.Document(Int32 n, FieldSelector fieldSelector) +40 Lucene.Net.Index.DirectoryReader.Document(Int32 n, FieldSelector fieldSelector) +72 Lucene.Net.Index.IndexReader.Document(Int32 n) +29 Lucene.Net.Search.IndexSearcher.Doc(Int32 i) +13 Examine.LuceneEngine.SearchResults.CreateFromDocumentItem(Int32 i) in C:\projects\examine-qvx04\src\Examine\LuceneEngine\SearchResults.cs:221 Examine.LuceneEngine.<Skip>d__26.MoveNext() in C:\projects\examine-qvx04\src\Examine\LuceneEngine\SearchResults.cs:253 Examine.LuceneEngine.DecrementReaderResult.MoveNext() in C:\projects\examine-qvx04\src\Examine\LuceneEngine\SearchResults.cs:301 System.Linq.Enumerable.FirstOrDefault(IEnumerable`1 source) +168 Umbraco.Web.PublishedCache.XmlPublishedCache.PublishedMediaCache.GetUmbracoMediaCacheValues(Int32 id) +246 Umbraco.Web.PublishedCache.XmlPublishedCache.<>c__DisplayClass38_0.<GetCacheValues>b__0() +15 Umbraco.Core.Cache.<>c__DisplayClass10_0.<GetSafeLazy>b__0() +31 [Exception: Exception while creating a value.] Umbraco.Core.Cache.HttpRuntimeCacheProvider.GetCacheItemInternal(String cacheKey, Func`1 getCacheItem, Nullable`1 timeout, Boolean isSliding, CacheItemPriority priority, CacheItemRemovedCallback removedCallback, Func`1 dependency) +888 Umbraco.Core.Cache.HttpRuntimeCacheProvider.GetCacheItem(String cacheKey, Func`1 getCacheItem, Nullable`1 timeout, Boolean isSliding, CacheItemPriority priority, CacheItemRemovedCallback removedCallback, String[] dependentFiles) +111 Umbraco.Core.Cache.DeepCloneRuntimeCacheProvider.GetCacheItem(String cacheKey, Func`1 getCacheItem, Nullable`1 timeout, Boolean isSliding, CacheItemPriority priority, CacheItemRemovedCallback removedCallback, String[] dependentFiles) +114 Umbraco.Web.PublishedCache.XmlPublishedCache.PublishedMediaCache.GetCacheValues(Int32 id, Func`2 func) +234 Umbraco.Web.PublishedCache.XmlPublishedCache.PublishedMediaCache.GetUmbracoMedia(Int32 id) +69 Umbraco.Web.PublishedCache.XmlPublishedCache.PublishedMediaCache.GetById(UmbracoContext umbracoContext, Boolean preview, Int32 nodeId) +9 Umbraco.Web.PublishedCache.ContextualPublishedCache`1.GetById(Boolean preview, Int32 contentId) +38 Umbraco.Web.<>c__DisplayClass32_0.<TypedDocumentsByIds>b__0(Int32 eachId) +35 System.Linq.WhereSelectArrayIterator`2.MoveNext() +69 System.Linq.WhereSelectEnumerableIterator`2.MoveNext() +89 System.String.Join(String separator, IEnumerable`1 values) +64 Umbraco.Core.Models.PublishedContent.PublishedContentEnumerable.ToString() +129 ASP._Page_Views_MediaGalleryPage_cshtml.Execute() in C:\home\site\wwwroot\Views\MediaGalleryPage.cshtml:100 System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +198 System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +105 System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +78 System.Web.Mvc.RazorView.RenderView(ViewContext viewContext, TextWriter writer, Object instance) +256 System.Web.Mvc.BuildManagerCompiledView.Render(ViewContext viewContext, TextWriter writer) +107 Umbraco.Core.Profiling.ProfilingView.Render(ViewContext viewContext, TextWriter writer) +113 System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) +290 System.Web.Mvc.ControllerActionInvoker.InvokeActionResult(ControllerContext controllerContext, ActionResult actionResult) +13 System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +56 System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +420 System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +420 System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +420 System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult) +52 System.Web.Mvc.Async.<>c__DisplayClass3_6.<BeginInvokeAction>b__4() +198 System.Web.Mvc.Async.<>c__DisplayClass3_1.<BeginInvokeAction>b__1(IAsyncResult asyncResult) +100 System.Web.Mvc.Async.WrappedAsyncResult`1.CallEndDelegate(IAsyncResult asyncResult) +10 System.Web.Mvc.Async.WrappedAsyncResultBase`1.End() +49 System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult) +27 System.Web.Mvc.<>c.<BeginExecuteCore>b__152_1(IAsyncResult asyncResult, ExecuteCoreState innerState) +11 System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +29 System.Web.Mvc.Async.WrappedAsyncResultBase`1.End() +49 System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +45 System.Web.Mvc.<>c.<BeginExecute>b__151_2(IAsyncResult asyncResult, Controller controller) +13 System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +22 System.Web.Mvc.Async.WrappedAsyncResultBase`1.End() +49 System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult) +26 System.Web.Mvc.Controller.System.Web.Mvc.Async.IAsyncController.EndExecute(IAsyncResult asyncResult) +10 System.Web.Mvc.<>c.<BeginProcessRequest>b__20_1(IAsyncResult asyncResult, ProcessRequestState innerState) +28 System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +29 System.Web.Mvc.Async.WrappedAsyncResultBase`1.End() +49 System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +28 System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) +9 System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +9850961 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +50 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +163


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4690.0