应用程序缺少所需的文件

Application is missing required files

错误图片:http://s23.postimg.org/7uj6qcxtn/9708083373e57a9ec91e4296e302f88e.png

Cannot Download the Application. The Application is missing required Files. Contact Application Vendor For Assistance.

所以我正在使用 SharpDevelop 5.2 构建一个 windows 表单应用程序,并且我正在尝试制作一个 standalone/version 其他人可以在另一台机器上使用的应用程序。在 sharpdevelop(和 visual studio 2015RC)中调试程序时 运行 很好,打开并且一切正常,没有错误。但是,每当我尝试通过 /bin/Debug/ 或 /bin/Release/ 中的文件 运行 时,它都不起作用。

当我 运行 .exe 没有任何反应,没有 window 没有弹出任何东西,当我 运行 .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 机器上。

我的机器是Windows8.1

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