I am trying to build a LUIS Bot with SDK 4 (in .Net Framework, not .Net Core) but I cannot get past adding my luis service.
I am receiving this error:
System.ArgumentException: '"southeastasia" is not a valid LUIS endpoint.'
In this line:
var app = new LuisApplication(luis.AppId, luis.SubscriptionKey, luis.Region);
I followed the guide for .bot settings here: https://github.com/Microsoft/BotBuilder-Samples/tree/master/samples/csharp_dotnetcore/12.nlp-with-luis
My endpoint is: https://southeastasia.api.cognitive.microsoft.com/luis/v2.0/apps/{LuisAppID}?subscription-key={LuisSubscriptionKey}&timezoneOffset=-360&q=
And this is in my .bot file:
{
"type": "luis",
"name": "LuisBot",
"id": "",
"appId": "{LuisAppID}",
"subscriptionKey": "{LuisSubscriptionKey}",
"version": "0.1",
"region": "southeastasia"
},
If I use the empty constructor for LuisApplication() and then set the app.Endpoint = "southeastasia", there is no error afterwards. Can it be a problem with the LuisApplication constructor that accepts Endpoint parameter?