Error installing Faceted Search on Search Server Express

Feb 5, 2008 at 5:30 PM
Edited Feb 5, 2008 at 5:34 PM
I got this following error when I preview SearchFacets.webpart. I am testing Facted Search 2.0 on Search Server Express 2008. Any idea?

The type initializer for 'Microsoft.Office.Server.EvaluatorModeProvisioning.OfficeServerProductToProvision' threw an exception

The event viewer also show a bunch of these error:
The application-specific permission settings do not grant Local Activation permission for the COM Server application with CLSID
{61738644-F196-11D0-9953-00C04FD919C1}
to the user NT AUTHORITY\NETWORK SERVICE SID (S-1-5-20). This security permission can be modified using the Component Services administrative tool.
Feb 5, 2008 at 5:47 PM
Restart IIS fixed the problem.


ajax95 wrote:
I got this following error when I preview SearchFacets.webpart. I am testing Facted Search 2.0 on Search Server Express 2008. Any idea?

The type initializer for 'Microsoft.Office.Server.EvaluatorModeProvisioning.OfficeServerProductToProvision' threw an exception

The event viewer also show a bunch of these error:
The application-specific permission settings do not grant Local Activation permission for the COM Server application with CLSID
{61738644-F196-11D0-9953-00C04FD919C1}
to the user NT AUTHORITY\NETWORK SERVICE SID (S-1-5-20). This security permission can be modified using the Component Services administrative tool.


Mar 5, 2008 at 3:40 PM

We have the same error message: 'Microsoft.Office.Server.EvaluatorModeProvisioning.OfficeServerProductToProvision' but IIS restart don't fix the problem.

any other ideas?
Coordinator
Mar 6, 2008 at 4:24 AM
Seems the account in question doesn't have enough permissions. Try to go to component services, find that particular component by CLSID, edit properties and actually grant activation to NT AUTHORITY\NETWORK SERVICE

ajax95 wrote:
I got this following error when I preview SearchFacets.webpart. I am testing Facted Search 2.0 on Search Server Express 2008. Any idea?

The type initializer for 'Microsoft.Office.Server.EvaluatorModeProvisioning.OfficeServerProductToProvision' threw an exception

The event viewer also show a bunch of these error:
The application-specific permission settings do not grant Local Activation permission for the COM Server application with CLSID
{61738644-F196-11D0-9953-00C04FD919C1}
to the user NT AUTHORITY\NETWORK SERVICE SID (S-1-5-20). This security permission can be modified using the Component Services administrative tool.


Jun 27, 2008 at 4:19 AM
Did this get fixed?  Can someone say that this is an issue?  I have two different servers that this happened on....WHY????  How can that be?  Did this get tested?   Then it broke my current searches.....don't release buggy code please....what a heart stopper....please fix this ASAP!
Jun 27, 2008 at 9:02 AM
Fixed it!

This is a permissions issue.

Fixed it by copying C:/Inetpub/wwwroot/wss/VirtualDirectories/81/bin/Microsoft.SharePoint.Portal.ExtendedSearch.DLL tol C:\Windows\Assembly
Performed IISreset

Then it worked.

The errormessage from the log:
<code>
Error while executing web part: Microsoft.Office.Server.Search.WebControls.SrhdcGenericException: Your search cannot be completed because of a service error. Try your search again or contact your administrator for more information. ---> System.TypeInitializationException: The type initializer for 'Microsoft.Office.Server.EvaluatorModeProvisioning.OfficeServerProductToProvision' threw an exception. ---> System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.     at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet)     at System.Security.CodeAccessPermission.Demand()     at System.Reflection...     
....Assembly.VerifyCodeBaseDiscovery(String codeBase)     at System.Reflection.Assembly.GetName(Boolean copiedName)     at System.Reflection.Assembly.GetName()     at Microsoft.Office.Server.EvaluatorModeProvisioning.OfficeServerProductToProvision..ctor(String id, String name, String provisioningAssemblyWithoutExtention, String fullyQualifiedProvisioningClass)     at Microsoft.Office.Server.EvaluatorModeProvisioning.OfficeServerProductToProvision..cctor()  The action that failed was:  Demand  The type of the first permission that failed was:  System.Security.Permissions.FileIOPermission  The first permission that failed was:  <IPermission class="System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"  version="1"  PathDiscover...     
...y="C:\WINDOWS\assembly\GAC_MSIL\Microsoft.Office.Server\12.0.0.0__71e9bce111e9429c\Microsoft.Office.Server.dll"/>    The demand was for:  <IPermission class="System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"  version="1"  PathDiscovery="C:\WINDOWS\assembly\GAC_MSIL\Microsoft.Office.Server\12.0.0.0__71e9bce111e9429c\Microsoft.Office.Server.dll"/>    The granted set of the failing assembly was:  <PermissionSet class="System.Security.PermissionSet"  version="1">  <IPermission class="System.Security.Permissions.RegistryPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"  version="1"  Unrestricted="true"/>  <IPermission class="System.Security.Permissions.SecurityPermission, mscorlib, Ve...     
...rsion=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"  version="1"  Flags="Execution"/>  <IPermission class="System.Security.Permissions.StrongNameIdentityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"  version="1"  PublicKeyBlob="0024000004800000940000000602000000240000525341310004000001000100257FAE170ABB2AB4A8EF914DFEA757F7DB8C221F01850FC8753A4C6585C0B07749DA33DF4D64A721A070E7CDCDEFC8C786E3626418389BCF461E4300E6F4C477BE5CE64AD12C29D517208D6BA627D9F73A9066B7638BE1FEE3EABE6C3E537B546CB3B5DE5E436F95278BB1E9DBDE85C2A6B624010A8073841D467CC7A0A0C6C8"  Name="Microsoft.SharePoint.Portal.ExtendedSearch"  AssemblyVersion="2.0.0.0"/>  <IPermission class="System.Security.Permissions.UrlIdentityPermission, mscorlib, Version=2.0.0.0, Culture=neutral...     
..., PublicKeyToken=b77a5c561934e089"  version="1"  Url="file:///C:/Inetpub/wwwroot/wss/VirtualDirectories/81/bin/Microsoft.SharePoint.Portal.ExtendedSearch.DLL"/>  <IPermission class="System.Security.Permissions.ZoneIdentityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"  version="1"  Zone="MyComputer"/>  <IPermission class="System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"  version="1"  Level="Minimal"/>  <IPermission class="Microsoft.SharePoint.Security.SharePointPermission, Microsoft.SharePoint.Security, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"  version="1"  ObjectModel="True"/>  <IPermission class="Microsoft.SharePoint.Security.WebPartPermission, Microsoft.Shar...     
...ePoint.Security, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"  version="1"  Connections="True"/>  </PermissionSet>    The assembly or AppDomain that failed was:  Microsoft.SharePoint.Portal.ExtendedSearch, Version=2.0.0.0, Culture=neutral, PublicKeyToken=a646907c4a695009  The method that caused the failure was:  System.Data.DataTable GetResults(Int32)  The Zone of the assembly that failed was:  MyComputer  The Url of the assembly that failed was:  file:///C:/Inetpub/wwwroot/wss/VirtualDirectories/81/bin/Microsoft.SharePoint.Portal.ExtendedSearch.DLL     --- End of inner exception stack trace ---     at Microsoft.Office.Server.Administration.SetupLicensing.get_InstalledOfficeServersProduct()     at Microsoft.Office.Server.Search.Administration.SearchContext.get_IsSupp...     
...ortedTopology()     at Microsoft.Office.Server.Search.Query.Query.ThrowIfUnSupportedTopologyForMSSExpress()     at Microsoft.Office.Server.Search.Query.KeywordQuery.Execute()     at Microsoft.Office.Server.Search.WebControls.SearchResultHiddenObject.GetResultData()     --- End of inner exception stack trace ---     at Microsoft.Office.Server.Search.WebControls.SearchResultHiddenObject.GetResultData()     at Microsoft.Office.Server.Search.WebControls.SearchResultHiddenObject.get_ResultsReturned()     at Microsoft.Office.Server.Search.WebControls.CoreResultsWebPart.ModifyXsltArgumentList(ArgumentClassWrapper argList)     at Microsoft.SharePoint.WebPartPages.DataFormWebPart.PrepareAndPerformTransform()     
InnerException 1: System.TypeInitializationException: The type initializer for 'Microsoft.Office.Server.EvaluatorModeProvisioning.OfficeServerProductToProvision' threw an exception. ---> System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.     at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet)     at System.Security.CodeAccessPermission.Demand()     at System.Reflection.Assembly.VerifyCodeBaseDiscovery(String codeBase)     at System.Reflection.Assembly.GetName(Boolean copiedName)     at System.Reflection.Assembly.GetName()     at Microsoft.Office.Server.EvaluatorModeProvisioning.Offic...     
...eServerProductToProvision..ctor(String id, String name, String provisioningAssemblyWithoutExtention, String fullyQualifiedProvisioningClass)     at Microsoft.Office.Server.EvaluatorModeProvisioning.OfficeServerProductToProvision..cctor()  The action that failed was:  Demand  The type of the first permission that failed was:  System.Security.Permissions.FileIOPermission  The first permission that failed was:  <IPermission class="System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"  version="1"  PathDiscovery="C:\WINDOWS\assembly\GAC_MSIL\Microsoft.Office.Server\12.0.0.0__71e9bce111e9429c\Microsoft.Office.Server.dll"/>    The demand was for:  <IPermission class="System.Security.Permissions.FileIOPermission, mscorlib, Versi...     
...on=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"  version="1"  PathDiscovery="C:\WINDOWS\assembly\GAC_MSIL\Microsoft.Office.Server\12.0.0.0__71e9bce111e9429c\Microsoft.Office.Server.dll"/>    The granted set of the failing assembly was:  <PermissionSet class="System.Security.PermissionSet"  version="1">  <IPermission class="System.Security.Permissions.RegistryPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"  version="1"  Unrestricted="true"/>  <IPermission class="System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"  version="1"  Flags="Execution"/>  <IPermission class="System.Security.Permissions.StrongNameIdentityPermission, mscorlib, Version=2.0.0.0, Culture=neutra...     
...l, PublicKeyToken=b77a5c561934e089"  version="1"  PublicKeyBlob="0024000004800000940000000602000000240000525341310004000001000100257FAE170ABB2AB4A8EF914DFEA757F7DB8C221F01850FC8753A4C6585C0B07749DA33DF4D64A721A070E7CDCDEFC8C786E3626418389BCF461E4300E6F4C477BE5CE64AD12C29D517208D6BA627D9F73A9066B7638BE1FEE3EABE6C3E537B546CB3B5DE5E436F95278BB1E9DBDE85C2A6B624010A8073841D467CC7A0A0C6C8"  Name="Microsoft.SharePoint.Portal.ExtendedSearch"  AssemblyVersion="2.0.0.0"/>  <IPermission class="System.Security.Permissions.UrlIdentityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"  version="1"  Url="file:///C:/Inetpub/wwwroot/wss/VirtualDirectories/81/bin/Microsoft.SharePoint.Portal.ExtendedSearch.DLL"/>  <IPermission class="System.Security.Permissions.ZoneIdent...     
...ityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"  version="1"  Zone="MyComputer"/>  <IPermission class="System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"  version="1"  Level="Minimal"/>  <IPermission class="Microsoft.SharePoint.Security.SharePointPermission, Microsoft.SharePoint.Security, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"  version="1"  ObjectModel="True"/>  <IPermission class="Microsoft.SharePoint.Security.WebPartPermission, Microsoft.SharePoint.Security, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"  version="1"  Connections="True"/>  </PermissionSet>    The assembly or AppDomain that failed was:  Microsoft.SharePoint.Portal.Extend...     
...edSearch, Version=2.0.0.0, Culture=neutral, PublicKeyToken=a646907c4a695009  The method that caused the failure was:  System.Data.DataTable GetResults(Int32)  The Zone of the assembly that failed was:  MyComputer  The Url of the assembly that failed was:  file:///C:/Inetpub/wwwroot/wss/VirtualDirectories/81/bin/Microsoft.SharePoint.Portal.ExtendedSearch.DLL     --- End of inner exception stack trace ---     at Microsoft.Office.Server.Administration.SetupLicensing.get_InstalledOfficeServersProduct()     at Microsoft.Office.Server.Search.Administration.SearchContext.get_IsSupportedTopology()     at Microsoft.Office.Server.Search.Query.Query.ThrowIfUnSupportedTopologyForMSSExpress()     at Microsoft.Office.Server.Search.Query.KeywordQuery.Execute()     at Microsoft.Office.Server.Search.WebCon...     
...trols.SearchResultHiddenObject.GetResultData()     
InnerException 2: System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.     at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet)     at System.Security.CodeAccessPermission.Demand()     at System.Reflection.Assembly.VerifyCodeBaseDiscovery(String codeBase)     at System.Reflection.Assembly.GetName(Boolean copiedName)     at System.Reflection.Assembly.GetName()     at Microsoft.Office.Server.EvaluatorModeProvisioning.OfficeServerProductToProvision..ctor(String id, String name, String provisioningAssemblyWithoutExtention, String fullyQualifiedProvisioningClass)     at Microsoft.Office.Serv...     
...er.EvaluatorModeProvisioning.OfficeServerProductToProvision..cctor()  The action that failed was:  Demand  The type of the first permission that failed was:  System.Security.Permissions.FileIOPermission  The first permission that failed was:  <IPermission class="System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"  version="1"  PathDiscovery="C:\WINDOWS\assembly\GAC_MSIL\Microsoft.Office.Server\12.0.0.0__71e9bce111e9429c\Microsoft.Office.Server.dll"/>    The demand was for:  <IPermission class="System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"  version="1"  PathDiscovery="C:\WINDOWS\assembly\GAC_MSIL\Microsoft.Office.Server\12.0.0.0__71e9bce111e9429...     
...c\Microsoft.Office.Server.dll"/>    The granted set of the failing assembly was:  <PermissionSet class="System.Security.PermissionSet"  version="1">  <IPermission class="System.Security.Permissions.RegistryPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"  version="1"  Unrestricted="true"/>  <IPermission class="System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"  version="1"  Flags="Execution"/>  <IPermission class="System.Security.Permissions.StrongNameIdentityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"  version="1"  PublicKeyBlob="0024000004800000940000000602000000240000525341310004000001000100257FAE170ABB2AB4A8EF914DFEA757F7DB8C221F...     
...01850FC8753A4C6585C0B07749DA33DF4D64A721A070E7CDCDEFC8C786E3626418389BCF461E4300E6F4C477BE5CE64AD12C29D517208D6BA627D9F73A9066B7638BE1FEE3EABE6C3E537B546CB3B5DE5E436F95278BB1E9DBDE85C2A6B624010A8073841D467CC7A0A0C6C8"  Name="Microsoft.SharePoint.Portal.ExtendedSearch"  AssemblyVersion="2.0.0.0"/>  <IPermission class="System.Security.Permissions.UrlIdentityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"  version="1"  Url="file:///C:/Inetpub/wwwroot/wss/VirtualDirectories/81/bin/Microsoft.SharePoint.Portal.ExtendedSearch.DLL"/>  <IPermission class="System.Security.Permissions.ZoneIdentityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"  version="1"  Zone="MyComputer"/>  <IPermission class="System.Web.AspNetHosti...     
...ngPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"  version="1"  Level="Minimal"/>  <IPermission class="Microsoft.SharePoint.Security.SharePointPermission, Microsoft.SharePoint.Security, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"  version="1"  ObjectModel="True"/>  <IPermission class="Microsoft.SharePoint.Security.WebPartPermission, Microsoft.SharePoint.Security, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"  version="1"  Connections="True"/>  </PermissionSet>    The assembly or AppDomain that failed was:  Microsoft.SharePoint.Portal.ExtendedSearch, Version=2.0.0.0, Culture=neutral, PublicKeyToken=a646907c4a695009  The method that caused the failure was:  System.Data.DataTable GetResults(Int32)  The Zone o...     
...f the assembly that failed was:  MyComputer  The Url of the assembly that failed was:  file:///C:/Inetpub/wwwroot/wss/VirtualDirectories/81/bin/Microsoft.SharePoint.Portal.ExtendedSearch.DLL     
</code>
Jul 2, 2008 at 11:17 AM
You could also try the following:

http://www.jadota.com/2008/07/moss-2007-install-not-done-just-yet/

This may also occur after a fresh install, and yes, it does seem to be related to privileges / permissions.