部署我的网站后,无法打开记事本或Pdf文件(使用线程). [英] Unable to Open Notepad or Pdf file (using threading) after Deploying my site..

查看:126
本文介绍了部署我的网站后,无法打开记事本或Pdf文件(使用线程).的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用线程概念打开记事本或pdf文件.我的本地计算机打开正常,但是在部署记事本窗口后无法工作..

关于我的问题的任何建议....


预先Tahnks

I am using Threading concept for open notepad or pdf file. My local machine opened well ,but after deploy notepad window didnt work..

any suggestions about my problem....


Tahnks in advance

推荐答案

您的意思是,当您在本地计算机上进行测试但部署站点时,代码背后的代码可以打开记事本或PDF文件吗?到远程Web服务器,您将不再看到记事本或PDF查看器?

如果是这样,那么我并不感到惊讶.

想必您正在使用Process.Start打开文件吗?

这将打开服务器上的文件:而不是用户计算机上的文件. (并且可能会惹恼Web服务器管理员.)

您无法在服务器上的用户计算机上运行程序:这被称为可能是病毒活动",并且已被正确阻止.
Do you mean that your code behind code opened Notepad or a PDF file okay when you were testing on your local machine, but when you deploy the site to a remote webserver you no longer see Notepad or the PDF viewer?

If so, then I am not surprised.

Presumably, you are using Process.Start to open the file?

That will open the file on the server: not the user machine. (and probably annoy the heck out of teh webserver admin.)

You cannot run programs on a user machine from the server: that is called "probably virus activity" and rightly blocked.


确保这些文件的路径正确.使用相对URL.
Make sure the paths to these files are correct. Use relative URLS.


这篇关于部署我的网站后,无法打开记事本或Pdf文件(使用线程).的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆