500 Internal Server Error in Web Chat after publishing from Bot Composer From Existing Resources.
1.Please make the BOT Solution hosting model asInprocess instead of OutOfProcess in Web.Config
2. Add 2 extra keys in AppSettings.json for Single Tenant App .Since BOT composer considers default as MultiTenant .MicrosoftAppType and MicrosoftAppTenantId keys should be added manually to appsettings.
"MicrosoftAppId": "XXXXXXXXX",
"MicrosoftAppType": "SingleTenant",
"MicrosoftAppTenantId": "XXXXXXXX",