SAP-SMP "Нарушение прав доступа" при OpenStoreAsync - Windows 8.1

Я сталкиваюсь с исключением в моем рабочем столе Windows, которое началось без причины.

Я работал над этим проектом около месяца, и после обновления некоторых окон проект рабочего стола перестал работать.

public async Task<bool> OpenOfflineStore(ODataOfflineStore store, string serviceRoot, string storeName, List<string> definingRequest)
    {
        HttpClient client = new HttpClient();
        CancellationTokenSource source = new CancellationTokenSource();
        CancellationToken token = source.Token;
        StoreListener progress = new StoreListener();
        progress.source = source;
        try
        {
            var connectionId = (Globals.LogonCore.ApplicationSettings).ApplicationConnectionId;

            Initialize();

            client.DefaultRequestHeaders.TryAppendWithoutValidation("X-SMP-APPCID", connectionId);
            client.DefaultRequestHeaders.TryAppendWithoutValidation("X-SUP-APPCID", connectionId);
            client.ShouldHandleXcsrfToken = true;
            client.ShouldHandleSamlRequests = false;

            client.PasswordCredential = new PasswordCredential(Globals.LogonCore.LogonContext.RegistrationContext.BackendUserName,
                                                               Globals.LogonCore.LogonContext.RegistrationContext.BackendPassword);   
            await store.OpenStoreAsync(GetOptions(client, serviceRoot, storeName, definingRequest), token, progress);
            return true;
        }
        catch(Exception ex)
        {
            Debug.WriteLine(ex);
            return false;
        }

Сбой приложения при входе в метод store.OpenStoreAsync, все необходимые свойства заполнены правильно.

Последняя информация, которую я предоставил:

The thread 0x2270 has exited with code 0 (0x0).
Exception thrown: 'System.IO.FileNotFoundException' in mscorlib.dll
Step into: Stepping over property 'System.Runtime.CompilerServices.AsyncTaskMethodBuilder.get_Task'.  To step into properties, go to Tools->Options->Debugging and uncheck 'Step over properties and operators (Managed only)'.
Step into: Stepping over property 'System.Runtime.CompilerServices.TaskAwaiter.get_IsCompleted'.  To step into properties, go to Tools->Options->Debugging and uncheck 'Step over properties and operators (Managed only)'.
The thread 0x28f4 has exited with code 0 (0x0).
The thread 0x2a74 has exited with code 0 (0x0).
The thread 0x2a28 has exited with code 0 (0x0).
The thread 0x1174 has exited with code 0 (0x0).
The thread 0xb98 has exited with code 0 (0x0).
The thread 0x21b8 has exited with code 0 (0x0).
The thread 0x2210 has exited with code 0 (0x0).
The thread 0x22c0 has exited with code 0 (0x0).
The thread 0x1368 has exited with code 0 (0x0).
The thread 0x1714 has exited with code 0 (0x0).
The thread 0x18f4 has exited with code 0 (0x0).
The program '[10228] SalesInMotion.Windows.exe' has exited with code -1073741819 (0xc0000005) 'Access violation'.

Когда я запускаю проект Windows Phone, он работает.

РЕДАКТИРОВАТЬ: Я снял флажок "Перешагнуть через свойства и операторы (только для управляемых)", как указано в выводе. И теперь я получаю эти сообщения там.

    'SalesInMotion.Windows.exe' (CLR v4.0.30319: Immersive Application Domain): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Net.Http\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Net.Http.dll'. Cannot find or open the PDB file.
Exception thrown: 'System.IO.FileNotFoundException' in mscorlib.dll
The thread 0x1130 has exited with code 0 (0x0).
The thread 0x2734 has exited with code 0 (0x0).
The thread 0x202c has exited with code 0 (0x0).
The thread 0x2948 has exited with code 0 (0x0).
The thread 0xed4 has exited with code 0 (0x0).
The thread 0x388 has exited with code 0 (0x0).
The thread 0x2064 has exited with code 0 (0x0).
The thread 0x2bd4 has exited with code 0 (0x0).
The program '[5040] SalesInMotion.Windows.exe' has exited with code -1073741819 (0xc0000005) 'Access violation'.

0 ответов

Другие вопросы по тегам