I have a created a WCF service application, through which i am accesing function of a C++ DLL. The code is given below :
public class zielhabbegServiceClass : IzielhabbegServiceClass
[DllImport("FANselect.dll", CallingConvention = CallingConvention.StdCall,
EntryPoint = "ZAJsonRequestA", ExactSpelling = false)]
private static extern IntPtr ZAJsonRequestA([MarshalAs(UnmanagedType.LPStr)]StringBuilder szReq);
public string getZAJsonRequestA(string input)
StringBuilder sbuilder = new StringBuilder();
string sResult = Marshal.PtrToStringAnsi(ZAJsonRequestA(sbuilder));
This, web service is working fine.
But, when i try to access this through a web application, i am getting this error :
Quote:Could not find default endpoint element that references contract 'abc.IzielhabbegServiceClass' 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.
I found one strange thing here, first I added a service reference of the above WCF service, and then the proxy class generated is IzielhabbegServiceClassClient instead of zielhabbegServiceClassClient ? May be this is the reason why i am not able to get the output
Any help, would be appreciated