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.