मैं एक अस्पष्टीकृत अपवादसेवा '' शून्य आवेदन (गैर बुनियादी ढांचे) अंतिम बिंदु है
Service 'EmployeeManagerImplementation.EmployeeManagerService' has zero application (non-infrastructure)
endpoints. This might be because no configuration file was found for your application,
or because no service element matching the service name could be found in the configuration file, or because no endpoints were defined in the service element.
iv'e अन्य पदों जो इस समस्या का समाधान कर लिया पार चलो मिल रही है, लेकिन कोई भी एक सटीक है लगता है जवाब, और उनके समाधानों में से कोई भी मेरे लिए काम नहीं किया।
Service has zero application (non-infrastructure) endpoints
किसी भी तरीकेयहाँ मेरी app.config है
<system.serviceModel>
<services>
<service name="Some.Test.EmployeeManagerService">
<endpoint address="net.tcp://localhost:8080/Service" binding="netTcpBinding"
bindingConfiguration="" contract="Contracts.IEmployeeManagerService" />
<endpoint address="mex" binding="mexTcpBinding" contract="IMetadataExchange"/>
</service>
</services>
</system.serviceModel>
मेरे अनुबंध:
[ServiceContract(Namespace="Some.Test")]
public interface IEmployeeManagerService
{
[OperationContract]
string Test();
}
मेरे सेवा:
public class EmployeeManagerService : IEmployeeManagerService
{
public string Test()
{
return "test";
}
}
संबंधित पोस्ट लोग विज्ञापन में
अनुबंध को नामस्थान देने के लिए, और सेवा टैब में नाम के लिए मेरे app.config में उपसर्ग के रूप में उपयोग करने के लिए देखा गया।
भी MEX अंत बिंदु को बेनकाब करने के लिए एक सुझाव था ... मैं सच यह है कि क्या के रूप में यह से कोई लेना देना नहीं दिख रहा है, लेकिन मैं इसे किसी भी तरीके से किया था।
तो ऐसा क्यों होता है इसका कोई विचार? और इस समस्या को वास्तव में कैसे हल करें?
o'k पता चला है यह सेवा नाम स्थान सहित कार्यान्वयन के रूप में ही सही नाम <सेवा नाम = "EmployeeManagerImplementation.EmployeeManagerService"> का नाम विशेषता को @Johann Blais http धन्यवाद देने के लिए की जरूरत है ://स्टैक ओवरफ़्लो।कॉम/प्रश्न/5270956/सेवा-एक्स-है-शून्य-एप्लिकेशन-एंडपॉइंट्स-जब तक- i-add-an-endpoint-in-code-wh –
आपको इसे एक उत्तर के रूप में जोड़ना चाहिए और इसे स्वीकार करना चाहिए। – flayn
मैंने उत्तर के लिए एक लिंक डाला जिसने मुझे मदद की ... उतना ही अच्छा :) –