vendredi 14 février 2020

Failed to configure runsettings plugin 'VSTest Run Configuration' exception: 'Object reference not set to an instance of an object.'

I have a problem with my test configurations. The test does not run and displays this error: Error message

In the test there are no more other errors and also test works correctly in other computer, I think, I have problems with VS configurations, but I'm not sure. Here it is my test app configurations:

<?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="LSA_Test_FillUserForm.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="DocumentFormat.OpenXml" publicKeyToken="8fb06cb64d019a17" culture="neutral"/>
        <bindingRedirect oldVersion="0.0.0.0-2.10.0.0" newVersion="2.10.0.0"/>
      </dependentAssembly>
    </assemblyBinding>
  </runtime>
  <userSettings>
    <LSA_Test_FillUserForm.Properties.Settings>
      <setting name="Framework" serializeAs="String">
        <value>Framework45</value>
      </setting>
    </LSA_Test_FillUserForm.Properties.Settings>
  </userSettings>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6"/></startup></configuration>

And here it is my test run settings:

<?xml version="1.0" encoding="utf-8"?>
<RunConfiguration>
  <MaxCpuCount>1</MaxCpuCount>
  <TargetPlatform>x64</TargetPlatform>
  <TargetFrameworkVersion>Framework46</TargetFrameworkVersion>
  <TestSessionTimeout>20000</TestSessionTimeout>
</RunConfiguration>

Also this is visual studio configurations for test:

Configurations for all project

namespace configurations 1

namespace configurations 2

I really hope that someone can help me. Thanks a lot.

Aucun commentaire:

Enregistrer un commentaire