我只是想添加
<system.transactions>
<machinesettings maxtimeout="02:30:00">
</machinesettings>
</system.transactions>
部分到我的 machine.config 本地文件的末尾,所以我测试了一个持续时间过长的事务。事务是从我与 SQL 服务器通信的本地 Windows 应用程序初始化的。
所以 machine.config 文件的结尾现在看起来像:
...
</providers>
</roleManager>
</system.web>
<system.transactions>
<machinesettings maxtimeout="02:30:00">
</machinesettings>
</system.transactions>
</configuration>
这是我现在的机器配置文件。
我正在修改 C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\machine.config C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config\machine.config
我正在遵循链接中给出的建议
但是,当我这样做并重新打开应用程序时,VS Studio 项目加载失败并显示以下消息:.Net Trace 处理失败。请检查您的 .Net 机器和企业配置。
修改 machine.config 后我应该做其他事情吗?是否有一些快速的方法可以摆脱这种情况,因为这是我正在做的第四件事,只是为了增加超时。
谢谢你的时间!