0

I need to add some new entries to machine.config on a machine running SharePoint 2013 (server). However, no matter what change I make, after I have saved the file and restarted IIS (both steps are successful), all SharePoint sites return HTTP Error 503 ("Service Unavailable") when an attempt is made to view them in a browser on a client machine.

In Internet Information Services (IIS) Manager, it seems that the entire server becomes unavailable - no application pool or site can be accessed, i.e. trying to click anything returns "Filename:redirection.config / Error: Cannot read configuration file". This error goes away once the original machine.config is restored.

The machine.config file I'm trying to edit is located at: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config

Any help on how to resolve this would be appreciated.

4

1 回答 1

0

原来你需要<sectionGroup>在 machine.config 中定义元素——我不知道这一点。例如,如果您想在<Test>某处使用密钥,则需要将其添加到 machine.config 中其他地方的相应部分,如下所示<section name="Test" .../>:更多信息可以在MSDN上找到。

于 2013-05-10T13:57:02.883 回答