Correct the endpoint. If you have hosted your service on a computer, put the computer's name in stead of localhost and the service should work.
yes i hosted my service in my computer windows vista sp1
i puted the computer's name in
<host>
<baseAddresses>
<add baseAddress="http://localhost:ashrafelhakim/Design_Time_Addresses/Server/Service1/" />
</baseAddresses>
</host>
the service can't run.
and when i try to put the computer name in this
public static System.ServiceModel.EndpointAddress EndpointAddress = new System.ServiceModel.EndpointAddress("http://AshrafEL-Hakim/websitewcf/Greeting.svc");
the same error.
and when i try to change it to
and i think u mean this :
http://localhost:AshrafEl-hakim/webwebsitewcf/Greeting.svc");
the same error too :(
i understood u correct or not ? am sry
but really i need ur help :(