wcf验证用户登陆
User user = dao.UserDao.GetUserByUsercode(usercode);if (user == null)
throw new FaultException("不存在此用户");
if (user.Onlinestate == "在线")
throw new FaultException("用户已登录!");
if (user.Password != password)
throw new FaultException("密码错误!");当抛出这样的异常时,服务端就中断了怎么办 --------------------编程问答-------------------- 而客户端catch不到异常 --------------------编程问答-------------------- 估计你在调试模式下运行吗 --------------------编程问答-------------------- [ServiceBehavior(IncludeExceptionDetailInFaults=true)] --------------------编程问答-------------------- 是在调试运行 --------------------编程问答-------------------- 那是正常的,非调试下会传入客戶端的。或中止时按下启动进客户端了
补充:.NET技术 , C#