Recently I changed my laptop, the system changed from XP SP3 to Windows 7, and the IIS version also changed to 7.5. However, the original demonstration uses vs2008 to create a Web ServiceProgramNo longer working. Two problems occurred when calling Web service.
1. A 500.19 error occurs. Error message:
This configuration section cannot be used in this path. This situation occurs if this section is locked at the parent level. The lock is set by default (overridemodedefault = "deny"), or is explicitly set by the position that contains overridemode = "deny" or the old AllowOverride = "false.
It is found that ASP. NET is not installed when IIS is installed. See:
2. The following configuration error occurs:
The Section registered as allowdefinition = 'machinetoapplication' outside the application level is incorrect. This error may occur if the virtual directory is not configured as an application in IIS.
It is found that the virtual path is not configured as an application in IIS. In this case, the virtual path should be converted into an application. See:
After solving these two problems, the original Web Service is working again.