When trying to use the search function (top right of portal) in 7.0.0026 we get the following error:
"We're sorry, but something went wrong. We've been notified about this issue and we'll take a look at it shortly."
Event log shows:
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 8/13/2018 11:22:02 AM
Event time (UTC): 8/13/2018 3:22:02 PM
Event ID: c63eb8027db3403782ac6f7e83f5def9
Event sequence: 6331
Event occurrence: 33
Event detail code: 0
Application information:
Application domain: /LM/W3SVC/2/ROOT-1-131786407489811222
Trust level: Full
Application Virtual Path: /
Application Path: D:\Program Files (x86)\Adxstudio\XrmPortals\7.0.0026\Samples\MasterPortal\
Machine name: <REMOVED>
Process information:
Process ID: 4472
Process name: w3wp.exe
Account name: IIS APPPOOL\<REMOVED>
Exception information:
Exception type: DllNotFoundException
Exception message: Unable to load DLL 'osafehtm.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
at SafeHtml.SafeHtmSanitizer.NativeMethods.OshFGetSafeHTMLAllocForManaged2(Byte[] rgbSrc, Int32 cbSrc, Int32 cpSrc, Byte** rgbDst, Int32& cbDst, Int32 cpDst, Int32 grfosh)
at SafeHtml.SafeHtmSanitizer.BuildSafeHtml(String existingHtml, SafeHtmlFlags flags, String& newHtml)
at SafeHtml.SafeHtmSanitizer.GetSafeHtml(String currentHtml, SafeHtmlFlags flags, Boolean& wasBad)
at SafeHtml.SafeHtmSanitizer.GetSafeHtml(String currentHtml)
at ASP.pages_search_aspx.__DataBind__control19(Object sender, EventArgs e)
at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding)
at System.Web.UI.Control.DataBindChildren()
at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding)
at System.Web.UI.Control.DataBindChildren()
at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding)
at System.Web.UI.WebControls.ListView.CreateItemsWithoutGroups(ListViewPagedDataSource dataSource, Boolean dataBinding, InsertItemPosition insertPosition, ArrayList keyArray)
at System.Web.UI.WebControls.ListView.CreateChildControls(IEnumerable dataSource, Boolean dataBinding)
at System.Web.UI.WebControls.ListView.PerformDataBinding(IEnumerable data)
at System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data)
at System.Web.UI.WebControls.DataBoundControl.PerformSelect()
at System.Web.UI.WebControls.ListView.PerformSelect()
at System.Web.UI.Control.DataBindChildren()
at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding)
at System.Web.UI.Control.DataBindChildren()
at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding)
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.EnsureDataBound()
at System.Web.UI.WebControls.Repeater.OnPreRender(EventArgs e)
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.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Request information:
Request URL: domain.removed.com/search;q=app
Request path: /search/
User host address: <REMOVED>
User:
Is authenticated: False
Authentication Type:
Thread account name: IIS APPPOOL\<REMOVED>
Thread information:
Thread ID: 25
Thread account name: IIS APPPOOL\<REMOVED>
Is impersonating: False
Stack trace: at SafeHtml.SafeHtmSanitizer.NativeMethods.OshFGetSafeHTMLAllocForManaged2(Byte[] rgbSrc, Int32 cbSrc, Int32 cpSrc, Byte** rgbDst, Int32& cbDst, Int32 cpDst, Int32 grfosh)
at SafeHtml.SafeHtmSanitizer.BuildSafeHtml(String existingHtml, SafeHtmlFlags flags, String& newHtml)
at SafeHtml.SafeHtmSanitizer.GetSafeHtml(String currentHtml, SafeHtmlFlags flags, Boolean& wasBad)
at SafeHtml.SafeHtmSanitizer.GetSafeHtml(String currentHtml)
at ASP.pages_search_aspx.__DataBind__control19(Object sender, EventArgs e)
at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding)
at System.Web.UI.Control.DataBindChildren()
at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding)
at System.Web.UI.Control.DataBindChildren()
at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding)
at System.Web.UI.WebControls.ListView.CreateItemsWithoutGroups(ListViewPagedDataSource dataSource, Boolean dataBinding, InsertItemPosition insertPosition, ArrayList keyArray)
at System.Web.UI.WebControls.ListView.CreateChildControls(IEnumerable dataSource, Boolean dataBinding)
at System.Web.UI.WebControls.ListView.PerformDataBinding(IEnumerable data)
at System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data)
at System.Web.UI.WebControls.DataBoundControl.PerformSelect()
at System.Web.UI.WebControls.ListView.PerformSelect()
at System.Web.UI.Control.DataBindChildren()
at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding)
at System.Web.UI.Control.DataBindChildren()
at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding)
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.EnsureDataBound()
at System.Web.UI.WebControls.Repeater.OnPreRender(EventArgs e)
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.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
I believe this started happening when we went to portal version 7.0.0026 as I see no errors in the event log prior that time.
I see that OSAFEHTM.DLL referenced in the registry with the correct path (maybe it needs to be re-registered?)
The admin for CRM also sent me this from within CRM:
Any suggestions on how to fix this?
*This post is locked for comments