DeploymentDownloadException クラス
アセンブリ: System.Deployment (system.deployment.dll 内)


DeploymentDownloadException は、ユーザーが ClickOnce アプリケーションの更新をダウンロードしようとしたときに、次のような複数の問題が発生したことを示します。
例外に関する詳細なエラー情報を取得するには、ClickOnce のエラー ログを参照してください。詳細については、「ClickOnce 配置のトラブルシューティング」を参照してください。

アプリケーションの更新を同期的にインストールし、マニフェストまたは配置のファイルをダウンロードする際に問題が発生したかどうかをユーザーに報告するコード例を次に示します。
Private Sub InstallUpdateSync() If (ApplicationDeployment.IsNetworkDeployed) Then Dim updateAvailable As Boolean = False Dim AD As ApplicationDeployment = ApplicationDeployment.CurrentDeployment Try updateAvailable = AD.CheckForUpdate() Catch dde As DeploymentDownloadException ' This exception occurs if a network error or disk error occurs ' when downloading the deployment. MessageBox.Show("The application cannot check for the existence of a new version at this time. " + ControlChars.Lf + ControlChars.Lf + "Please check your network connection, or try again later. Message: " + dde.Message) Exit Sub Catch ide As InvalidDeploymentException MessageBox.Show("The application cannot check for an update. The ClickOnce deployment is corrupt. Please redeploy the application and try again. Message: " + ide.Message) Exit Sub Catch ioe As InvalidOperationException MessageBox.Show("The application cannot check for an update. This most likely happened because the application is already updating. Message: " + ioe.Message) Exit Sub End Try If (updateAvailable) Then Try AD.Update() MessageBox.Show("The application has been upgraded, and will now restart.") Application.Restart() Catch dde As DeploymentDownloadException MessageBox.Show("Cannot install the latest version of the application. " + ControlChars.Lf + ControlChars.Lf + "Please check your network connection, or try again later.") End Try End If End If End Sub
private void InstallUpdateSync() { if (ApplicationDeployment.IsNetworkDeployed) { Boolean updateAvailable = false; ApplicationDeployment ad = ApplicationDeployment.CurrentDeployment; try { updateAvailable = ad.CheckForUpdate(); } catch (DeploymentDownloadException dde) { // This exception occurs if a network error or disk error occurs // when downloading the deployment. MessageBox.Show("The application cannt check for the existence of a new version at this time. \n\nPlease check your network connection, or try again later. Error: " + dde); return; } catch (InvalidDeploymentException ide) { MessageBox.Show("The application cannot check for an update. The ClickOnce deployment is corrupt. Please redeploy the application and try again. Error: " + ide.Message); return; } catch (InvalidOperationException ioe) { MessageBox.Show("This application cannot check for an update. This most often happens if the application is already in the process of updating. Error: " + ioe.Message); return; } if (updateAvailable) { try { ad.Update(); MessageBox.Show("The application has been upgraded, and will now restart."); Application.Restart(); } catch (DeploymentDownloadException dde) { MessageBox.Show("Cannot install the latest version of the application. Either the deployment server is unavailable, or your network connection is down. \n\nPlease check your network connection, or try again later. Error: " + dde.Message); } catch (TrustNotGrantedException tnge) { MessageBox.Show("The application cannot be updated. The system did not grant the application the appropriate level of trust. Please contact your system administrator or help desk for further troubleshooting. Error: " + tnge.Message); } } } }
public: void LaunchUpdateWithTimeout() { if (ApplicationDeployment::IsNetworkDeployed) { ApplicationDeployment^ appDeployment = ApplicationDeployment::CurrentDeployment; appDeployment->UpdateCompleted += gcnew AsyncCompletedEventHandler(this, &Form1::deploy_UpdateCompleted); // The Interval property uses millisecond resolution. timer1->Interval = (1000 * 60) * 2; timer1->Start(); appDeployment->UpdateAsync(); } } private: void deploy_UpdateCompleted(Object^ sender, AsyncCompletedEventArgs^ e) { timer1->Stop(); if (!e->Cancelled) { if (nullptr == e->Error) { Application::Restart(); } else { // Replace with your own error reporting or logging. MessageBox::Show( "The update of the application encountered an " + "error. Error message: {0}", e->Error->Message); } } else { // Replace with your own error reporting or logging. MessageBox::Show( "The application update was cancelled because the update " + "server was unreachable. Please try again later."); } } private: void timer1_Tick(Object^ sender, EventArgs^ e) { if (ApplicationDeployment::IsNetworkDeployed) { ApplicationDeployment::CurrentDeployment->UpdateAsyncCancel(); } }

System.Exception
System.SystemException
System.Deployment.Application.DeploymentException
System.Deployment.Application.DeploymentDownloadException


Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


DeploymentDownloadException コンストラクタ ()
アセンブリ: System.Deployment (system.deployment.dll 内)


Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


DeploymentDownloadException コンストラクタ (String)
アセンブリ: System.Deployment (system.deployment.dll 内)

パラメータ

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


DeploymentDownloadException コンストラクタ (SerializationInfo, StreamingContext)
アセンブリ: System.Deployment (system.deployment.dll 内)

Protected Sub New ( _ serializationInfo As SerializationInfo, _ streamingContext As StreamingContext _ )
Dim serializationInfo As SerializationInfo Dim streamingContext As StreamingContext Dim instance As New DeploymentDownloadException(serializationInfo, streamingContext)
protected DeploymentDownloadException (
SerializationInfo serializationInfo,
StreamingContext streamingContext
)
protected:
DeploymentDownloadException (
SerializationInfo^ serializationInfo,
StreamingContext streamingContext
)
protected DeploymentDownloadException (
SerializationInfo serializationInfo,
StreamingContext streamingContext
)
protected function DeploymentDownloadException ( serializationInfo : SerializationInfo, streamingContext : StreamingContext )
パラメータ
- serializationInfo
- streamingContext

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


DeploymentDownloadException コンストラクタ (String, Exception)
アセンブリ: System.Deployment (system.deployment.dll 内)

Dim message As String Dim innerException As Exception Dim instance As New DeploymentDownloadException(message, innerException)
パラメータ
- innerException

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


DeploymentDownloadException コンストラクタ

名前 | 説明 |
---|---|
DeploymentDownloadException () | |
DeploymentDownloadException (String) | |
DeploymentDownloadException (SerializationInfo, StreamingContext) | |
DeploymentDownloadException (String, Exception) |

DeploymentDownloadException プロパティ

名前 | 説明 | |
---|---|---|
![]() | Data | 例外に関する追加のユーザー定義情報を提供するキー/値ペアのコレクションを取得します。 ( Exception から継承されます。) |
![]() | HelpLink | 例外に関連付けられているヘルプ ファイルへのリンクを取得または設定します。 ( Exception から継承されます。) |
![]() | InnerException | 現在の例外を発生させた Exception インスタンスを取得します。 ( Exception から継承されます。) |
![]() | Message | 現在の例外を説明するメッセージを取得します。 ( Exception から継承されます。) |
![]() | Source | エラーの原因となったアプリケーションまたはオブジェクトの名前を取得または設定します。 ( Exception から継承されます。) |
![]() | StackTrace | 現在の例外がスローされたときにコール スタックにあったフレームの文字列形式を取得します。 ( Exception から継承されます。) |
![]() | TargetSite | 現在の例外をスローするメソッドを取得します。 ( Exception から継承されます。) |


関連項目
DeploymentDownloadException クラスSystem.Deployment.Application 名前空間
その他の技術情報
ClickOnce 配置のトラブルシューティングDeploymentDownloadException メソッド

名前 | 説明 | |
---|---|---|
![]() | Equals | オーバーロードされます。 2 つの Object インスタンスが等しいかどうかを判断します。 ( Object から継承されます。) |
![]() | GetBaseException | 派生クラスでオーバーライドされた場合、それ以後に発生する 1 つ以上の例外の主要な原因である Exception を返します。 ( Exception から継承されます。) |
![]() | GetHashCode | 特定の型のハッシュ関数として機能します。GetHashCode は、ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用に適しています。 ( Object から継承されます。) |
![]() | GetObjectData | ( DeploymentException から継承されます。) |
![]() | GetType | 現在のインスタンスのランタイム型を取得します。 ( Exception から継承されます。) |
![]() | ReferenceEquals | 指定した複数の Object インスタンスが同一かどうかを判断します。 ( Object から継承されます。) |
![]() | ToString | 現在の例外の文字列形式を作成して返します。 ( Exception から継承されます。) |

名前 | 説明 | |
---|---|---|
![]() | Finalize | Object がガベージ コレクションにより収集される前に、その Object がリソースを解放し、その他のクリーンアップ操作を実行できるようにします。 ( Object から継承されます。) |
![]() | MemberwiseClone | 現在の Object の簡易コピーを作成します。 ( Object から継承されます。) |

関連項目
DeploymentDownloadException クラスSystem.Deployment.Application 名前空間
その他の技術情報
ClickOnce 配置のトラブルシューティングDeploymentDownloadException メンバ
ClickOnce マニフェストまたは配置のファイルをクライアント コンピュータにダウンロードする際にエラーが発生したことを示します。
DeploymentDownloadException データ型で公開されるメンバを以下の表に示します。



名前 | 説明 | |
---|---|---|
![]() | Data | 例外に関する追加のユーザー定義情報を提供するキー/値ペアのコレクションを取得します。(Exception から継承されます。) |
![]() | HelpLink | 例外に関連付けられているヘルプ ファイルへのリンクを取得または設定します。(Exception から継承されます。) |
![]() | InnerException | 現在の例外を発生させた Exception インスタンスを取得します。(Exception から継承されます。) |
![]() | Message | 現在の例外を説明するメッセージを取得します。(Exception から継承されます。) |
![]() | Source | エラーの原因となったアプリケーションまたはオブジェクトの名前を取得または設定します。(Exception から継承されます。) |
![]() | StackTrace | 現在の例外がスローされたときにコール スタックにあったフレームの文字列形式を取得します。(Exception から継承されます。) |
![]() | TargetSite | 現在の例外をスローするメソッドを取得します。(Exception から継承されます。) |


名前 | 説明 | |
---|---|---|
![]() | Equals | オーバーロードされます。 2 つの Object インスタンスが等しいかどうかを判断します。 (Object から継承されます。) |
![]() | GetBaseException | 派生クラスでオーバーライドされた場合、それ以後に発生する 1 つ以上の例外の主要な原因である Exception を返します。 (Exception から継承されます。) |
![]() | GetHashCode | 特定の型のハッシュ関数として機能します。GetHashCode は、ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用に適しています。 (Object から継承されます。) |
![]() | GetObjectData | ( DeploymentException から継承されます。) |
![]() | GetType | 現在のインスタンスのランタイム型を取得します。 (Exception から継承されます。) |
![]() | ReferenceEquals | 指定した複数の Object インスタンスが同一かどうかを判断します。 (Object から継承されます。) |
![]() | ToString | 現在の例外の文字列形式を作成して返します。 (Exception から継承されます。) |

名前 | 説明 | |
---|---|---|
![]() | Finalize | Object がガベージ コレクションにより収集される前に、その Object がリソースを解放し、その他のクリーンアップ操作を実行できるようにします。 (Object から継承されます。) |
![]() | MemberwiseClone | 現在の Object の簡易コピーを作成します。 (Object から継承されます。) |

関連項目
DeploymentDownloadException クラスSystem.Deployment.Application 名前空間
その他の技術情報
ClickOnce 配置のトラブルシューティングWeblioに収録されているすべての辞書からDeploymentDownloadExceptionを検索する場合は、下記のリンクをクリックしてください。

- DeploymentDownloadExceptionのページへのリンク