Phenomenon: The browser can access the metadata, but run the time is reported 404 exception, said the target address could not be found.
Tossing the whole afternoon.
The address of the client in the reference service after config is this http://host/aspx/Services/app.svc/aspx/Services/app.svc
I've changed the address to http://host/aspx/Services/app.svc for granted.
It is also used to http://host/aspx/Services/app.svc this address when referencing metadata.
I firmly believe that if you can quote metadata, the service side will be fine.
I wrote a console program with the default HTTP://HOST/ASPX/SERVICES/APP.SVC/ASPX/SERVICES/APP.SVC address.
Server because of the complexity of the environment, I do not see the servers, I only know that my site is a subweb, and this sub-site config is not configured
So the client address generated after referencing the service is also very strange.
Believe that you can quote metadata, the service side will be OK.
404 error resolution for a magical WCF