Приложение C # не запускается на одном ПК - PullRequest
0 голосов
/ 13 октября 2018

У меня есть приложение, которое работает на большом количестве компьютеров.На одном компьютере он не запускается, и средство просмотра событий Windows создает следующий журнал (который был отправлен мне клиентом):

Имя журнала: Источник приложения: .NET Runtime Date:
10.11.2008 17:00:31 КОД события: 1026 Категория задачи: нет Уровень:
Ключевые слова ошибки: классический пользователь: н / д Компьютер: имя_пакета Описание: приложение: MyApp.exe Framework Версия: v4.0.30319Описание: процесс был прерван из-за необработанного исключения.Информация об исключении: System.Configuration.ConfigurationErrorsException
в System.Configuration.ConfigurationSchemaErrors.в System.Configuration.ClientConfigurationSystem.EnsureInit (System.String)

Информация об исключении: System.Configuration.ConfigurationErrorsException
в System.Configuration.ConfigurationManager.PrepareConfigSystem ()
в System.Configuration.Configuration.GetSection (System.String) в System.Xml.Serialization.TempAssembly.get_UseLegacySerializerGeneration () в System.Xml.Serialization.TempAssembly..ctor (System.Xml.Serialization.XmlMapping [], System.Type [], System.String,System.String, System.Security.Policy.Evidence) в System.Xml.Serialization.XmlSerializer.GetSerializersFromCache (System.Xml.Serialization.XmlMapping [], System.Type) вSystem.Xml.Serialization.XmlSerializer.FromMappings (System.Xml.Serialization.XmlMapping [], System.Type) в System.Web.Services.Protocols.SoapClientType..ctor (System.Type) в System.Web.Services.Protocols.SoapHttpClientProtocol..ctor () в CrashReporterDotNET.com.drdump.HttpsCrashReporterReportUploader..ctor () в CrashReporterDotNET.DrDump.DrDumpService..ctor () в CrashReporterDotNET.CrashRerashportSport) в CrashReporterDotNET.ReportCrash.Send (System.Exception) в MyApp.App.ReportCrash (System.Exception, System.String) в MyApp.App.CurrentDomainOnUnhandledException (System.Object, System.UnhandledExceptionEventArgs)

* Подобные темы не были релевантны, так как мой файл app.config оказался другим.

РЕДАКТИРОВАТЬ: Это мой файл app.config:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <configSections>
    <sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
      <section name="MyApp.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" />
    </sectionGroup>
  </configSections>
  <runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <dependentAssembly>
        <assemblyIdentity name="System.Runtime" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-2.6.10.0" newVersion="2.6.10.0" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="System.Threading.Tasks" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-2.6.10.0" newVersion="2.6.10.0" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="System.Net.Http" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-2.2.29.0" newVersion="2.2.29.0" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="System.Net.Http.Primitives" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-2.2.29.0" newVersion="2.2.29.0" />
      </dependentAssembly>
    </assemblyBinding>
  </runtime>
  <userSettings>
    <MyApp.Properties.Settings>
      <setting name="MySettings1" serializeAs="String">
        <value>1</value>
      </setting>
      ........
      ........
      <setting name="MySettings15" serializeAs="String">
        <value>False</value>
      </setting>
    </MyApp.Properties.Settings>
  </userSettings>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0" /></startup></configuration>
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...