Previous Thread:   re: [ServiceContract] attribute

10/3/2005 10:47:15 PM    Programming Indigo - David Pallmann
Hello!  
  
I'm reading through David Palmann's book Programming Indigo and also trying  
  
all  
  
samples that are written in this book. I made successfully "hello1" sample  
  
in Chapter 3, but sample "hello2" makes me problems. I went successfully  
  
through  
  
seven steps, creating the service, bulding the service, creating .svc file,  
  
configuration file,  
  
virtual directory and testing service with browser.  
  
When I test service with browser i get following:  
  
INPUT:  
  
http://localhost/hello2/service.svc  
  
OUTPUT:  
  
<%@Service language=c# Debug="true" class="ProgrammingIndigo.HelloService"  
  
%>  
  
<%@Assembly Name="service" %>  
  
I also wrote the code for client. I can't continue with eight step, where  
  
proxy code for the client  
  
is generated. When i use svcutil i get following:  
  
INPUT:  
  
svcutil http://localhost/hello2/service.svc  
  
OUTPUT:  
  
----------------------------------------------------------------------------------------------------  
  
Error: Unable to obtain Metadata from the Uri provided  
  
Error:   WS-MetadataExchange Failed on  
  
URI:http://localhost/hello2/service.svc  
  
The remote server returned an unexpected response: (405) Method not  
  
allowed.  
  
Error:   HTTP Get failed on URI:http://localhost/hello2/service.svc  
  
The document at the url http://localhost/hello2/service.svc was not  
  
recogniz  
  
ed as a known document type.  
  
The error message from each known type may help you fix the problem:  
  
- Report from 'system.web.services.discovery.discoverydocumentreference' is  
  
'Nam  
  
e cannot begin with the '%' character, hexadecimal value 0x25. Line 1,  
  
position  
  
2.'.  
  
- Report from 'system.web.services.discovery.contractreference' is 'There is  
  
an  
  
error in the XML document.'.  
  
- Name cannot begin with the '%' character, hexadecimal value 0x25. Line  
  
1, po  
  
sition 2.  
  
- Report from 'system.web.services.discovery.schemareference' is 'Name  
  
cannot be  
  
gin with the '%' character, hexadecimal value 0x25. Line 1, position 2.'.  
  
If you would like more help, please type "svcutil /?"  
  
----------------------------------------------------------------------------------------------------  
  
Any help will be appreciated.  
  
Thank you.  
  
Saso



10/3/2005 11:41:22 PM    Re: Programming Indigo - David Pallmann
"Saso" <saso.vinkovic@gmail.com> wrote in message  
  
news:epc%23luFyFHA.3772@TK2MSFTNGP10.phx.gbl...  
  
It sounds as if the .svc extension isn't getting mapped to aspnet_isapi.dll.  
  
Go to <windir>\Microsoft.Net\Framework\v50215  
  
and run aspnet_regiis -i  
  
This should set up the right mapping for you  
  
Regards  
  
Richard Blewett