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

Hello

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

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

this is my config file 

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="appurl" value="https://login.yahoo.com/?.src=ym&.lang=en-US&.intl=us&.done=https%3A%2F%2Fmail.yahoo.com%2Fd"/>
<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#"/>
</appSettings>
</configuration>

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

 

 


A
Ashish Thakur Replied on 03/07/2020

Do you see any error?


A
ALAK DUTTA Replied on 06/07/2020

The problem is resolved


A
anand kiran kanakala Replied on 07/12/2020

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


S
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..?

 


S
Subrahmanyam Replied on 31/05/2021

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

 


R
Raj Kishore Replied on 26/06/2021

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


R
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