13

When trying to run my service in service fabric cluster, the Output window says

"The application URL is not set or is not an HTTP/HTTPS URL so the browser will not be opened to the application".

Am I missing a configuration step?

Super Jade
  • 5,609
  • 7
  • 39
  • 61
Talha Abdul Muqsit
  • 139
  • 1
  • 1
  • 4

3 Answers3

17

You just need to enter a URL into the Application URL field.

To do so:

  1. Click your Service Fabric Application project
  2. In the Properties window, click Application URL
  3. Specify a value, for Debug builds this will be http://localhost:19080/Explorer (the default for ASF Explorer)

enter image description here

Click Debug.Start Debugging; after a while the ASF Explorer will appear.

enter image description here

  • 1
    Once you have the explorer running you can check the endpoint for your service by expanding Applications (a software view of the cluster) and then going in depth for that particular service. For example for example if you have a service with UI and wan t to see it in the browser, copy the url from the endpoint .. – Gabriel P. Jan 29 '17 at 08:57
  • I'm having trouble viewing the screenshots, an https certificate warning. – stealththeninja Nov 27 '17 at 19:46
  • @stealththeninja are you trying to view it across a network? SF is designed to be viewed from within. Try RDPing to the target machine then viewing via localhost –  Nov 28 '17 at 14:48
2

It's a message from VS that in the project properties of the SF application, there's no 'Application URL' value specified. Nothing to worry about.

Setting this will launch a browser on that Url, when starting the debugger with F5.

LoekD
  • 11,402
  • 17
  • 27
0

When the Output window says

The application URL is not set or is not an HTTP/HTTPS URL so the browser will not be opened to the application.

This is not an error. It's just telling you that it won't open a browser window automatically.


You can see your application running in the browser by

1) Navigating to http://localhost:19080/ (if you haven't changed the port) or

2) Add the URL to the Project Properties

  • In Solution Explorer, right-click on the Project (Voting in this case) with the cluster icon to bring up the Property Pages.

Solution Explorer

Property Pages

  • Then restart your project.

  • Now the browser window will open automatically and you won't see The application URL is not set... in the Output window. You'll see Launching the browser with URL http://localhost:19080/ to open the application. in the Output window instead.

Super Jade
  • 5,609
  • 7
  • 39
  • 61