VSEnterpriseHelper.axd http 处理程序
我在 Web 服务测试方面遇到问题。 我为 Web 服务类生成了一个测试方法,将 default.aspx 添加到 Web 服务,将属性更改为
[UrlToTest("http://localhost:54785/Default.aspx")]
,添加
<location path="VSEnterpriseHelper.axd">
<system.web>
<authorization>
<allow users="*" />
</authorization>
</system.web>
</location>
到 Web 服务配置文件,在默认网站和我的 Web 服务的 IIS http 处理程序中签入定义axd-isapi-2.0 和 axd-isapi-2.0-64(路径 = *.axd)。 然而,当我运行 ms 测试时,我发现
The test adapter 'WebHostAdapter' threw an exception while running test 'TestMethod'. The web site could not be configured correctly; getting ASP.NET process information failed. Requesting 'http://localhost:52415/VSEnterpriseHelper.axd' returned an error: The remote server returned an error: (500) Internal Server Error.
...
我还尝试将 UrlToTest 从 Web 服务更改为 default.aspx 的 IIS 映射。
你能给我一些想法吗?
谢谢
I have a problem with web service testing.
I generated a test method for a web service class, added a default.aspx to web service, changed attribute to
[UrlToTest("http://localhost:54785/Default.aspx")]
, added
<location path="VSEnterpriseHelper.axd">
<system.web>
<authorization>
<allow users="*" />
</authorization>
</system.web>
</location>
to web service config file, checked in IIS http handlers for both default web site and my web service to have a definition for axd-isapi-2.0 and axd-isapi-2.0-64(path = *.axd).
Yet, when I run the ms test, I get
The test adapter 'WebHostAdapter' threw an exception while running test 'TestMethod'. The web site could not be configured correctly; getting ASP.NET process information failed. Requesting 'http://localhost:52415/VSEnterpriseHelper.axd' returned an error: The remote server returned an error: (500) Internal Server Error.
...
I have also tried changing UrlToTest to IIS mapping of default.aspx from web service.
Could you give me some ideas?
Thank you
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论