Advertisement
Guest User

Untitled

a guest
Jan 18th, 2017
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. <extensions>
  2. <behaviorExtensions>
  3. <add name="UserNameClientCredentials" type="Namespace.UserNameClientCredentials, MyAssembly, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" />
  4. </behaviorExtensions>
  5. </extensions>
  6.  
  7. <behaviors>
  8. <endpointBehaviors>
  9. <behavior name="basicAuthenticationBehavior">
  10. <UserNameClientCredentials UserName="test" Password="tttttt"/>
  11. </behavior>
  12. </endpointBehaviors>
  13. </behaviors>
  14.  
  15. <endpoint address="https://localhost:8080" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding"
  16. contract="MyContract" name="endpointName"
  17. behaviorConfiguration="basicAuthenticationBehavior"/>
  18.  
  19. Exception thrown: 'System.Configuration.ConfigurationErrorsException' in System.Configuration.dll
  20.  
  21. Additional information: The type ....... registered for extension 'UserNameClientCredentials' could not be loaded.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement