2011-08-08 53 views
0

我运行一个专门的ASP .NET服务器上的临时环境已经工作得很好,直到最近,当我添加了以下到Web.config文件:Web.config在分段环境上失败,但在本地运行?

<location path="dashboard/api/ManageProjects.asmx"> 
<system.web> 
    <webServices> 
    <protocols> 
     <add name="HttpGet"/> 
    </protocols> 
    </webServices> 
</system.web> 
</location> 
<location path="administration/api/ManageProjects.asmx"> 
<system.web> 
    <webServices> 
    <protocols> 
     <add name="HttpGet"/> 
    </protocols> 
    </webServices> 
</system.web> 
</location> 

老实说,我没有任何想法的原因这完全破坏了临时环境,但它给了我一个错误500.

回答

0

我通过从web.config文件中删除位置内容,然后在web.config的部分下面添加了以下内容来解决了该问题:

<webServices> 
    <protocols> 
    <clear /> 
    <add name="HttpGet"/> 
    <add name="HttpPost"/> 
    </protocols> 
</webServices> 
相关问题