After modifying machine.config VS crashes, also many components

642 views Asked by At

I am just trying to add

<system.transactions>
    <machinesettings maxtimeout="02:30:00">
    </machinesettings>
</system.transactions>

section to the end of my machine.config local file so I test out a transaction that lasts for too long. The transaction is initialized from my local windows app communicating to SQL server.

So the end of machine.config file now looks like:

...
</providers>
        </roleManager>
    </system.web>
    <system.transactions>
        <machinesettings maxtimeout="02:30:00">
        </machinesettings>
    </system.transactions>
</configuration>

This is my machine config file now.

I am modifying both C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\machine.config C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config\machine.config

I am following advice given at the link

But, when I do this and reopen the app, VS studio project loading fails with the message: The .Net Trace handling fails. Please check your .Net machine and enterprise configuration.

Should I do something else after modifying machine.config ? Is there some quick way to get out of this as this is the fourth thing in the row I am doing only to increase the timeout.

Thank you for the time!

1

There are 1 answers

0
Срба On

Resolved:

machine.config is case sensitive. So the section should be:

<system.transactions>
    <machineSettings maxTimeout="02:30:00">
    </machineSettings>
</system.transactions>

my text was all in lower cases