Two errors have plagued the creation of web service with vs2005 in the past two days:
=> [Error 1]: the website has been redirected in the host table.
Method: The hosts table file is stored in the system. Windows 9x is stored in the C: \ Windows directory. Windows NT/2000 is stored in C: \ winnt \ system32 \ drivers \ etc directory. Windows XP is saved in c: \ windows \ system32 \ drivers \ etc. If not found, you can search by using the system's search tool. After finding it, open it directly with notepad, and delete all the content of other lines except the beginning of "#", for example, "127.0.0.1 onlinestore.smgbb.cn ", click Save to save the file. Of course, you can also choose to delete websites that are blocked and you want to access, so that other blocked websites will not be affected.
=> [Error 2]: start debugging:
Unable to attach. The binding handle is invalid.
[Method]: simply enable the terminal service in the control panel, performance maintenance, management tools, and services.
Sadly, my newly installed XP did not change the service, and there was also a remote item in my computer \ attributes. I did not find any feasible method for searching through the Internet.
However, start without debugging and view in browser of the. asmx file can be displayed normally. Probably because they are not fully debugged.
In addition, if http: // localhost/WebService exists directly during Web Service creation, the system prompts the serviceProgramAn error occurs, probably because the local server is not properly configured.
If D exists, the disk is displayed normally.