运行一个C#exe文件 [英] Running a C# exe file

查看:153
本文介绍了运行一个C#exe文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

<一个href="http://stackoverflow.com/questions/148879/why-does-my-net-application-crash-when-run-from-a-network-drive">Why没有我的.NET应用程序崩溃从网络驱动器上运行时?


有人能帮助我吗?对于一个学校的项目,我写在Visual Studio 2005中的C#Windows应用程序,它工作得很好,没有任何问题。我希望能够与其他人在我的部门在工作中分享这一计划。所以,我复制了exe文件到网络驱动器。当我们尝试从网络运行exe时,出现PROGRM的名字......遇到问题,需要关闭。如果我有同事的exe文件复制到自己的C:\驱动器,然后尝试运行,它的工作原理。从网络驱动器为什么我的程序运行?

Can someone help me? For a school project, I wrote a C# windows application in Visual Studio 2005. It works just fine, no problems. I want to be able to share this program with others in my department at work. So, I copied the exe file to a network drive. When we attempt to run the exe from the network, it fails with "name of progrm...has encountered a problem and needs to close". If I have the co-worker copy the exe file to their c:\ drive then attempt to run, it works. Why won't my program run from the network drive?

苏珊

推荐答案

.NET默认不允许应用程序来运行关闭网络驱动器。无论是将其复制到本地驱动器或更改安全设置.NET。

.NET by default does not allow applications to be run off a network drive. Either copy it to a local drive or alter the security settings for .NET.

<一个href="http://stackoverflow.com/questions/148879/why-does-my-net-application-crash-when-run-from-a-network-drive">This讨论应该给你所需要的。

这篇关于运行一个C#exe文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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