Problem in reading .config file in plugin in MSCRM 4.0 RRS feed

  • Question


    I have a app.confog file attached to a class library project which is a plugin code for MSCRM 4.0

    The .config file contains some <key,value> pair.

    When the plugin is fired the .cs code can't read the .config file values.

    It is not showing any errors but it can't read any values only capturing null values.

    Tuesday, November 18, 2008 6:05 AM


  • I guess you want to store your plugin configuration like web.config in website. If your answer is yes, then you dont need any app.config in Plugin.


    By default MSCRM4 plugin support 2 types of config. secure and non secure, you can see it on plugin registration tools there.


    use this code to access your config string on runtime.



    Code Snippet

    public PluginName(string config, string secureConfig)
                filePath = config;




    Tuesday, November 18, 2008 10:28 AM