Click here to Skip to main content
15,893,663 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i create service ref via svcutil.exe through cmd. i include genrated both file in project.and application give exception::

Could not find default endpoint element that references contract 'IService1' in the ServiceModel client configuration section. This might be because no configuration file was found for your application, or because no endpoint element matching this contract could be found in the client element.

but i include generated config file..

please help

thanks in advance
Posted

1 solution

I have suggested you to read the following series of articles and go step by step.

1. General Concepts
2. Building A Repository
3. Building The Service
4. Using The Service


HTH
 
Share this answer
 
Comments
Manoj Prajapat 14-Apr-11 4:41am    
thanks sir..
very helpful link sir...
but i got the solution
solution just update the configuration file..
update <bindings> and <client>
Sandeep Mewara 14-Apr-11 4:51am    
My 5! Good links.
[no name] 14-Apr-11 5:57am    
My pleasure.
Manoj Prajapat 14-Apr-11 6:04am    
sir there ??
[no name] 15-Apr-11 0:15am    
yes..

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900