The name must start with an invalid character. An error occurred while processing the resource 'HTTP: // localhost/WS/service. asmx. Row 1st, Location: 2

Source: Internet
Author: User

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.

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.