Azure Web Sites, Gets WinIOError occasionaly when doing search
Occasonly when doing a search i get the error below. Its as if a server has changed, and ublogsy cant see the new server. Any thoughts?
Umbraco 4.11.0
asp.net 4.0
Windows Azure
o
Error Loading Razor Script (file: wes-Blog Roll) The specified network name is no longer available. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileStream.ReadCore(Byte[] buffer, Int32 offset, Int32 count) at System.IO.FileStream.Read(Byte[] array, Int32 offset, Int32 count) at System.IO.BinaryReader.Read(Byte[] buffer, Int32 index, Int32 count) at Lucene.Net.Store.SimpleFSDirectory.SimpleFSIndexInput.ReadInternal(Byte[] b, Int32 offset, Int32 len) at Lucene.Net.Store.BufferedIndexInput.Refill() at Lucene.Net.Store.BufferedIndexInput.ReadByte() at Lucene.Net.Store.IndexInput.ReadVInt() at Lucene.Net.Index.FieldsReader.Doc(Int32 n, FieldSelector fieldSelector) at Lucene.Net.Index.SegmentReader.Document(Int32 n, FieldSelector fieldSelector) at Lucene.Net.Index.DirectoryReader.Document(Int32 n, FieldSelector fieldSelector) at Lucene.Net.Index.IndexReader.Document(Int32 n) at Lucene.Net.Search.IndexSearcher.Doc(Int32 i) at Examine.LuceneEngine.SearchResults.<Skip>d__1.MoveNext() at System.Linq.Buffer`1..ctor(IEnumerable`1 source) at System.Linq.OrderedEnumerable`1.<GetEnumerator>d__0.MoveNext() at uBlogsy.BusinessLogic.PostService.DoSearch(String searchTerm, IEnumerable`1 sorted) in xxxxxx\Projects\uBlogsy_2.1_src\uBlogsy\uBlogsy.BusinessLogic\PostService.cs:line 519 at uBlogsy.BusinessLogic.PostService.GetPosts(Int32 nodeId, String tag, String category, String author, String searchTerm, String commenter, Int32 pageNo, Int32 itemsPerPage) in xxxxxxx\Projects\uBlogsy_2.1_src\uBlogsy\uBlogsy.BusinessLogic\PostService.cs:line 207 at ASP._Page_macroScripts_blogRoll_cshtml.Execute() in c:\DWASFiles\sites\wesv4\VirtualDirectory0\site\wwwroot\macroScripts\wes-blogRoll.cshtml:line 28 at System.Web.WebPages.WebPageBase.ExecutePageHierarchy() at System.Web.WebPages.WebPage.ExecutePageHierarchy(IEnumerable`1 executors) at System.Web.WebPages.WebPage.ExecutePageHierarchy() at System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) at umbraco.MacroEngines.RazorMacroEngine.ExecuteRazor(MacroModel macro, INode currentPage) at umbraco.MacroEngines.RazorMacroEngine.Execute(MacroModel macro, INode currentPage)
Im sure its something to do with azure, but I never get the error when using umbracos internal search. Thats the only reason I would ask.
Does your search logic similar to the way the internal one works, or does your PostService have something that would cause it to hang up if the server is in a "cold state"?
Think I will play a little with your source, maybe I can create somethign that checks to see if the server has moved or gone cold since hte last time it was used.
I am using your 2.1 source, any breaking changes between it and your more current one I should be aware of?
Azure Web Sites, Gets WinIOError occasionaly when doing search
Occasonly when doing a search i get the error below. Its as if a server has changed, and ublogsy cant see the new server. Any thoughts?
Umbraco 4.11.0
asp.net 4.0
Windows Azure
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.ReadCore(Byte[] buffer, Int32 offset, Int32 count)
at System.IO.FileStream.Read(Byte[] array, Int32 offset, Int32 count)
at System.IO.BinaryReader.Read(Byte[] buffer, Int32 index, Int32 count)
at Lucene.Net.Store.SimpleFSDirectory.SimpleFSIndexInput.ReadInternal(Byte[] b, Int32 offset, Int32 len)
at Lucene.Net.Store.BufferedIndexInput.Refill()
at Lucene.Net.Store.BufferedIndexInput.ReadByte()
at Lucene.Net.Store.IndexInput.ReadVInt()
at Lucene.Net.Index.FieldsReader.Doc(Int32 n, FieldSelector fieldSelector)
at Lucene.Net.Index.SegmentReader.Document(Int32 n, FieldSelector fieldSelector)
at Lucene.Net.Index.DirectoryReader.Document(Int32 n, FieldSelector fieldSelector)
at Lucene.Net.Index.IndexReader.Document(Int32 n)
at Lucene.Net.Search.IndexSearcher.Doc(Int32 i)
at Examine.LuceneEngine.SearchResults.<Skip>d__1.MoveNext()
at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
at System.Linq.OrderedEnumerable`1.<GetEnumerator>d__0.MoveNext()
at uBlogsy.BusinessLogic.PostService.DoSearch(String searchTerm, IEnumerable`1 sorted) in xxxxxx\Projects\uBlogsy_2.1_src\uBlogsy\uBlogsy.BusinessLogic\PostService.cs:line 519
at uBlogsy.BusinessLogic.PostService.GetPosts(Int32 nodeId, String tag, String category, String author, String searchTerm, String commenter, Int32 pageNo, Int32 itemsPerPage) in xxxxxxx\Projects\uBlogsy_2.1_src\uBlogsy\uBlogsy.BusinessLogic\PostService.cs:line 207
at ASP._Page_macroScripts_blogRoll_cshtml.Execute() in c:\DWASFiles\sites\wesv4\VirtualDirectory0\site\wwwroot\macroScripts\wes-blogRoll.cshtml:line 28
at System.Web.WebPages.WebPageBase.ExecutePageHierarchy()
at System.Web.WebPages.WebPage.ExecutePageHierarchy(IEnumerable`1 executors)
at System.Web.WebPages.WebPage.ExecutePageHierarchy()
at System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage)
at umbraco.MacroEngines.RazorMacroEngine.ExecuteRazor(MacroModel macro, INode currentPage)
at umbraco.MacroEngines.RazorMacroEngine.Execute(MacroModel macro, INode currentPage)
"The specified network name is no longer available."
An azure issue?
Im sure its something to do with azure, but I never get the error when using umbracos internal search. Thats the only reason I would ask.
Does your search logic similar to the way the internal one works, or does your PostService have something that would cause it to hang up if the server is in a "cold state"?
It's a standard examine search. Nothing custom or special.
A workaround could be to add a try catch around the call in the macroscript. That's all I can think of sorry.
Gotcha,
Think I will play a little with your source, maybe I can create somethign that checks to see if the server has moved or gone cold since hte last time it was used.
I am using your 2.1 source, any breaking changes between it and your more current one I should be aware of?
go with this one: https://bitbucket.org/anthonydotnet/ublogsy/
Awesome, thanks for sharing. If I come up with a solution to this, i will post back in this thread.
is working on a reply...