Botframework-sdk: Emulator stopped working

Created on 17 May 2016  Â·  11Comments  Â·  Source: microsoft/botframework-sdk

"The emulator has stopped working" do anyone gets the same exception when running the emulator? How can I fix it? I am using Windows 10 64bits

bug

Most helpful comment

Is there a way to change the emulator port from 9000 to another port? I've a system process using that port and I can't change it.

All 11 comments

Are you running multiple copies? It opens a server on a port for callbacks, so only one copy can be run at a time.

It might be my firewall... What port does the app open? I will double check it, maybe it is not a bug...

When you click run in Studio, it opens the one after localhost.

Thanks @hradoi but it doesn't work. Please let me know if I am doing something wrong.

1) I click run on Visual Studio. I am using local IIS.
2) I open the executable "Bot Framework Emulator.application"

This is what I get:

image

9000

Sent from my tumbs


From: Miguel Vela Romeramailto:[email protected]
Sent: ‎5/‎18/‎2016 1:42 AM
To: Microsoft/BotBuildermailto:[email protected]
Cc: Tom Laird-McConnellmailto:[email protected]; Assignmailto:[email protected]
Subject: Re: [Microsoft/BotBuilder] Emulator stopped working (#300)

It might be my firewall... What port does the app open? I will double check it, maybe it is not a bug...

—
You are receiving this because you were assigned.
Reply to this email directly or view it on GitHubhttps://github.com/Microsoft/BotBuilder/issues/300#issuecomment-219962777

The emulator uses port 9000, something has port 9000 open. Run:
netstat -a -o
And it will list the process ID of the process which has port 9000 open. Go to task Manager and find the process with that Process ID and you will know what process has it open

Is there a way to change the emulator port from 9000 to another port? I've a system process using that port and I can't change it.

@tomlm I'm having the same problem. Also, there's no process using the 9000 port. Is there any other recommended solution?

[Debug]
An unhandled exception of type 'System.NullReferenceException' occurred in Microsoft.Bot.Connector.Emulator.Core.dll

@tomlm I'm in the same boat as @tkbox9. The emulator immediately throws the exception even though there doesn't seem to be any other process using port 9000. Any insight would be much appreciated!

Issue resolved - the app is storing state in %tmp% in a file called "BotFramework.Emulator.Session". It persists the url, appid and appsecret. Deleting this file should fix the issue!

Deleting BotFramework.Emulator.Session file didn't work for me. Deleting BotFramework.Emulator.Port file did.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

clearab picture clearab  Â·  3Comments

sebsylvester picture sebsylvester  Â·  3Comments

somprabhsharma picture somprabhsharma  Â·  3Comments

Vigneshramkumar picture Vigneshramkumar  Â·  3Comments

daveta picture daveta  Â·  3Comments