Click here to Skip to main content
15,890,123 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i am using code for showing pps file and it will start file perfectly on local system but when i upload these on live server and acceess the page it will not starting the pss file and prompt me to save or open msg and i got "Object reference not set to an instance of an object" also what is the reason behind,Urgent issue .
C#
protected void Button1_Click(object sender, EventArgs e)
    {





       
        Site = System.Diagnostics.Process.Start("http://elearning.aleaitsolutions.co.uk/TestAttachment/100pres.ppsx.pps").ToString();
        }

using Microsoft.Office.Core;
using Microsoft.Office.Interop.PowerPoint;
using ppt = Microsoft.Office.Interop.PowerPoint;
using System.Runtime.InteropServices;
using System.Diagnostics;
using System.ComponentModel;
Posted

You need to install Microsoft Office on the server of the same version as the dlls you are referencing in the code.
 
Share this answer
 
My guess is that you probably have an object that has not been instantiated.
 
Share this answer
 

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