microsoft / botbuilder-dotnet

Welcome to the Bot Framework SDK for .NET repository, which is the home for the libraries and packages that enable developers to build sophisticated bot applications using .NET.
https://github.com/Microsoft/botframework
MIT License
872 stars 482 forks source link

Missing Files in project folder for Deployment #3795

Closed Ada-develop closed 4 years ago

Ada-develop commented 4 years ago

Github issues should be used for bugs and feature requests. Use Stack Overflow for general "how-to" questions.

Version

What package version of the SDK are you using.

Describe the bug

Hi, I have created Bot that perefectly works in BotFramework Emulator, and I ready to deploy it to Azure , but when I tried to deploy I have recognized that I have missing files in my project as web.config etc. that needed to deployment I created Bot by tamplate EmptyBot in VisualStudio 2019, I tried another method for deployment by Git in Azure > App Service > Deployment Center, Bot reacts only on MembersAdded with Greeting message and than send error messages. Please help. I attached some photos.

Screenshots

Should look like, files : 61910864-a4aea500-aeea-11e9-88fe-1d3d5b4f230e

I my project it looks like :

BotDepExp

Azure :

azure

Additional context

Add any other context about the problem here.

[bug]

Zerryth commented 4 years ago

Hey @Ada-develop! Did you try following the deployment instructions that are linked in EmptyBot's README?

I just created a new EmptyBot from scratch, followed those deployment instructions, and prospered!

Click to view command-line commands that I ran `az ad app create --display-name "AshEmptyBot" --password "..." --available-to-other-tenants` `az deployment create --template-file "DeploymentTemplates/template-with-new-rg.json" --location centralus --parameters appId="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" appSecret="..." botId="AshEmptyBot" botSku=S1 newAppServicePlanName="AshEmptyBot" newWebAppName="AshEmptyBot" groupName="AshEmptyBot" groupLocation="centralus" newAppServicePlanLocation="centralus" --name "AshEmptyBot"` `az bot prepare-deploy --lang Csharp --code-dir "." --proj-file-path "./EmptyBot1.csproj"` `az webapp deployment source config-zip --resource-group "AshEmptyBot" --name "AshEmptyBot" --src "./code.zip"`

So just follow the zip deployment instructions, taking note to include the values that are pertinent to your bot, and you should be able to deploy.

EmptyBot Deployed to Azure image

Ada-develop commented 4 years ago

Hey @Ada-develop! Did you try following the deployment instructions that are linked in EmptyBot's README?

I just created a new EmptyBot from scratch, followed those deployment instructions, and prospered!

Click to view command-line commands that I ran So just follow the zip deployment instructions, taking note to include the values that are pertinent to your bot, and you should be able to deploy.

EmptyBot Deployed to Azure image

Hello Zerryth! Thank you for your response, I tried do by your instructions, and struggled on the last step with zip,curl step , dont really understand what values should I write in Curl-step , like username it mean email? sitename it means my webapplicaiton name?

Will wait for your response, you are my last hope!

curl

Will wait for your response, you are my last hope!

Zerryth commented 4 years ago

@Ada-develop where are you getting these curl instructions?

I didn't use any curl myself--they're not in the deployment link instructions I posted to you, nor does the readme/link in readme mention a "username"

The deployment instructions use az cli

Zerryth commented 4 years ago

So...last you mentioned, you were just trying to deploy an EmptyBot to Azure, filing a bug report. Then we find that you can indeed deploy EmptyBot just fine, following the instructions provided in the README.

Now you come back saying that the deployed bot is unauthorized...and I'm only guessing from your screen shot, since you don't provide any code or mention what samples you're using, that you're using 13.corebot + QnA Maker.

I actually ran through the steps of deploying a corebot with qna maker added to it just in case, and can successfully talk to the deployed bot in Test in Web Chat.

image


Going to close this issue out, as our GitHub repositories are for filing bugs with our framework that our team must fix or asking for feature enhancements of the product. Please post your how-to question on Stack Overflow, where you can leverage the help of our Support Engineers and the whole community at large.

Be sure to provide more details as well (what you've done, your bot code or sample you're using, etc.) so the community can be of better help.

For now, with the given information I can only leave off with this: