1

C#、Visual Studio 2010 Professional を使用して音声アプリケーションを作成しました。アプリは speech.dll を使用しています。完了したら、Build->PublishIDE をクリックするだけです。セットアップを生成しました。しかし、クライアントに渡すとすぐに、彼はセットアップがエラーのためにインストールできないと言ったと言いました。アプリケーションを別のコンピューターにインストールしましたが、同じエラーが発生しました。セットアップがうまくいきません!以下はエラーです

ここに画像の説明を入力

エラーの詳細は次のとおりです。

PLATFORM VERSION INFO
    Windows             : 6.1.7600.0 (Win32NT)
    Common Language Runtime     : 4.0.30319.17929
    System.Deployment.dll       : 4.0.30319.17929 built by: FX45RTMREL
    clr.dll             : 4.0.30319.17929 built by: FX45RTMREL
    dfdll.dll           : 4.0.30319.17929 built by: FX45RTMREL
    dfshim.dll          : 4.0.41209.0 (Main.041209-0000)

SOURCES
    Deployment url          : file:///C:/Users/yohan/Downloads/setup/Voice%20Software.application

ERROR SUMMARY
    Below is a summary of the errors, details of these errors are listed later in the log.
    * Activation of C:\Users\yohan\Downloads\setup\Voice Software.application resulted in exception. Following failure messages were detected:
        + Downloading file:///C:/Users/yohan/Downloads/setup/Voice Software.application did not succeed.
        + Could not find file 'C:\Users\yohan\Downloads\setup\Voice Software.application'.
        + Could not find file 'C:\Users\yohan\Downloads\setup\Voice Software.application'.
        + Could not find file 'C:\Users\yohan\Downloads\setup\Voice Software.application'.

COMPONENT STORE TRANSACTION FAILURE SUMMARY
    No transaction error was detected.

WARNINGS
    There were no warnings during this operation.

OPERATION PROGRESS STATUS
    * [04-Jun-13 11:13:32 AM] : Activation of C:\Users\yohan\Downloads\setup\Voice Software.application has started.

ERROR DETAILS
    Following errors were detected during this operation.
    * [04-Jun-13 11:13:37 AM] System.Deployment.Application.DeploymentDownloadException (Unknown subtype)
        - Downloading file:///C:/Users/yohan/Downloads/setup/Voice Software.application 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.DownloadManifestAsRawFile(Uri& sourceUri, String targetPath, IDownloadNotification notification, DownloadOptions options, ServerInformation& serverInformation)
            at System.Deployment.Application.DownloadManager.DownloadDeploymentManifestDirectBypass(SubscriptionStore subStore, Uri& sourceUri, TempFile& tempFile, SubscriptionState& subState, IDownloadNotification notification, DownloadOptions options, ServerInformation& serverInformation)
            at System.Deployment.Application.DownloadManager.DownloadDeploymentManifestBypass(SubscriptionStore subStore, Uri& sourceUri, TempFile& tempFile, SubscriptionState& subState, IDownloadNotification notification, DownloadOptions options)
            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\yohan\Downloads\setup\Voice Software.application'.
        - 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\yohan\Downloads\setup\Voice Software.application'.
        - 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\yohan\Downloads\setup\Voice Software.application'.
        - 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.

このセットアップは、アプリケーションがビルドされたマシンでのみ正常に機能します。何もダウンロードする必要はありません!どうしてこれなの?

4

1 に答える 1

0

おそらくcodebase属性を/asmv1:assembly/asmv2:deployment/asmv2:deploymentProvider正しく設定する必要があります。これは、Visual Studio のダイアログでは「更新場所」と呼ばれます。

詳細については、MSDN を参照してください

同様の問題については、この質問を参照してください。より詳細な回答があります。

于 2013-10-21T12:11:30.027 に答える