We’ve been hearing reports of this failure for several weeks, but we’ve not been able to get a good repro until a week ago. And it was the most “most reported bug” at TechEd — if there is such a category
— but it looks like we have a solution after many hours of hard work.
(With my thanks to Fernando Delgado, our excellent setup dev for working up this solution)
(RTM build 10.5.1600.1) As a picture is worth a thousand words, here is the error:
This failure occurs when installing PowerPivot (either “existing farm” or “new server”) after a previous SSAS installation has been done on the machine.
Cause:
In SQL Server 2008 R2, the msmdsrv.exe process (which is the SSAS engine) includes a reference to the PowerPivot SharePoint integration dll (as do other components). Since the normal SSAS installation does not include the SharePoint integration dll, the registration marks the .NET assembly cache as failed. Later on, when you install PowerPivot, we copy the SharePoint integration dll to the right place, but the .NET assembly cache has already been marked failed from the previous SSAS installation and .NET does not attempt to load it (and you get the error message above).
Solution:
A. Best solution: If using “New Server” PowerPivot installation option then delay installing any instances besides SQL Server RDMBS until after you have PowerPivot installed and configured. That way you never hit this error condition. Doing a SQL Server RDBMS installation only for “existing farm” is OK – it is the installation of other non-RDBMS components that is the root cause of the issue.
B. If you have an RDBMS only instance(s) installed and are getting ready for a PowerPivot installation (“New Server” or “Existing Farm”): Save the following text to a file named setup100.exe.config (no .txt extension):
- Save the following text to a file named setup100.exe.config (no .txt extension):
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<runtime>
<disableCachingBindingFailures enabled="1" />
</runtime>
</configuration>- b. Copy the file to the folder: %ProgramFiles%\Microsoft SQL Server\100\Setup Bootstrap\SQLServer2008R2\x64\ and install PowerPivot for SharePoint.
C. You have already installed PowerPivot and gotten the “Could not load file or assembly” error above, then:
- Uninstall the PowerPivot instance of Analysis Services, this will also uninstall PowerPivot for SharePoint components.
- Reboot the machine
- Run scripts to re-enable PremiumSite feature. See http://powerpivotgeek.com/2010/06/14/uninstalling-powerpivot-does-what-arg/
- Reboot the machine
- Copy the setup100.exe.config file, as outlined in (B) above, to %ProgramFiles%\Microsoft SQL Server\100\Setup Bootstrap\SQLServer2008R2\x64
- Install PowerPivot for SharePoint.


I avoid the error by installing in this order:
1. Provision a new Windows 2008 SP2 server.
2. Add IIS role.
3. Make it a domain controller with dcpromo.
4. Install SharePoint 2010 prerequisites.
5. Install SharePoint 2010, do not check configure at the end.
6. Install PowerPivot instance (choose new server) from SQL Server 2008 R2 installation.
Then I can install another SQL Server 2008 R2 intance. Installing even just the database engine in an instance prior to installing PowerPivot gave me the subject error.
Thanks
This worked for me PERFECTLY I will have a Session on BI next Week, and this stumbling block was hard for me
[...] http://powerpivotgeek.com/2010/06/14/installation-failure-could-not-load-file-or-assembly-microsoft-... [...]
[...] http://powerpivotgeek.com/2010/06/14/installation-failure-could-not-load-file-or-assembly-microsoft-... [...]
[...] http://powerpivotgeek.com/2010/06/14/installation-failure-could-not-load-file-or-assembly-microsoft-... [...]
[...] Installation failure: “Could not load file or assembly ‘Microsoft.AnalysisServices.SharePoint.In…: The key lesson learned here is that if you do a single server / new farm installation, ensure that you do not install SQL Server components prior to your PowerPivot for SharePoint installation. If you are doing a multi-server / existing farm installation, please make sure to click through the link to review the workarounds if you decide to install SQL Server components before you perform your PowerPivot for SharePoint installation. [...]