Click here to Skip to main content
15,895,656 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
in my Local system Application is run very good but when run live (with subdomain) then showing this Error . although we give full permission .

System.Runtime.InteropServices.COMException (0x80004005): PowerPoint could not open the file. at Microsoft.Office.Interop.PowerPoint.Presentations.Open(String FileName, MsoTriState ReadOnly, MsoTriState Untitled, MsoTriState WithWindow) at CallFuctionForBatchProcess_Amr.Export2PPT(Int32 tempIndex) in c:\inetpub\
Posted

Did you check powerpoint is installed?

Also, running from asp.net you probably do not have permission to open powerpoint in iis. It is also very bad practice to use office components in your webserver code.

Good luck!
 
Share this answer
 
Comments
Amresh Bahadur Singh 12-Dec-14 1:41am    
Please , tell me how we give permission to open powerpoint in iis
E.F. Nijboer 12-Dec-14 4:30am    
Check this link for more info:
http://support2.microsoft.com/default.aspx?scid=kb;EN-US;q257757#kb2
Create a folder , Desktop name . on this path . It's Working .
C:\Windows\SysWOW64\config\systemprofile\Desktop
 
Share this answer
 
Comments
Amresh Bahadur Singh 2-Feb-15 4:11am    
It's working i solve this problem same way just now.
Amresh Bahadur Singh 2-Feb-15 4:30am    
http://stackoverflow.com/questions/2653740/problems-with-office-automation-in-asp-net-i-can-use-alternatives-such-as-open
vijay.korba 14-Aug-20 12:28pm    
Thanks for the Solution, it's worked for me.

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