Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why is a "You'll need a new app to open this localhost" popup being displayed when debugging my asp.net core 2.0 app in Edge?

Tags:

I'm simply entering "MyMessages/Index" after localhost:51531/ and this popup is being displayed. Seems super weird to me but probably something simple.

So I try to navigate to localhost:51531/MyMessages/Index in Edge.

The controller is public class MyMessagesController : Controller

The controller action is just:

public IActionResult Index() {     return View(); } 

Any idea why this is happening?

This does not happen in IE11

like image 354
IEnjoyEatingVegetables Avatar asked Mar 12 '18 20:03

IEnjoyEatingVegetables


1 Answers

The issue is that you have left the scheme off the start of the URL. Some browsers will infer it in certain circumstances, but not all browsers will infer it all the time.

Instead of:

localhost:51531/MyMessages/Index 

Try:

http://localhost:51531/MyMessages/Index 
like image 93
mjwills Avatar answered Oct 28 '22 09:10

mjwills