Click here to Skip to main content
16,012,198 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

I have developed a desktop application. It works fine in XP,server2003,vista and windows7.
But the problem with server2008. I tried to trace the error occurring place. It is when connecting the database. DB server pings from the local system.

But I get this error --- <b>"Configuration system failed to initialize"</b>.

Please help me.

Thanks in Advance.
Posted
Updated 11-Jul-11 19:02pm
v2

1 solution

In app.config, configsections should be the first element.

<configsections>
</configsections>

<appsettings>
</appsettings>


Please check if this solved your issue.
 
Share this answer
 
v3
Comments
JohnBrittoJ 13-Jul-11 8:19am    
ya I agree with what you say. I tried that also. But not working.
I found the problem. The problem was with me.That is:

This should have been the connection String:
<appsettings>
<add key="connectionString" value="server=192.168.1.6;User ID=sa;Password=sa;database=databaseName; connection Reset=FALSE;">


But in my connection string '"' was missing at the end:

<appsettings>

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900