简体   繁体   English

从Visual Studio 2010发布/部署exe

[英]Publish/deploy exe from Visual Studio 2010

Trying to deploy a little C# app to another server...in visual studio am doing the publish from the menu,it creates a publish folder & subfolders,etc. 试图将一个小的C#应用​​程序部署到另一台服务器...在Visual Studio中,正在从菜单中进行发布,它会创建一个发布文件夹和子文件夹等。 Copy those to another machine and try to run the setup.exe there - gets following error, also tried just copying the exe created and the .exe.config and get same error. 将它们复制到另一台计算机上,然后尝试在那里运行setup.exe-出现以下错误,还尝试仅复制创建的exe和.exe.config并得到相同的错误。 When publishing, selected "install from CD" so all file paths relative to install directory...so something is not right! 发布时,请选择“从CD安装”,以便所有文件路径都相对于安装目录...因此不正确!

Messages below: 以下讯息:

Description:
  Stopped working

Problem signature:
  Problem Event Name:                         CLR20r3
  Problem Signature 01:                       loadadjusterphotosapp.exe
  Problem Signature 02:                       1.0.0.0
  Problem Signature 03:                       4e81f332
  Problem Signature 04:                       mscorlib
  Problem Signature 05:                       2.0.0.0
  Problem Signature 06:                       4d8c19ca
  Problem Signature 07:                       344a
  Problem Signature 08:                       119
  Problem Signature 09:                       System.IO.DirectoryNotFound
  OS Version:                                 6.0.6002.2.2.0.272.7
  Locale ID:                                  1033

thanks, 谢谢,

Phil J. 菲尔·J。

I get this error and seems to be due to missing libraries. 我收到此错误,似乎是由于缺少库。

In my case it was to do with windows media player. 就我而言,这与Windows Media Player有关。 My program only worked on computers that had Visual Studio installed. 我的程序仅在安装了Visual Studio的计算机上工作。 No idea what the actual fix is though. 不知道实际的解决方案是什么。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM