Итак, в настоящее время я работаю над проектом с использованием C#/XAML для приложения Магазина Windows 8, и я столкнулся с проблемой.
Когда пользователь переходит на страницу, появляется ListView с некоторыми элементами управления. Затем, когда пользователь решает привязать страницу, мое приложение падает и показывает это:
В моем IntelliTrace это появляется, и я нажимаю Exception.
Он направляет меня к этому коду.
/// <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;
РЕДАКТИРОВАТЬ ================================================ ==============================
Это ошибка, которая выдается
Я отключил отладку WCF, введя «C:\Program Files\Microsoft Visual Studio 11.0\Common7\IDE\VsDiag_regwcf.exe -u» в Cmd, и это решило 2/3 проблемы.
Это последняя ошибка в моем IntelliTrace:
Что означает эта ошибка? И есть ли у кого-нибудь идеи, как это исправить?
ArgumentException
метание. - person Farhan Ghumra   schedule 02.05.2013