Read from App.config or registry RRS feed

  • Question

  • Is there a way to reference the app.config file or read the registry? Obviously LightSwitch references it for the connection string.

    Saturday, December 4, 2010 2:51 PM


  • Hi RDLoftman,

    Yes, you can read from the web.config, but only in "Server" code.  You can you standard configuration and registry .net classes:



    From Client or Common code, you are at the mercy of Silverlight.  There is no way to read the web.config from the client.  To read the registry of the client machine, you would need more trust than the default Silverlight application gives you.


    Monday, December 6, 2010 4:02 PM