0

そのため、現在 Windows 8 ストア アプリ用に C#/XAML を使用するプロジェクトに取り組んでおり、問題が発生しました。

ユーザーがページに移動すると、いくつかのコントロールを含む ListView が表示されます。次に、ユーザーがページをスナップすることを決定すると、アプリケーションがクラッシュし、次のように表示されます。

ここに画像の説明を入力

私の IntelliTrace では、これが表示され、例外を押します。

ここに画像の説明を入力

このコードに移動します。

     /// <summary>
    /// Implement this partial method to configure the service endpoint.
    /// </summary>
    /// <param name="serviceEndpoint">The endpoint to configure</param>
    /// <param name="clientCredentials">The client credentials</param>

    static partial void ConfigureEndpoint(System.ServiceModel.Description.ServiceEndpoint serviceEndpoint, System.ServiceModel.Description.ClientCredentials clientCredentials);

    public EmployeeAssisterClient() : 
            base(EmployeeAssisterClient.GetDefaultBinding(), EmployeeAssisterClient.GetDefaultEndpointAddress()) {
        this.Endpoint.Name = EndpointConfiguration.TimeLoggerEndPoint.ToString();
        ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
    }

次のようにリストビューにコントロールを追加します。

            _timeReports = _timeReportDatabase.GetAll();

            foreach (var timeReport in _timeReports)
            {
                _invoicedControls.Add(new InvoicedControl(timeReport)
                    {
                        Customer = timeReport.CustomerName,
                        Date = timeReport.Date,
                        WorkedTime = timeReport.WorkedTime.ToString(),
                        InvoicedTime = timeReport.InvoicedTime.ToString()
                    });
            }

            TimeReportsListViewFillView.ItemsSource = _invoicedControls;
            TimeReportsListViewFullView.ItemsSource = _invoicedControls;
            TimeReportsListViewPortraitView.ItemsSource = _invoicedControls;
            TimeReportsListViewSnappedView.ItemsSource = _invoicedControls;

編集============================================== =============================

これはスローされるエラーです

ここに画像の説明を入力

Cmd に「C:\Program Files\Microsoft Visual Studio 11.0\Common7\IDE\VsDiag_regwcf.exe -u」と入力して WCF デバッグをオフにすると、2/3 の問題が解決しました

これは、IntelliTrace の最後のエラーです。 ここに画像の説明を入力

このエラーはどういう意味ですか? そして、これを修正する方法を知っている人はいますか?

4

1 に答える 1