The ultimate solution for WebService access failure.

Source: Internet
Author: User

The day before yesterday, the website's WebService suddenly became inaccessible. The prompt says the page cannot be found. Website attributes and environment: Asp.net and virtual host. Du Niang and Google cannot solve this problem, and no one in the technical group has encountered such a problem. The configuration is normal, but the prompt page says the page cannot be found. I want to: is it a problem with IIS configuration?

Website --- properties --- home directory --- configuration --- ing ---- add

The default executable file is:

C: \ windows \ microsoft.net \ framework \ v2.0.50727 \ aspnet_isapi.dll

Perform corresponding processing

Extension:. Asmx

Behavior restriction:Get, Head, post, debug

Check whether the file exists: This option is selected by default. Do not select this option.

Let the technical support of the VM side be modified, and the other side said: This configuration is not required, and IIS has been configured by default.

No!

I also thought: is it a problem with the configuration file?

Because of the powerful functions of Vs, the configuration in Web. config is automatically generated and should be correct.

Some people say that adding such configuration in Web. config can solve the problem.

 < System. Web  > 
< WebServices >
< Protocols >
< Add Name = "Httpget" />
< Add Name = "Httppost" />
</ Protocols >
</ WebServices >
</ System. Web >

After the change, it will not work!

So far, I have been suffering a lot of pain,

Finally, another problem was found. The WebService on the other virtual host can be accessed normally, and the configuration is the same. It seems that the soil and water of the VM is poor. Therefore:Change.

the technical support over there helped me replace a new virtual host. After it was released, it was normal. Why didn't I know. We hope that our colleagues who encounter this similar situation can consider this method in the future. Of course, this is the final method. Of course, you can choose not to use WebService.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.