![Office Office](http://i978.photobucket.com/albums/ae264/jb_theman/xlsref_5.png)
I am developing anASP.NET application and read data from excel by interop.In my local XP pro it is loaded Office 2007 and VS.NET 2008 and in GAC there is Microsoft Ofice Tools Common v9.0 Microsoft Ofice Tools Common2007 Microsoft Ofice Tools Excelv9.0 dlls. But when i publish it to Server (windows server 2003) it gives the error below.
There is no Office 2007 or VS.NET only Framework 2.0. Hat should i do basicly.
Could not load file or assembly 'Microsoft.Office.Interop.Excel, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040). Does the reference be there in reference dialog COM tab? To obtain the reference to interop with excel in your program, you have to install the PIA of the excel ( first install the excel). If you have installed Office 2003, just follow the steps to add the reference: In VS, right click the references Add Reference.
![Microsoft Office Interop Excel Dll Version 12.0.0.0 Microsoft Office Interop Excel Dll Version 12.0.0.0](https://i1.social.s-msft.com/profile/u/avatar.jpg?displayname=pm007&size=extralarge&version=00000000-0000-0000-0000-000000000000)
Download and install Microsoft.Office.Interop.Excel.dll to fix missing or corrupted dll errors. Developer Microsoft Corporation Product Microsoft Office 2013 Description Microsoft.Office.Interop.Excel Filename Microsoft.Office.Interop.Excel.dll Version 15.0.4569.1506 Size 1.6MB. My asp.net application is throwing this exception: Could not load file or assembly 'Microsoft.Office.Interop.Excel, Version=12.0.0.0, Culture=neutral,.
COM tab Then select 'Excel 11.0 Object Library' to add its PIA into your project, for more information see: Also check this kb article: And excel 2007(Excel 12.0) have similar steps. Discussions regarding Office Primary Interop Assemblies can be found at Excel programming discussions can be found at Hope this helps! Best regards, Yichun Chen Please remember to mark the replies as answers if they help and unmark them if they provide no help.
If you have any feedback, please tell us.