I just learned about WebServices, but I don't understand many things. I wrote the simplest example. Press Ctrl + F5 in vs2005 to run the program. However, an error is prompted when copying the program to the IIS directory.
[The name must start with an invalid character. An error occurred while processing the resource 'HTTP: // localhost/WS/service. asmx. Row 1st, Location: 2]
I really don't know why. I can't search on the Internet and finally find a solution.
Run
C:/Windows/Microsoft. NET/framework/v2.0.50727/aspnet_regiis.exe-I
You can.
But what is aspnet_regiis.exe?
The following is an explanation provided by msdn:
ASP. net iis registration tool (aspnet_regiis.exe)
Execute multiple tasks in parallel on a computer. net Framework, which is mapped to ASP. NET application ASP. the net ISAPI version determines the Common Language Runtime Library (CLR) version used by the application. Use ASP. net IIS registration tool (aspnet_regiis.exe), the Administrator or installer can easily update ASP.. NET application script ing to point to the ASP.. Net ISAPI version. This tool can also be used to display the status of all installed ASP. NET versions, register ASP. NET versions coupled with this tool, create client script directories, and perform other configuration operations.
Parameter I means:
Install the ASP. NET version associated with aspnet_regiis.exe, and update the script ing between the IIS metadata library root directory and the root directory.
Update only the script ing of applications that use the early ASP. NET version. New applications are not affected.
I said that it is to register Asp.net on the local IIS, so that the Asp.net web page can be executed. Isn't Asp.net WebServices created when a WebServices project is created, so register it.