2014-06-24 4 views
4

Visual Studio를 사용하여 첫 번째 Windows 바탕 화면 C# wpf app을 만듭니다.내 앱을 올바르게 게시하려면 어떻게해야합니까?

나는 배포/배포/구축하고 싶은 단계에 있습니다.

Visual Studio Express 2013에서 프로젝트를 마우스 오른쪽 단추로 클릭하고 게시를 클릭 한 후 다음을 클릭하고 게시 위치 기본값을 그대로두면 사용자는 CD-ROM/DVD 및 업데이 트를 확인하고 마침을 클릭하지 말라고.

그런 다음 내 데스크톱에 'clickonce'응용 프로그램을 만듭니다. 그래서 웹 서버에 업로드하여 다운로드하고 실행 해 봅니다.

실패합니다.

은 말한다 : 내가 잘못 뭐하는 거지

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

SOURCES 
    Deployment url   : file:///C:/Users/Lanboy/Downloads/Bingo%20Game.application 

IDENTITIES 
    Deployment Identity  : Bingo Game.application, Version=1.0.0.1, Culture=neutral, PublicKeyToken=a82aa93ff33fa9be, processorArchitecture=msil 

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\Lanboy\Downloads\Bingo Game.application resulted in exception. Following failure messages were detected: 
     + Downloading file:///C:/Users/Lanboy/Downloads/Application Files/Bingo Game_1_0_0_1/Bingo Game.exe.manifest did not succeed. 
     + Could not find a part of the path 'C:\Users\Lanboy\Downloads\Application Files\Bingo Game_1_0_0_1\Bingo Game.exe.manifest'. 
     + Could not find a part of the path 'C:\Users\Lanboy\Downloads\Application Files\Bingo Game_1_0_0_1\Bingo Game.exe.manifest'. 
     + Could not find a part of the path 'C:\Users\Lanboy\Downloads\Application Files\Bingo Game_1_0_0_1\Bingo Game.exe.manifest'. 

COMPONENT STORE TRANSACTION FAILURE SUMMARY 
    No transaction error was detected. 

WARNINGS 
    There were no warnings during this operation. 

OPERATION PROGRESS STATUS 
    * [24/06/2014 19:49:15] : Activation of C:\Users\Lanboy\Downloads\Bingo Game.application has started. 
    * [24/06/2014 19:49:15] : Processing of deployment manifest has successfully completed. 
    * [24/06/2014 19:49:15] : Installation of the application has started. 

ERROR DETAILS 
    Following errors were detected during this operation. 
    * [24/06/2014 19:49:15] System.Deployment.Application.DeploymentDownloadException (Unknown subtype) 
     - Downloading file:///C:/Users/Lanboy/Downloads/Application Files/Bingo Game_1_0_0_1/Bingo Game.exe.manifest 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.DownloadApplicationManifest(AssemblyManifest deploymentManifest, String targetDir, Uri deploymentUri, IDownloadNotification notification, DownloadOptions options, Uri& appSourceUri, String& appManifestPath) 
      at System.Deployment.Application.DownloadManager.DownloadApplicationManifest(AssemblyManifest deploymentManifest, String targetDir, Uri deploymentUri, Uri& appSourceUri, String& appManifestPath) 
      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 a part of the path 'C:\Users\Lanboy\Downloads\Application Files\Bingo Game_1_0_0_1\Bingo Game.exe.manifest'. 
     - 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 a part of the path 'C:\Users\Lanboy\Downloads\Application Files\Bingo Game_1_0_0_1\Bingo Game.exe.manifest'. 
     - 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.DirectoryNotFoundException 
     - Could not find a part of the path 'C:\Users\Lanboy\Downloads\Application Files\Bingo Game_1_0_0_1\Bingo Game.exe.manifest'. 
     - 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. 

:

Cannot download the application. The application is missing required files. Contact application vendor for assistance. 

내가 더 자세한 정보를 얻을 세부 사항을 클릭하면? 중요한 단계가 빠졌습니까? 내 서버에 매니페스트 파일을 호스팅하고 어떻게해야합니까?

도움을 주시면 대단히 감사하겠습니다.

업데이트 덧글과 답에 따라 나는 주어진 파일을 모두 게시하고 압축하여 결정했습니다. 압축 폴더에있는 파일 포함 :

Bingo Game.application 
Bingo Game.exe.config.deploy 
Bingo Game.exe.deploy 
Bingo Game.exe.manifest 

난 후 압축을 풀고 빙고 Game.application을 클릭, 서버, 다운로드에 업로드를 다시하고 상기와 정확히 같은 오류와 함께 실패합니다.

+0

본 적이 있습니까? http://stackoverflow.com/questions/24347722/publish-windows-app-to-be-emailed/24347981#24347981 –

+0

업로드 한 파일과 다운로드 한 파일에 대한 정보를 추가 할 수 있습니까? – Herdo

+0

답변 한 사람들에게. 내가 가지고있는 것/havent을 업로드하고, 서버에 명시하는 등의 혼란이있는 것 같다. 가능한 한 많은 세부 사항을 넣으려고했지만 위에 나와있는 단계를 벗어난 일은하지 않았다. 감사합니다 – RSM

답변

2

확인하는 것들 중 몇이있다;

BingoGame 
    Application Files 
     Bingo Game_1_0_0_0 
      *.deploy 
      Bingo.Game.exe.manifest 
     Bingo Game_1_0_0_1 
      *.deploy 
      Bingo.Game.exe.manifest 
    Bingo.Game.Application 
    setup.exe 

이 파일은 당신이에서 다운로드하는 서버에 있어야합니다 (그것은 않습니다 : 당신이 (다음이 아마 당신은 원하는 구조하지 않은 경우) 귀하의 응용 프로그램을 게시 할 때 첫째로, 당신은 다음과 같은 디렉토리 구조를 볼 수 있습니다 매니 페스트가 의심스럽지 않은 것처럼 보입니다).

빌드가 끝나면 파일이 변경되지 않았음에도 중요합니다. 그들이 가지고 있고, 당신이 원하지 않거나, 다시 지을 수 없다면, mage을보십시오.

0

파일의 일부만 업로드하는 것 같습니다. 아래 이미지에서 ClickOnce 프로세스가 여러 파일을 생성한다는 것을 알 수 있습니다. ClickOnce 앱이 프로그램이 손상되지 않았 음을 확인할 수 없도록 .manifest 파일을 복사하지 않은 것 같습니다.

MS Site

출처 : http://msdn.microsoft.com/en-us/library/ff699352.aspx

+0

@rsm :이 MS 링크는 꽤 좋으며 잘 작동합니다. 이 튜토리얼을 사용하여 배포를 배웠으며 서버에서 자동 업데이트로 여러 애플리케이션을 배포했습니다. –

0

매니페스트 파일이 설치 파일이있는 웹 서버에 있는지 확인하기 위해 이전 답변의 지침을 따른 후 IIS가 ".manifest"파일을 제공하는지 확인해야합니다. 저는 IIS 7이 기본적으로 이것을 허용한다고 생각하지만 이전 버전의 IIS를 사용하는 경우 문제가 될 수 있습니다.

체크 아웃 Adding the Manifest Extension to the MIME Types on IIS

+0

im은 아파치 웹 서버에 없습니다. – RSM

관련 문제