web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Invalid Operation Exception : Service already has an implementation

(0) ShareShare
ReportReport
Posted on by

Hello All,

We have a custom WebResource html page which acts as a dashboard with a few tiles which link to the tree data, master data views etc. After upgrading our CRM to 2016 this page is not working. When i click on the tile instead of taking me to the respective view in the CRM , it throws a Microsoft Dynamics Error Dialog with following details : 

<ScriptErrorDetails>
<Message>Sys.InvalidOperationException: Service Xrm.Interfaces.Services.IMostRecentlyViewedService already has an implementation</Message>
<Line>25863</Line>
<URL></URL>
<PageURL>....</PageURL>
<Function>anonymouslidOperationException:Sys.InvalidOperationException:ServiceXrm.Interfaces.Services.IMostRecentlyViewedServicealreadyhasanimplementation</Function>
<FunctionRaw>Sys.InvalidOperationException: Sys.InvalidOperationException: Service Xrm.Interfaces.Services.IMostRecentlyViewedService already has an implementation</FunctionRaw>
<CallStack>
<Function>anonymouslidOperationException:Sys.InvalidOperationException:ServiceXrm.Interfaces.Services.IMostRecentlyViewedServicealreadyhasanimplementation</Function>
</CallStack>
</ScriptErrorDetails>

Any suggestions would be helpful.

Thanks

Pradeep

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    nghieppham Profile Picture
    4,755 on at

    Hi Pradeep Bhat,

    You need to check Url of view is correct or not, please capture the ViewUrl when you take a action and pass to the browser for testing.

    Regards,

  • Community Member Profile Picture
    on at

    Hi Pham, Thanks for your reply. I checked the Url and its correct. I tested it in the browser and its opening the view.

    For some of the links am getting the below error as well :

     <ScriptErrorDetails>

      <Message>Sys.InvalidOperationException: Service Xrm.Interfaces.Services.IMostRecentlyViewedService is not registered with this instance</Message>

      <Line>24900</Line>

      <URL>/_common/global.ashx?ver=-1889577526</URL>

      <PageURL>...</PageURL>

      <Function>anonymouslidOperationException:Sys.InvalidOperationException:ServiceXrm.Interfaces.Services.IMostRecentlyViewedServiceisnotregisteredwiththisinstance</Function>

      <FunctionRaw>Sys.InvalidOperationException: Sys.InvalidOperationException: Service Xrm.Interfaces.Services.IMostRecentlyViewedService is not registered with this instance</FunctionRaw>

      <CallStack>

       <Function>anonymouslidOperationException:Sys.InvalidOperationException:ServiceXrm.Interfaces.Services.IMostRecentlyViewedServiceisnotregisteredwiththisinstance</Function>

      </CallStack>

     </ScriptErrorDetails>

  • Suggested answer
    nghieppham Profile Picture
    4,755 on at

    Hi Pradeep,

    In this case, you should check your custom button to open the web resource, please debug it and trace the problem in your custom code. Try to catch up the message in your custom code. 

    As your question, it had worked in CRM 2015, just not work after you upgrade to CRM 2016, maybe some old code has been supported in CRM 2016, just check again about the method to call this view.

    Regards,

     

     

     

  • Community Member Profile Picture
    on at

    Sure Pham. Thank you very much for your time.

    Regards,

    Pradeep

  • ttangelder Profile Picture
    18 on at

    Hi Pradeep,

    Did you find the cause of this issue? It is happening to us as well. No customized code. It is breaking in global.ashx.

    Toby

  • Community Member Profile Picture
    on at

    Hi ttangelder,

    This issue still exists and we were not able to resolve it. Will post here if we happen to fix it. Please feel free to update the thread if any from your side.

    Thanks,

    Pradeep

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans