Microsoft Land

Posts Tagged ‘x86 x64

I have encountered this error while my custom webpart is trying to query the Search service using KeywordQuery (Also tried with FullTextSqlQuery).

Possible reason could be that the Service User Account for the Search Service is not having required permissions.  Verify that the “Load User Profile” is set to True in the Application Pool Advanced settings and make sure that the OSEARCH service is having required permissions in Component Services.  Restart the OSEARCH service.

If the error code is 80040154 make sure that the Custom web part / Application that you are writing is targeted to x64.

Hope this helps.

 

“Could not load assembly” is a normal error which we might encounter in .NET, which means that the application is not able to load the assembly that it need to perform it’s job.  While there are many reasons for this error (Assembly not available in BIN/GAC or Assembly signature is wrong etc.,) one another reason could be because of the Target Platform for which the Assembly is compiled to which is being reported in the error message.

We can fix this issue by changing the configuration in the IIS Application Pool settings (I am assuming IIS 7+).  In the Application pool advanced setting there will be an option saying “Enable 32-bit applications” which needs to be set to True so that the Application Pool can load the x86 compatible assemblies. Below link from MSDN blog will have further information.

http://blogs.msdn.com/b/rakkimk/archive/2007/11/03/iis7-running-32-bit-and-64-bit-asp-net-versions-at-the-same-time-on-different-worker-processes.aspx

Hope this helps.


My Tweets

Follow

Get every new post delivered to your Inbox.

Join 119 other followers