Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with Phone Skill #164

Closed
SwetalinaGitHub opened this issue Apr 14, 2020 · 3 comments
Closed

Issue with Phone Skill #164

SwetalinaGitHub opened this issue Apr 14, 2020 · 3 comments
Assignees

Comments

@SwetalinaGitHub
Copy link

What project is affected?

Phone Skill

What language is this in?

C#

What happens?

  • I deployed the Phone Skill to Azure. On testing the skill with sample utterance "Call James" in Webchat returns error message.
  • App Insights log file mentions issue to be in line POI Skill Provider model botframework-solutions#60 in ContactFilter.cs file of Phone Skill.

What are the steps to reproduce this issue?

  • Deploy the Phone Skill individually to Azure
  • Test the skill through Webchat channel with sample utterance "Call James".

What were you expecting to happen?

  • The Skill works fine through ngrok in Emulator. When I provide utterance "Call James", i get the response as "Calling James"
  • But the same utterance returns error message while testing through Webchat channel.

Can you share any logs, error output, etc.?

An attempt was made to load a program with an incorrect format. (0x8007000B)

Any screenshots or additional context?

System.BadImageFormatException:
at Microsoft.PhoneticMatching.EnPronouncer.EnPronouncer_Create (Microsoft.PhoneticMatching, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null)
at Microsoft.PhoneticMatching.EnPronouncer+<>c__DisplayClass5_0.b__0 (Microsoft.PhoneticMatching, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null)
.
.
.
at Microsoft.PhoneticMatching.Matchers.ContactMatcher.EnContactMatcher`1..ctor (Microsoft.PhoneticMatching, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null)
at PhoneSkill.Common.ContactFilter+d__1.MoveNext (PhoneSkill, Version=1.0.0.0, Culture=neutral, PublicKeyToken=nullPhoneSkill, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null: ..\skills\csharp\experimental\phoneskill\Common\ContactFilter.csPhoneSkill, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null: 60)

@xieofxie xieofxie transferred this issue from microsoft/botframework-solutions Apr 14, 2020
@xieofxie
Copy link
Contributor

Hi @SwetalinaGitHub, skills are in this repo now.

@sidmore sidmore self-assigned this Apr 17, 2020
@sidmore
Copy link
Contributor

sidmore commented Apr 17, 2020

@SwetalinaGitHub This issue happens when there is a mismatch between your Azure App Service platform version and the platform target in the project. I experienced the same issue. I fixed it by making below changes.

a. Phone Skill Csproj changed Platform Targe to x64:
ProjectChanges

b. Changed Azure App Settings in PhoneSkill Web app to below:
phoneskillissue_appsettings

This does not happen in Emulator because there is no mismatch in the target versions. Please kindly make above changes and Test.

@bobokids
Copy link
Contributor

bobokids commented May 7, 2020

thanks @sidmore for the fix. @SwetalinaGitHub, please reactivate the issue if you still encounter issues.

@bobokids bobokids closed this as completed May 7, 2020
@xieofxie xieofxie unpinned this issue May 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants