ASP.NET Web服务删除文档

时间:2017-10-27 06:36:41

标签: c# asp.net web-services

我想删除默认文档并在空白页面上显示我的方法,我尝试但是我收到了错误。
如何在空白页面上显示我的方法?

我尝试关注 web.config

<protocols>
          <remove name="Documentation">
          </remove>
 </protocols>

添加后我收到错误

请求格式无法识别。   描述:执行当前Web请求期间发生未处理的异常。请查看堆栈跟踪以获取有关错误及其源自代码的位置的更多信息。

异常详细信息:System.InvalidOperationException:请求格式无法识别。

来源错误:

在执行当前Web请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪来识别有关异常的起源和位置的信息。

Stack Trace: 



[InvalidOperationException: Request format is unrecognized.]
   System.Web.Services.Protocols.WebServiceHandlerFactory.CoreGetHandler(Type type, HttpContext context, HttpRequest request, HttpResponse response) +170817
   System.Web.Services.Protocols.WebServiceHandlerFactory.GetHandler(HttpContext context, String verb, String url, String filePath) +209
   System.Web.Script.Services.ScriptHandlerFactory.GetHandler(HttpContext context, String requestType, String url, String pathTranslated) +47
   System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig) +226
   System.Web.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +156
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155

请检查我的附件,我只想显示黑匣子区域

enter image description here

0 个答案:

没有答案