How do I get the EntLib database settings to stay deleted?

I'm using EntLib 5.0 for logging and exception handling, but not for data access.

Everytime I delete the 'database settings' app block using the entlib designer, it re-adds itself after I rebuild the application. It wouldn't be a problem and I'd just leave it except that it creates LocalSqlServer and LocalMySqlServer instances automatically and throws "LocalMy[DB]Server (Connection String): Connection string is a required value" on the next build.

I've just deleted it before every other build, but that's obviously pretty annoying.

So again, how can I delete it such that it'll stay deleted?


You need to edit your machine.config.

This issue started for me, after I installed Wordpress/MySQL via Web Matrix.

It added this line into my .NET 2.0 machine.config file:

<add name="LocalMySqlServer" connectionString="" />

So all you need to do is open it up in a text editor and comment out that line!

In my case, the file was here: c:\Windows\Microsoft.NET\Framework\v2.0.50727\CONFIG\machine.config

And I commented out two providers, e.g.:

<!--    <add name="OraAspNetConString" connectionString=" " />
    <add name="LocalMySqlServer" connectionString="" /> -->

Need Your Help

Generalize a program using iglob

python glob

I have a program which scans a folder or path for a given type of files and then analyze them.

Why on double click android client received data?

java android sockets

When I click the first time on login button, data send to server and server received data in return on first click data not show on android client screen. When I pressed login button again it again...