Problem:
Customer is encountering a problem in publishing a method in Web Services. He's following the tutorial - compiles the Hello Word program, asteriscs it etc. When he comes to creating the client part adding the Web Service part he says that the Hello World method is not published and he cannot see it.
Resolution:
This problem may actually occur with any service that is selected from the Add Web Reference wizard. This simply means that the file name extension (.asmx) was not mapped to any program or interpreter that processes that type file.
Here are the steps to map that file name extenstion to the program or interpreter:
1. Find out if there are different versions of the MS .NET Framework installed on the machine
2. Determine which one (if there are more than one version) is the latest version by looking at the directory name (e.g. C:\\[Windows directory]\\Microsoft.NET\\Framework\\v1.1.4322 is more recent than C:\\[Windows directory]\\Microsoft.NET\\Framework\\v1.0.3705)
3. Open a command prompt session
4. Go to the directory where the latest version is at
5. Execute the following commands:
aspnet_regiis.exe -i<enter>
iisreset /restart<enter>