Not able to initialize config file in Selenium C# | Selenium C# Forum
ALAK DUTTA Posted on 28/06/2020


I am having problem to initialize my config file when try to run the test case. Here is the message I got

System.Configuration.ConfigurationErrorsException : Configuration system failed to initialize.

this is my config file 

<?xml version="1.0" encoding="utf-8" ?>
<add key="appurl" value=""/>
<add key="emailid_xpath" value="//input[@id='login-username']"/>
<add key="nextbtn_xpath" value="//input[@id='login-signin']"/>
<add key="gecodriver" value="D:\\Selenium with C#"/>

I am following exactly the way it is shown in the training session. I am using  visual studio 2019 enterprise edition.



Ashish Thakur Replied on 03/07/2020

Do you see any error?

ALAK DUTTA Replied on 06/07/2020

The problem is resolved

anand kiran kanakala Replied on 07/12/2020

How to resolve this issue alak, i am also facing same issue.

Subrahmanyam Replied on 31/05/2021

I am also facing the same issue please help me 


Message: System.ArgumentNullException : Argument 'url' cannot be null.
Parameter name: value


i am getting this error i am reading data from appconfigfile..?


Subrahmanyam Replied on 31/05/2021

Hi alak dutta please help me to resolve the issue you got.?


Raj Kishore Replied on 26/06/2021

Post the code how you are trying to read the app config file.

Rahul Singh Replied on 04/03/2022

Could anyone tell me if your issues has been resolved or not, I am also facing the same. @Instructor could you help