Bot Framework V4 Virtual Assistant Template Deployment Issue >Local fine
Hi, I am using the Virtual Assistant template for our client bot development. I have added no additional code for now and updated the appsettings.json & cognitiveModels.json files with our specific keys.
Code runs fine locally. However when deploying from Visual Studio to App service, getting error. Sharing details below. Could some let us know if we are missing any key details? While publishing to DEV/ QA only change is in the appsetings.json file, where in local we keep the microsoftAppId & pwd as "" and during deployment, we updated these keys to the corresponding values.
Issue: Bot Framework: V 4 & Bot Builder : 4.5.1 Code Base: .Net Core 2.2 Template: Virtual Assistant Issue Environment: Dev/ QA Azure Channel with Issue: WebChat & DirectLine Error from insights: While trying to testing bot in Azure portal test in web chat / using directline testing, we get the unable to send message error. Error is null reference issue sometimes at the WebSocketEnabledHttpAdapter in Bot Controller file. 1. Unable to resolve service for type 'Microsoft.Bot.Builder.StreamingExtensions.WebSocketEnabledHttpAdapter' while attempting to activate 'MyAssistant1.Controllers.BotController'.
2. OAuth error
Result code | 400 |
Dependency call status | false |
Dependency duration | 114 ms |
Remote dependency name | POST /botframework.com/oauth2/token
Adding a snippet with the Deployment configs from Visual Studio

Snippet From Live Metric Stream- For trouble shooting if it helps

@GayathriR2018 what is the version of the Virtual Assistant Template and Microsoft.Bot.Builder.Skills package you're using?
Hi, @lzc850612 We are using VirtualAssistantTemplate.d2246051-7779-4196-af1f-ae7e2562ec8e.4.5.1 template and Skills Package 4.5.3
Also quick question, hope the below parameters specified in our appsettings.json file suffices? oauthConnections are given as empty.
{ "microsoftAppId": "123dummy", "microsoftAppPassword": "123dummy", "oauthConnections": [], //empty "ApplicationInsights": { "InstrumentationKey": "123dummy" }, "blobStorage": {
"connectionString": "DefaultEndpointsProtocol=dummy",
"container": "transcripts"
}, "cosmosDb": { "collectionId": "botstate-collection", "databaseId": "botstate-db", "cosmosDBEndpoint": "", "authKey": "" }, "contentModerator": { "key": "" } }
The appsettings file looks pretty empty to me (if you didn't intentionally leave them blank). This means there's something wrong when you run the deployment script deploy.ps1. Did you successfully run the deployment script?
Closing due to inactivity. Please reopen as needed.