C# 应用程序缺少必需的文件

C# 应用程序缺少必需的文件,c#,.net,windows,winforms,sharpdevelop,C#,.net,Windows,Winforms,Sharpdevelop,错误图片: 无法下载应用程序。应用程序缺少必需的文件。联系应用程序供应商以获得帮助 因此,我正在使用SharpDevelop 5.2构建一个windows窗体应用程序,并试图创建一个其他人可以在另一台机器上使用的独立/版本。在sharpdevelop(和visual studio 2015RC)中,当调试程序运行正常并打开时,一切正常,没有错误。但是,每当我试图通过/bin/Debug/或/bin/Release/中的文件运行它时,它就不起作用 当我运行.exe时,什么都没有发生,没有窗口,没有

错误图片:

无法下载应用程序。应用程序缺少必需的文件。联系应用程序供应商以获得帮助

因此,我正在使用SharpDevelop 5.2构建一个windows窗体应用程序,并试图创建一个其他人可以在另一台机器上使用的独立/版本。在sharpdevelop(和visual studio 2015RC)中,当调试程序运行正常并打开时,一切正常,没有错误。但是,每当我试图通过/bin/Debug/或/bin/Release/中的文件运行它时,它就不起作用

当我运行.exe时,什么都没有发生,没有窗口,没有弹出窗口,什么都没有,当我运行.application文件时,我得到了上图中的错误,详细信息告诉我:

PLATFORM VERSION INFO
Windows             : 6.2.9200.0 (Win32NT)
Common Language Runtime     : 4.0.30319.34209
System.Deployment.dll       : 4.0.30319.34243 built by: FX452RTMGDR
clr.dll             : 4.0.30319.34209 built by: FX452RTMGDR
dfdll.dll           : 4.0.30319.34243 built by: FX452RTMGDR
dfshim.dll          : 6.3.9600.16384 (winblue_rtm.130821-1623)

SOURCES
Deployment url          : file:///C:/Users/Simbuild/Downloads/evix2/evix2/bin/Debug/Evix%20Charachter%20Creator.application
Application url         : file:///C:/Users/Simbuild/Downloads/evix2/evix2/bin/Debug/Evix%20Charachter%20Creator.exe.manifest

IDENTITIES
Deployment Identity     : Evix Charachter Creator.application, Version=0.0.1.9, Culture=neutral, PublicKeyToken=0000000000000000, processorArchitecture=msil
Application Identity        : Evix Charachter Creator.exe, Version=0.0.1.9, Culture=neutral, PublicKeyToken=0000000000000000, processorArchitecture=msil, type=win32

APPLICATION SUMMARY
* Installable application.

ERROR SUMMARY
Below is a summary of the errors, details of these errors are listed later in the log.
* Activation of C:\Users\Simbuild\Downloads\evix2\evix2\bin\Debug\Evix Charachter Creator.application resulted in exception. Following failure messages were detected:
    + Downloading file:///C:/Users/Simbuild/Downloads/evix2/evix2/bin/Debug/compas.ico did not succeed.
    + Could not find file 'C:\Users\Simbuild\Downloads\evix2\evix2\bin\Debug\compas.ico'.
    + Could not find file 'C:\Users\Simbuild\Downloads\evix2\evix2\bin\Debug\compas.ico'.
    + Could not find file 'C:\Users\Simbuild\Downloads\evix2\evix2\bin\Debug\compas.ico'.

COMPONENT STORE TRANSACTION FAILURE SUMMARY
No transaction error was detected.

WARNINGS
* The manifest for this application does not have a signature. Signature validation will be ignored.
* The manifest for this application does not have a signature. Signature validation will be ignored.

OPERATION PROGRESS STATUS
* [6/22/2015 12:36:59 PM] : Activation of C:\Users\Simbuild\Downloads\evix2\evix2\bin\Debug\Evix Charachter Creator.application has started.
* [6/22/2015 12:37:00 PM] : Processing of deployment manifest has successfully completed.
* [6/22/2015 12:37:00 PM] : Installation of the application has started.
* [6/22/2015 12:37:00 PM] : Processing of application manifest has successfully completed.
* [6/22/2015 12:37:02 PM] : Found compatible runtime version 4.0.30319.
* [6/22/2015 12:37:02 PM] : Request of trust and detection of platform is complete.

ERROR DETAILS
Following errors were detected during this operation.
* [6/22/2015 12:37:03 PM] System.Deployment.Application.DeploymentDownloadException (Unknown subtype)
    - Downloading file:///C:/Users/Simbuild/Downloads/evix2/evix2/bin/Debug/compas.ico did not succeed.
    - Source: System.Deployment
    - Stack trace:
        at System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next)
        at System.Deployment.Application.SystemNetDownloader.DownloadAllFiles()
        at System.Deployment.Application.FileDownloader.Download(SubscriptionState subState)
        at System.Deployment.Application.DownloadManager.DownloadDependencies(SubscriptionState subState, AssemblyManifest deployManifest, AssemblyManifest appManifest, Uri sourceUriBase, String targetDirectory, String group, IDownloadNotification notification, DownloadOptions options)
        at System.Deployment.Application.ApplicationActivator.DownloadApplication(SubscriptionState subState, ActivationDescription actDesc, Int64 transactionId, TempDirectory& downloadTemp)
        at System.Deployment.Application.ApplicationActivator.InstallApplication(SubscriptionState& subState, ActivationDescription actDesc)
        at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl)
        at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)
    --- Inner Exception ---
    System.Net.WebException
    - Could not find file 'C:\Users\Simbuild\Downloads\evix2\evix2\bin\Debug\compas.ico'.
    - Source: System
    - Stack trace:
        at System.Net.FileWebRequest.EndGetResponse(IAsyncResult asyncResult)
        at System.Net.FileWebRequest.GetResponse()
        at System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next)
    --- Inner Exception ---
    System.Net.WebException
    - Could not find file 'C:\Users\Simbuild\Downloads\evix2\evix2\bin\Debug\compas.ico'.
    - Source: System
    - Stack trace:
        at System.Net.FileWebResponse..ctor(FileWebRequest request, Uri uri, FileAccess access, Boolean asyncHint)
        at System.Net.FileWebRequest.GetResponseCallback(Object state)
    --- Inner Exception ---
    System.IO.FileNotFoundException
    - Could not find file 'C:\Users\Simbuild\Downloads\evix2\evix2\bin\Debug\compas.ico'.
    - Source: mscorlib
    - Stack trace:
        at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
        at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
        at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
        at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean useAsync)
        at System.Net.FileWebStream..ctor(FileWebRequest request, String path, FileMode mode, FileAccess access, FileShare sharing, Int32 length, Boolean async)
        at System.Net.FileWebResponse..ctor(FileWebRequest request, Uri uri, FileAccess access, Boolean asyncHint)

COMPONENT STORE TRANSACTION DETAILS
No transaction information is available.
我的程序是用C#和windows窗体完成的,不涉及任何在线组件或任何URL来下载或更新,所以我所要做的就是制作一个任何人都可以在windows机器上运行的版本


我的计算机是Windows 8.1

您的程序正在生成目录中查找
compas.ico
,而它可能位于项目中的其他目录中。

您是否将
compas.ico
标记为项目中的内容?将compas.ico移动到调试文件夹可以消除此错误,但仍无法打开,现在有一个新的错误
应用程序验证未成功
详细信息下的错误是`下面的错误摘要是错误的摘要,这些错误的详细信息稍后将在日志中列出。*激活C:\Users\Simbuild\Downloads\evix2\evix2\bin\Debug\Evix Charachter Creator.application导致异常。检测到以下失败消息:+文件Evix Charachter Creator.exe的计算哈希值与清单中指定的不同。`将compas.ico移动到调试文件夹可以消除此错误,但仍无法打开,现在,在“详细信息”下出现了一个新错误“应用程序验证未成功”。错误是“下面的错误摘要是错误的摘要,这些错误的详细信息将在稍后的日志中列出。*激活C:\Users\Simbuild\Downloads\evix2\evix2\bin\Debug\Evix Charachter Creator.application导致异常。检测到以下失败消息:+文件Evix Charachter Creator.exe的计算哈希值与清单中指定的不同`