webservice 远程测试显示 “测试窗体只能用于来自本地计算机的请求”
The test form is only available for requests from the local
machine.
解决的方法:
在 web.cong 中的 system.web 节点下加入如下配置节内容
<webServices>
<protocols>
<add name="HttpSoap"/>
<add name="HttpPost"/>
<add name="HttpGet"/>
<add name="Documentation"/>
</protocols>
</webServices>
现在找到了,貌似 Web.cong 的问题,抛出异常发现
System.Web.Services.Protocols.SoapException: 服务器无法处理请求。
---> System.Conguration.CongurationErrorsException: Error
creating context 'spring.root': 虚拟路径“/currentcontext.dummy”映射
到另一个应用程序,这是不允许的。 ---> System.ArgumentException: 虚
拟路径“/currentcontext.dummy”映射到另一个应用程序,这是不允许的。
在 System.Web.VirtualPath.FailIfNotWithinAppRoot()
在 System.Web.HttpContext.RewritePath(String path, Boolean
rebaseClientPath)
在 Spring.Util.HttpContextSwitch..ctor(String virtualDirectory)
在
Spring.Context.Support.WebContextHandler.InstantiateContext(IAppl
icationContext parent, Object congContext, String contextName,
Type contextType, Boolean caseSensitive, String[] resources)
在 Spring.Context.Support.ContextHandler.Create(Object parent,
Object congContext, XmlNode section)
Web.cong 中 springs.net 的配置:
<context>
<resource uri="../Cong/XX.xml"></resource>
<resource uri="../Cong/XXX.xml"></resource>
<resource uri="cong://spring/objects" />
</context>
评论0
最新资源