开发者

VSEnterpriseHelper.axd http handler

开发者 https://www.devze.com 2023-01-02 11:08 出处:网络
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

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 ha开发者_运维知识库ve 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

0

精彩评论

暂无评论...
验证码 换一张
取 消