Error message when i try to do login into my apps.
There was no endpoint listening at http://localhost:4753/Service1.svc that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.
I had check my ServiceReference.ClientConfig
name="BasicHttpBinding_IService1" />
The error(bold font) occur is after i add one data into sql server.
public System.Collections.ObjectModel.ObservableCollection
object[] _args = new object[0];
System.Collections.ObjectModel.ObservableCollection
return _result;
}
Santhosh Kumar JayaramanPosted Jul 3, 2012, 6:28 AM
Posted Jul 3, 2012, 5:36 AM
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.Text;
namespace WcfServiceMeetPoint_B2C
{
// NOTE: You can use the "Rename" command on the "Refactor" menu to change the class name "Service1" in code, svc and config file together.
public class Service1 : IService1
{
DataClassesMeetPoint_B2CDataContext b2c = new DataClassesMeetPoint_B2CDataContext();
public List
{
var register = from r in b2c.Customers where (r.CustEmail == custemail) select r;
return register.ToList();
}
public bool RegCust(string custname, string custemail, string custpwd, string custhpno, string custpostcode, string custcity, string custstate, string custadd)
{
Customer data = new Customer();
data.CustName = custname;
data.CustEmail = custemail;
data.CustPwd = custpwd;
data.CustHpNo = custhpno;
data.CustPostcode = custpostcode;
data.CustCity = custcity;
data.CustState = custstate;
data.CustAdd = custadd;
b2c.Customers.InsertOnSubmit(data);
b2c.SubmitChanges();
return true;
}
The coding is something like above..there are many method i use inside..
Santhosh Kumar JayaramanPosted Jul 3, 2012, 5:29 AM
Posted Jul 3, 2012, 5:25 AM
it has 2 file which are web.debug.config and web.release.config
Santhosh Kumar JayaramanPosted Jul 3, 2012, 5:07 AM
Posted Jul 3, 2012, 4:58 AM
Santhosh Kumar JayaramanPosted Jul 3, 2012, 4:44 AM
Posted Jul 3, 2012, 4:10 AM
I had update my service reference and is same error..
Then how to check binding configuration?
Manikavelu VelayuthamPosted Jul 3, 2012, 3:54 AM
1. Copy the above address and paste it in the browser to check whether the service runs or not.
2. if its not running, then there is the issue with the service.
3. if its run , next you neeed to check it out the binding configuration that fits to your requirement
4. or update the service reference or self host that service and check whether the method retrieves data or not.