WCF - An error occurred while receiving the HTTP response to http://xxxxx/Service/

前端 未结 6 1736
隐瞒了意图╮
隐瞒了意图╮ 2020-12-18 02:27

I am making this call in my WCF service:

public User GetStudentRecord(string userName)
    {
        try
        {
            return new DashboardFacade().G         


        
6条回答
  •  醉酒成梦
    2020-12-18 02:44

    Maybe you need to disable lazyloading and proxycreation, like this:

      db.LazyLoadingEnabled = false;
      db.ProxyCreationEnabled = false;
    

    Doing this your wcf service should work.

提交回复
热议问题