m using folowing code,it is worlking fine,on my machine but not working after deploying it to the server
{

ProcessStartInfo psi = new ProcessStartInfo(MapPath("MaxMinTest.ppsm"));

Process p = new Process();

if (psi.FileName.Contains("pptx"))

psi.Verb = "Show";

p.StartInfo = psi;

p.Start();

}

Is there any error message show on the serve?

You are trying to call a process in your asp.net code. When you run this code in your development PC, you can see the output as the application itself is running and the output is seen in the same PC.

When you deploy the application in a server , the process will start in the server itself and cannot be seen from the browser running in a client PC.

Also if the application is trying to access a file, you need to provide read/write access to the folder where the file exists to the Network Service account if your application is deployed in IIS in Windows 2003 and ASPNET account if deployed in IIS in Window XP.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.