wcf - App.Config not being read -
wcf - App.Config not being read -
i trying test class in service handler using nunit project. service handler class part of class library project gets info wcf service. when phone call test project method comes service handler class , method in class tries creat clients object statement - using (client client = new client()), throws exception : "could not find default endpoint element references contract 'xyz' in servicemodel client configuration section. might because no configuration file found application, or because no endpoint element matching contract found in client element."
loos app.config file not beingness read in case, thats why exception coming. has ever faced issue? need urgent help regarding this.
add app.config nunit assembly. add together wcf service client config app.config , should work.
wcf nunit app-config
Comments
Post a Comment