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" ?>
        <add key="URL" value="https://xxxxx"/>
        <add key="UserName1" value=""/>
        <add key="Password1" value="xxxxx"/>
        <add key="UserName2" value=""/>
        <add key="Password2" value="xxxx"/>
        <add key="UserName3" value=""/>
        <add key="Password3" value="xxxxx"/>
        <add key="UserName4" value=""/>
        <add key="Password4" value="xxxxx"/>

    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