在浏览器

时间:2016-08-24 16:59:02

标签: visual-studio-2015 asmx

我有一个带有asmx web服务的Web应用程序Visual Studio 2012转换为Visual Studio 2015。 在VS 2015中,当在本地IIS中运行并在浏览器中查看asmx时,该站点崩溃。在调试中我发现了未处理的异常:

  

System.StackOverflowException未处理   消息:未处理的类型' System.StackOverflowException'发生了>在System.Runtime.Serialization.dll

1 个答案:

答案 0 :(得分:0)

将此属性添加到WebService派生类。 [System.ComponentModel.ToolboxItem(假)]

它可以处理的方法数量有限制。最大值似乎是226。