Registration error… Windows Phone with Windows Azure debugging problem!

You just have started to trying out the Windows Azure Toolkit for Windows Phone 7, and created your first sample application. Then , when you launch the admin page, you get this error:

Sorry, an error occurred while processing your request.
WP7CloudApp1.Web.Infrastructure.RoleInWrongPortException: The Web role was started in a wrong port. For this sample application to work correctly, please make sure that it is running in port 443. Please review the Troubleshooting section of the sample documentation for instructions on how to do this.

Interesting. You notice that in the address bar, Internet Explorer has for some reason browsed to port 444 instead of the expected port 443. Looking at the documentation on MSDN for Azure, in the paragraph Testing an HTTPS endpoint in the compute emulator, one can find this little tidbit: If a port that you specify is not available, in the case of an HTTPS endpoint 443, the compute emulator will increment the port number until it finds one that is free.

There are several solutions proposed in web, like one that is to change port in Compute Emulator when you start debugging. But I personally did another solution, that is maybe dude but it functions well :D.

In Web project (ASP.Net MVC3) in Global.asax.cs I changed Default HTTPS Port const from

private const int DefaultHttpsPort = 443;

to

private const int DefaultHttpsPort = 444;

and voila 😀 I received message

Welcome to the administration site for the Mobile Cloud Application Services!

Advertisements

About betim

An experienced SOA and Mobile software architect with a decade experience in building small-to-medium and large systems for public and private sector.
This entry was posted in Development, Programming, Windows Azure, Windows Phone and tagged , , , , , , , . Bookmark the permalink.

One Response to Registration error… Windows Phone with Windows Azure debugging problem!

  1. Pingback: Registration error… Windows Phone with Windows Azure debugging problem!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s