none
Unable to Read App Config file in Release throws null reference exception works fine on Local RRS feed

  • General discussion

  • <?xml version="1.0" encoding="utf-8" ?>
    <configuration>
      <appSettings>
        <add key="URL" value="https://xxxxx"/>
        <add key="UserName1" value="d365_test31@xxxx.com"/>
        <add key="Password1" value="xxxxx"/>
        <add key="UserName2" value="d365_test32@xxxx.com"/>
        <add key="Password2" value="xxxx"/>
        <add key="UserName3" value="d365_test21@xxxx.com"/>
        <add key="Password3" value="xxxxx"/>
        <add key="UserName4" value="d365_test31@xxx.com"/>
        <add key="Password4" value="xxxxx"/>
      </appSettings>
    </configuration>

    Coded UI Automation :

    Above is the app config file is created and these key values are reading in TestInitialize, this works perfectly on Local Machine but it is pushed to test server for script execution through build and Release.. Gettin NULL Referece Exception - Object reference not set to Instance of Object.

    We are Executing scripts on Test server by using Build and Release (with VS Test Task)

    Quick Response is Much appreciated !!!!

    - Jaya Gudi


    Thursday, October 11, 2018 9:37 AM