· 7 years ago · Jan 14, 2019, 07:48 AM
1"services": [
2 {
3 "tenantId": "",
4 "subscriptionId": "",
5 "resourceGroup": "",
6 "serviceName": "HenryEDP",
7 "type": "abs",
8 "name": "HenryEDP",
9 "id": "1"
10 },
11 {
12 "connectionString": "",
13 "tenantId": "",
14 "subscriptionId": "",
15 "resourceGroup": "",
16 "serviceName": "henryedpbc32",
17 "type": "blob",
18 "id": "2"
19 },
20 {
21 "appId": "",
22 "appPassword": "",
23 "endpoint": "http://localhost:3978/api/messages",
24 "type": "endpoint",
25 "name": "development",
26 "id": "3"
27 },
28 {
29 "appId": "",
30 "appPassword": "",
31 "endpoint": "http://localhost:3980/api/messages",
32 "type": "endpoint",
33 "name": "production",
34 "id": "4"
35 },
36 {
37 "instrumentationKey": "",
38 "applicationId": "",
39 "apiKeys": {},
40 "tenantId": "",
41 "subscriptionId": "",
42 "resourceGroup": "",
43 "serviceName": "HenryEDP2a7jx7",
44 "type": "appInsights",
45 "id": "5"
46 },
47 {
48 "appId": "",
49 "authoringKey": "",
50 "version": "0.1",
51 "region": "westeurope",
52 "type": "luis",
53 "name": "BasicBotLuisApplication",
54 "id": "6"
55 }
56 ]
57
58{
59 "appId": "9845d1ff-5d83-41fe-f1d7-963c45e27b36",
60 "authoringKey": "36360b0264589c24a0bc50a7f4fc7bb5",
61 "version": "0.1",
62 "region": "westeurope",
63 "type": "luis",
64 "name": "BasicBotLuisApplication",
65 "id": "6"
66}
67
68try
69{
70 botConfig = BotConfiguration.Load(botFilePath, secretKey);
71}
72catch
73{
74 var msg = @"Error reading bot file. Please ensure you have valid botFilePath and botFileSecret set for your environment.
75- You can find the botFilePath and botFileSecret in the Azure App Service application settings.
76- If you are running this bot locally, consider adding a appsettings.json file with botFilePath and botFileSecret.
77- See https://aka.ms/about-bot-file to learn more about .bot file its use and bot configuration.
78";
79 throw new InvalidOperationException(msg);
80}