Hi @Ravnø Data ,
It may be the problem with app.config settings.
You need to check your code in app.config file with a format similar to the following..
<appSettings>
<add key ="ConnectionString" value="Data Source=server name;Initial Catalog=db name;User ID= sa;Password= sa"/>
</appSettings>
If you code this wrongly, typeintialiser error will throw.
Also if the key name is used different from app.config, also exception will throw.
Best Regards.
Jiachen Li
----------
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.