Click here to Skip to main content
15,887,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
hi all,

i have application which converts microsoft powerpoint slides to images.For that i use below to achieve it.
C#
using Microsoft.Office.Core;
using Microsoft.Office.Interop.PowerPoint;

I am able to convert it without any problem in local machine whereas when i host it in live server iam getting the following error.It is an assembly reference error
"Could not load file or assembly 'Microsoft.Office.Interop.PowerPoint,
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)"

What could be the solution for this?i have enquired people they are asking to install msoffice in hosting server?do we have any other solution for this?

thanks in advance
vel
Posted
Updated 4-Sep-12 2:20am
v2

hi

can you check ur powerpoint version u have MS OFFICe 2007 u must use 12.0 and u have office 2010 u must have us 14.0 or u have office 2003 u must used 11.0 version DLL in ur Project Reference..

-Vijay
 
Share this answer
 
Comments
Iam Velu 4-Sep-12 8:36am    
i have ms office 2007 and my reference was 12.0 only..the thing is i do not have any problem in running local machine..i see this error only in live server.thats the problem..is it must that we have to install msoffice in hosting server also?please help
Vijay Selvaraj 4-Sep-12 8:41am    
yes u must have install office to server machine.. otherwise its not running..
hiii,

please check ms office 2007 is installed on your target machine.
and one more thing to install i.e. office 2007 primary interop assembly download it from here

http://www.microsoft.com/en-in/download/details.aspx?id=18346[^]


you will get solution.

if your unable to install PIA on target machine
download Microsoft.Office.Interop.PowerPoint.dll
and add it into your project reference

have happy coding
 
Share this answer
 
In this case try repair ppt

http://www.repairpptonline.pptrepairtoolbox.com guarantees the compatibility with all possible configurations in use and MS Windows 98/.../7
 
Share this answer
 
It's a bad idea to use Office interop on servers, and yes you have to install office on the target server.

Try using components for this like : http://www.aspose.com/categories/.net-components/aspose.slides-for-.net/default.aspx[^]
 
Share this answer
 
Comments
Iam Velu 4-Sep-12 8:29am    
It seems that i need to buy aspose slides component to use it..is there any other solution do we have for converting slides to images without using microsoft powerpoint interop dll and that should be open source...
Mehdi Gholam 4-Sep-12 8:33am    
Try searching, this is the only one I know about.
If someone has done it, then there very well may be an open source version out there.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900