运行一个C#exe文件

编程入门 行业动态 更新时间:2024-10-12 03:22:49
本文介绍了运行一个C#exe文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

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.

This讨论应该给你所需要的。

更多推荐

运行一个C#exe文件

本文发布于:2023-11-13 05:59:26,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1583632.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:文件   exe

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!