Process.Start not working IIS using vb.net

561 Views Asked by At

Any idea of a work around using vb.net with ASP.NET. Works great out of visual studio but can't get it to work on IIS 7.5 tried setting the load user profile in IIS on the application pool that didn't help either. Any suggestions would be great. Here is my process code

Process.Start(fileTempPath & "SearchDraw\" & fileName)
2

There are 2 best solutions below

0
On

I don't know much about this, but try creating an iFrame and setting the src attribute to the path to display the pdf client side:

<iframe src="mypdf.pdf"></iframe>
0
On

I was able to use a Response to get it to open right in the users web browser...

Response.ContentType = "Application/pdf"
Response.WriteFile(fileTempPath & "SearchDraw\" & fileName)