public static class trial
{
public static string LUIS_MODEL_ID=ConfigurationManager.AppSettings["ID"];
public static string LUIS_SUBSCRIPTION_KEY =ConfigurationManager.AppSettings["KEY"];
[LuisModel(LUIS_MODEL_ID, LUIS_SUBSCRIPTION_KEY)] // An attribute argument must be a constant expression
[Serializable]
public class DialogLuis : LuisDialog<object>
{
This is the error I'm getting:
"An attribute argument must be a constant expression"
Is there another way to pass a value from the Web.config to the LuisModel attribute?