Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

ADXStudios Portal error

Posted on by Microsoft Employee

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:

4135.crm.jpg

Any suggestions on how to fix this?

*This post is locked for comments

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: ADXStudios Portal error

    I resolved this issue by checking the dependencies on osafehtm.dll, and found a missing .dll that is part of the Visual C++ Redistributable Package . The 2008 version was on the server, so I installed the 2010 version to get that .dll (msvcr100.dll) back on and that solved the issue.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans