从其他计算机运行.exe时出现问题 [英] Problem in Running .exe from other computer

查看:80
本文介绍了从其他计算机运行.exe时出现问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我是C#编程和.net框架的新手.
我在服务器计算机上用C#开发了.exe.该计算机可以在该计算机上正常运行.
如果我从局域网的其他计算机上运行该exe文件,则该文件无法正常工作,并且使我陷入SecurityExeption. 我不想从我的应用程序服务器复制本地计算机上的.exe和.dll文件.
你能建议我怎么做.

Hi,
I am new to C# programming & .net framwork.
I have .exe developed in C# on server computer. This is running purfectly on that computer.
If I run that exe from other computer from LAN it is not working & geving me SecurityExeption.
I don''t want to copy .exe & .dll files on local computer from My application Server.
Can you suggest how I can do it.

推荐答案

写道:​​

如果我从局域网的另一台计算机上运行该exe文件,该文件无法正常工作&给我SecurityExeption.

If I run that exe from other computer from LAN it is not working & geving me SecurityExeption.



您的程序做什么?我不明白为什么它不起作用,只要在试图运行该程序的计算机上安装了.NET.也许,如果您确切地告诉我们您收到的错误消息,我们可以理解而不是猜测问题所在.可能是:

1-.NET不在计算机上
2-代码中引发异常的内容
3-具有您在网络上拥有的权限的导致问题的内容
4-其他内容.



What does your program do ? I don''t see why it shouldn''t work, so long as .NET is installed on the machine trying to run the program. Perhaps if you told us exactly the error message you''re getting, we could understand instead of guessing as to what the problem is. It could be:

1 - .NET not on the computer
2 - something in your code that throws the exception
3 - something with the permissions you have over the network that causes the issue
4 - something else.


如果您具有足够的权限,则可以使用caspol.exe(google,它),它是.net框架的一部分. Caspol.exe是一个命令行实用程序,可让您设置权限以将完全信任"授予本地Intranet域.如果您没有权限,则可以贿赂系统管理员为您运行它.另一种选择是将程序复制到本地计算机上并运行它.
If you have sufficient permissions you can use caspol.exe (google it), which comes as part of the .net framework. Caspol.exe is a command line utility that will let you set permissions to give "fulltrust" to local intranet domains. If you don''t have permissions you may be able to bribe your system admin into running it for you. Another alternative is to copy the program to the local computer and run it.


这篇关于从其他计算机运行.exe时出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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