locked
CRM 2011 - RU10 - Exception message: Method not found: 'Void Microsoft.Xrm.Sdk.Query.FilterExpression.set_IsQuickFindFilter(Boolean)'. RRS feed

  • Question

  • Hi.

    Just trying out scenarios about the other problem i had with RU10, so i decided to install RU10 at one of my virtual image for crm 2011 development. After the installation, i bascially could not load any of my crm organizations anymore. Tracing through the event log and some research, it seems i am not the only one having the issue.

    check comments in this blog http://blogs.msdn.com/b/crminthefield/archive/2012/08/13/overview-and-podcast-update-rollup-10.aspx

    Has anyone else had the same issue? Luckily this is my development server not any production environment. The short error is:

    Exception message: Method not found: 'Void Microsoft.Xrm.Sdk.Query.FilterExpression.set_IsQuickFindFilter(Boolean)'.

    I have tried to reinstall RU10 / repair crm 2011 / remove and refresh GAC but without any luck.

    The details of the log is attached

    After installing the rollup 10, I can not enter the CRM. Every time I try to enter my organization fails. This is error appears in event viewer:
     
    Event code: 3005 
    
    Event message: An unhandled exception has occurred. 
    
    Event time: 8/20/2012 10:37:58 AM 
    
    Event time (UTC): 8/20/2012 8:37:58 AM 
    
    Event ID: 76d79d6117bc4eac942d697b1193d2ad 
    
    Event sequence: 3 
    
    Event occurrence: 1 
    
    Event detail code: 0 
    
    Application information: 
    
       Application domain: /LM/W3SVC/3/ROOT-1-129899254201817927 
    
       Trust level: Full 
    
       Application Virtual Path: / 
    
       Application Path: C:\Program Files\Microsoft Dynamics CRM\CRMWeb\ 
    
       Machine name: CRMDEV-VPC 
    
    Process information: 
    
       Process ID: 2652 
    
       Process name: w3wp.exe 
    
       Account name: NT AUTHORITY\NETWORK SERVICE 
    
    Exception information: 
    
       Exception type: MissingMethodException 
    
       Exception message: Method not found: 'Void Microsoft.Xrm.Sdk.Query.FilterExpression.set_IsQuickFindFilter(Boolean)'.
     
      at Microsoft.Crm.BusinessEntities.QueryFromLegacyQueryVisitor.Visit(FilterExpression filter)
     
      at Microsoft.Crm.BusinessEntities.QueryFromLegacyQueryVisitor.Visit(QueryExpression query)
     
      at Microsoft.Crm.BusinessEntities.ConversionHelpers.ConvertIfQueryExpression(Object source, Type destinationType)
     
      at Microsoft.Crm.BusinessEntities.ConversionHelpers.Convert(ICrmConversionContext conversionContext, Object source, Type destinationType)
     
      at Microsoft.Crm.Application.Platform.ServiceCommands.RetrieveMultipleCommand.CreateQueryRequest(QueryBase query, Boolean retrieveLatest)
     
      at Microsoft.Crm.Application.Caching.CustomResourceLoader.GetCustomResources(IOrganizationContext context, Int32 cacheKey)
     
      at Microsoft.Crm.Application.Caching.CustomResourceLoader.LoadCacheData(Int32 key, IOrganizationContext context)
     
      at Microsoft.Crm.Caching.CrmMultiOrgCache`2.LookupEntry(TKey key, IOrganizationContext context)
     
      at Microsoft.Crm.Application.ResourceManager.CustomResourceManager.TryGetCultureString(String name, CultureInfo culture, Boolean getSystemString, IOrganizationContext context)
     
      at Microsoft.Crm.Application.ResourceManager.CustomResourceManager.TryGetCultureString(String name, CultureInfo culture, IOrganizationContext context)
     
      at Microsoft.Crm.Application.ResourceManager.BasicResourceManager.GetCultureString(String name, CultureInfo culture, IOrganizationContext context)
     
      at Microsoft.Crm.Controls.BasicHeader..ctor()
     
      at Microsoft.Crm.Application.Controls.AppHeader..ctor()
     
      at ASP.avanadecrmdev_main_aspx.__BuildControlcrmHeader()
     
      at ASP.avanadecrmdev_main_aspx.__BuildControlTree(avanadecrmdev_main_aspx __ctrl)
     
      at ASP.avanadecrmdev_main_aspx.FrameworkInitialize()
     
      at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
     
      at System.Web.UI.Page.ProcessRequest()
     
      at System.Web.UI.Page.ProcessRequest(HttpContext context)
     
      at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
     
      at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
     
    Request information: 
    
       Request URL: http://XXXXX/XXX/main.aspx 
    
       Request path: /XXXXXX/main.aspx 
    
       User host address: fe10::32fc:f0ef:fd1a:4300NT AUTHORITY\NETWORK SERVICE 
    
       User: XXXXX\Administrator 
    
       Is authenticated: True 
    
       Authentication Type: Negotiate 
    
       Thread account name: NT AUTHORITY\NETWORK SERVICE 
    
    Thread information: 
    
       Thread ID: 8 
    
       Thread account name: NT AUTHORITY\NETWORK SERVICE 
    
       Is impersonating: True 
    
       Stack trace:    at Microsoft.Crm.BusinessEntities.QueryFromLegacyQueryVisitor.Visit(FilterExpression filter)
     
      at Microsoft.Crm.BusinessEntities.QueryFromLegacyQueryVisitor.Visit(QueryExpression query)
     
      at Microsoft.Crm.BusinessEntities.ConversionHelpers.ConvertIfQueryExpression(Object source, Type destinationType)
     
      at Microsoft.Crm.BusinessEntities.ConversionHelpers.Convert(ICrmConversionContext conversionContext, Object source, Type destinationType)
     
      at Microsoft.Crm.Application.Platform.ServiceCommands.RetrieveMultipleCommand.CreateQueryRequest(QueryBase query, Boolean retrieveLatest)
     
      at Microsoft.Crm.Application.Caching.CustomResourceLoader.GetCustomResources(IOrganizationContext context, Int32 cacheKey)
     
      at Microsoft.Crm.Application.Caching.CustomResourceLoader.LoadCacheData(Int32 key, IOrganizationContext context)
     
      at Microsoft.Crm.Caching.CrmMultiOrgCache`2.LookupEntry(TKey key, IOrganizationContext context)
     
      at Microsoft.Crm.Application.ResourceManager.CustomResourceManager.TryGetCultureString(String name, CultureInfo culture, Boolean getSystemString, IOrganizationContext context)
     
      at Microsoft.Crm.Application.ResourceManager.CustomResourceManager.TryGetCultureString(String name, CultureInfo culture, IOrganizationContext context)
     
      at Microsoft.Crm.Application.ResourceManager.BasicResourceManager.GetCultureString(String name, CultureInfo culture, IOrganizationContext context)
     
      at Microsoft.Crm.Controls.BasicHeader..ctor()
     
      at Microsoft.Crm.Application.Controls.AppHeader..ctor()
     
      at ASP.comun_main_aspx.__BuildControlcrmHeader()
     
      at ASP.comun_main_aspx.__BuildControlTree(comun_main_aspx __ctrl)
     
      at ASP.comun_main_aspx.FrameworkInitialize()
     
      at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
     
      at System.Web.UI.Page.ProcessRequest()
     
      at System.Web.UI.Page.ProcessRequest(HttpContext context)
     
      at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
     
      at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
     
    Custom event details: 
    Jaimie


    • Edited by Jaimie_J Thursday, August 30, 2012 8:34 AM
    Wednesday, August 29, 2012 3:40 PM

Answers

  • Hi Jamie,

    I spent a while chasing this issue in one of my development machines.

    Using ProcessExplorer (http://download.sysinternals.com/files/ProcessExplorer.zip) I discovered, that dispite not being visible under c:\windows\assembly, I did have a version of Microsoft.Xrm.Sdk hiding in my GAC.

    Running gacutil /u Microsoft.Xrm.Sdk got that removed and solved my issue.

    Instead of ProcessExplorer you could directly run "gacutil /l Microsoft.Xrm.Sdk" or "gacutil /l Microsoft.Crm.Sdk". This should not find any DLLs in your GAC.

    If you do, remove them and you should be good to rock(after running iisreset).

    Best,

    Norbert

    Monday, September 10, 2012 9:30 PM

All replies

  • Hi Jaimie,

    Are you sure you don't have the Microsoft.Xrm.Sdk.dll in the Gac(or manually copied to the CrmServer web folder)? If so, remove it and re-try. The problem looks like Crm is picking up an older version rather than the one its bin directory. Make sure you do an iisreset.

    Hth,

    Scott


    Scott Durow
    Read my blog: www.develop1.net/public
    If this post answers your question, please click "Mark As Answer" on the post and "Mark as Helpful"

    Wednesday, August 29, 2012 4:10 PM
    Answerer
  • I just installed UR10 on a dev environment and am seeing the same error across all organizations. I'll try Scott's remedy and post the results.
    Wednesday, August 29, 2012 8:39 PM
  • The sdk dll was not in the GAC, and uninstalling UR10 got CRM to come back up but now none of our custom plugins are working. Gonna keep digging...
    Thursday, August 30, 2012 1:06 AM
  • Even I am facing the same issue, any help?

    Wednesday, September 5, 2012 11:23 AM
  • Hi Rob,

    You need to recompile all your custom plugin and workflow with latest SDK 5.0 version, will start working as usual.

    Friday, September 7, 2012 7:20 AM
  • Hi Dhasara,

    You need to recompile all your custom plugin and workflow with latest SDK 5.0 version, will start working as usual.

    Friday, September 7, 2012 7:20 AM
  • Hi Jaimie,

    You need to recompile all your custom plugin and workflow with latest SDK 5.0 version, will start working as usual.

    Friday, September 7, 2012 7:21 AM
  • Hi Prakash.

    Thanks for your reply. I could not give it a try now, but will do it later.

    Just don't understand how this could affect a vinilla CRM instance as well.

    Also, it would be a disaster to a production environment.

    Jaimie

    Friday, September 7, 2012 10:08 AM
  • Hi Jaime,

    i can understand the problem you are facing, but i tried it, you need to just recompile your plugin and workflow. You need to just remove old dll reference and add the new dll reference from SDK 5.0 will fix the issue.


    Thanks, Prakash Omer, Technical Analyst-Ignify Software| Email: prakash.omer@hotmail.com


    Friday, September 7, 2012 11:03 AM
  • Hi Jamie,

    I spent a while chasing this issue in one of my development machines.

    Using ProcessExplorer (http://download.sysinternals.com/files/ProcessExplorer.zip) I discovered, that dispite not being visible under c:\windows\assembly, I did have a version of Microsoft.Xrm.Sdk hiding in my GAC.

    Running gacutil /u Microsoft.Xrm.Sdk got that removed and solved my issue.

    Instead of ProcessExplorer you could directly run "gacutil /l Microsoft.Xrm.Sdk" or "gacutil /l Microsoft.Crm.Sdk". This should not find any DLLs in your GAC.

    If you do, remove them and you should be good to rock(after running iisreset).

    Best,

    Norbert

    Monday, September 10, 2012 9:30 PM
  • Hi all,

    I am having the same issue. I have the following dlls in my assembly folder. Can anyone please let me know which one I should remove and install.

    As mentioned by Nobert, I ran gacutil commands but no luck.


    Rudravarma Batta

    Wednesday, September 12, 2012 1:15 PM
  • rudravarma,

    I am not too familiar with your deployment, however, I have totally removed these files from your gac c:\windows\assembly.

    Here's a strange side that I experienced.  I was totally expecting the Microsoft.xrm.sdk to be pulling from either the crmweb\bin directory, however, .net had taken over the system calls and causing my error.  The initial file version was that of 1/22/12, when ur11 is in October.  I found the reference through process explorer, browsed the crm assembly and located the bound file at C:\windows\microsoft.net\assembly\GAC_MSIL\Microsoft.Xrm.Sdk\v4.0_5.0.0.0__31bf3856ad364e35 (my version), so I stopped everything and copy\replaced the file and viola, it worked.

    I imagine that I may have some issues in the future, however, my production environments seem to update and reference correctly, so I'm not sure what happened here.

    Good Luck.

    • Proposed as answer by stevebutlerit Tuesday, December 4, 2012 5:34 PM
    Saturday, October 27, 2012 6:35 AM