Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. WCF and WF
  4. Grokking app.config

Grokking app.config

Scheduled Pinned Locked Moved WCF and WF
wcftutorialcsharpwpfsysadmin
1 Posts 1 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Dewald
    wrote on last edited by
    #1

    Greetings folks. I'm still trying to wrap my head around WCF and I've made some progress already but I'd like to better understand the role and usage of the app.config files. The examples I've seen so far mostly tells you what to put in the app.config files without giving a real good explanation for why what goes where. Also, the sample app.config files tend to include a whole lot of information which I suspect is not even necessary but I'm having a hard time stripping it down to the bare necessities. Could anyone point me to an article perhaps that deal with the app.config files (for both the host and the client side), starting with the most basic of app.config files and then explaining how to build on that for more specific requirements. If I may bother you with the specific issue I'm struggling with right now: I have a WCF host and client which works perfectly - as long as both the host and the client are on the same machine. When the client attempts to connect from another machine I get "The server has rejected the client credentials". The config files in my project include a number of sections which I'm not sure what they mean or whether they're necessary but it comes from some or other tutorial and so I didn't bother to make sure that the config files are exactly what I need. Now I need to start understanding them. I know for instance that I should be able to disable security (which is fine for now) by adding <security mode="None" /> to the binding section in the app.config file of the client but when I replace the existing tag in the file, it throws another exception (The socket connection was aborted), this time even when trying to connect from the local machine. I'd expect that the host config file should also get something to tell it to ignore security but I can't find anything currently in there that hints to any security anyway. In case you really feel like seeing what I've done, here are my two app.config files, first for the host:

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups