diff --git a/aspnetcore/client-side/yeoman.md b/aspnetcore/client-side/yeoman.md index 4a6025884c..ee74b92175 100644 --- a/aspnetcore/client-side/yeoman.md +++ b/aspnetcore/client-side/yeoman.md @@ -125,7 +125,7 @@ dotnet run The cross-platform [Kestrel](../fundamentals/servers.md#kestrel) web server will begin listening on port 5000. -Open a web browser, and navigate to http://localhost:5000. +Open a web browser, and navigate to `http://localhost:5000`. ![image](yeoman/_static/yeoman-home-page_5000.png) diff --git a/aspnetcore/fundamentals/hosting.md b/aspnetcore/fundamentals/hosting.md index 0ea77bb43d..8296336c8c 100644 --- a/aspnetcore/fundamentals/hosting.md +++ b/aspnetcore/fundamentals/hosting.md @@ -120,9 +120,9 @@ new WebHostBuilder() > [!NOTE] > By default, the environment is read from the `ASPNETCORE_ENVIRONMENT` environment variable. When using Visual Studio, environment variables may be set in the *launchSettings.json* file. -**Server URLs `string`** +**Server URLs** `string` -Key: `urls`. Set to a semicolon (;) separated list of URL prefixes to which the server should respond. For example, "[http://localhost:123](http://localhost:123)". The domain/host name can be replaced with "*" to indicate the server should listen to requests on any IP address or host using the specified port and protocol (for example, `http://*:5000` or `https://*:5001`). The protocol (`http://` or `https://`) must be included with each URL. The prefixes are interpreted by the configured server; supported formats will vary between servers. +Key: `urls`. Set to a semicolon (;) separated list of URL prefixes to which the server should respond. For example, `http://localhost:123`. The domain/host name can be replaced with "*" to indicate the server should listen to requests on any IP address or host using the specified port and protocol (for example, `http://*:5000` or `https://*:5001`). The protocol (`http://` or `https://`) must be included with each URL. The prefixes are interpreted by the configured server; supported formats will vary between servers. ````csharp new WebHostBuilder() diff --git a/aspnetcore/migration/mvc.md b/aspnetcore/migration/mvc.md index beae7f46fa..a17425a95a 100644 --- a/aspnetcore/migration/mvc.md +++ b/aspnetcore/migration/mvc.md @@ -120,9 +120,9 @@ Now that we have a minimal working ASP.NET Core project, we can start migrating * Run the ASP.NET Core app and test each method. We haven't migrated the layout file or styles yet, so the rendered views will only contain the content in the view files. You won't have the layout file generated links for the `About` and `Contact` views, so you'll have to invoke them from the browser (replace **4492** with the port number used in your project). - * http://localhost:4492/home/about + * `http://localhost:4492/home/about` - * http://localhost:4492/home/contact + * `http://localhost:4492/home/contact` ![image](mvc/_static/contact-page.png) diff --git a/aspnetcore/mvc/views/tag-helpers/authoring.md b/aspnetcore/mvc/views/tag-helpers/authoring.md index 9e54524d06..65e05fe6ce 100644 --- a/aspnetcore/mvc/views/tag-helpers/authoring.md +++ b/aspnetcore/mvc/views/tag-helpers/authoring.md @@ -264,7 +264,7 @@ The condition tag helper renders output when passed a true value. [!code-csharp[Main](authoring/sample/AuthoringTagHelpers/src/AuthoringTagHelpers/Controllers/HomeController.cs?range=9-18)] -4. Run the app and browse to the home page. The markup in the conditional `div` will not be rendered. Append the query string `?approved=true` to the URL (for example, http://localhost:1235/Home/Index?approved=true). `approved` is set to true and the conditional markup will be displayed. +4. Run the app and browse to the home page. The markup in the conditional `div` will not be rendered. Append the query string `?approved=true` to the URL (for example, `http://localhost:1235/Home/Index?approved=true`). `approved` is set to true and the conditional markup will be displayed. >[!NOTE] >We use the [nameof](https://msdn.microsoft.com/en-us/library/dn986596.aspx) operator to specify the attribute to target rather than specifying a string as we did with the bold tag helper: diff --git a/aspnetcore/mvc/views/working-with-forms.md b/aspnetcore/mvc/views/working-with-forms.md index f9e94be68e..1869648565 100644 --- a/aspnetcore/mvc/views/working-with-forms.md +++ b/aspnetcore/mvc/views/working-with-forms.md @@ -14,7 +14,7 @@ uid: mvc/views/working-with-forms >[!WARNING] > This page documents version 1.0.0-rc1 and has not yet been updated for version 1.0.0 -By [Rick Anderson](https://twitter.com/RickAndMSFT), [Dave Paquette](https://twitter.com/Dave_Paquette) and [Jerrie Pelser](https://twitter.com/jerriepelser) +By [Rick Anderson](https://twitter.com/RickAndMSFT), [Dave Paquette](https://twitter.com/Dave_Paquette) and [Jerrie Pelser](https://github.com/jerriep) This document demonstrates working with Forms and the HTML elements commonly used on a Form. The HTML [Form](https://www.w3.org/TR/html401/interact/forms.html) element provides the primary mechanism web apps use to post back data to the server. Most of this document describes [Tag Helpers](tag-helpers/intro.md) and how they can help you productively create robust HTML forms. We recommend you read [Introduction to Tag Helpers](tag-helpers/intro.md) before you read this document. diff --git a/aspnetcore/publishing/iis.md b/aspnetcore/publishing/iis.md index 2606b9a5c4..74f1f06692 100644 --- a/aspnetcore/publishing/iis.md +++ b/aspnetcore/publishing/iis.md @@ -175,7 +175,7 @@ To diagnose problems with IIS deployments, study browser output, examine the ser Several of the common errors do not appear in the browser, Application Log, and ASP.NET Core Module Log until the module *startupTimeLimit* (default: 120 seconds) and *startupRetryCount* (default: 2) have passed. Therefore, wait a full six minutes before deducing that the module has failed to start a process for the application. -A quick way to determine if the application is working properly is to run the application directly on Kestrel. If the application was published as a portable app, execute *dotnet .dll* in the deployment folder. If the application was published as a self-contained app, run the application's executable directly on the command line, *.exe*, in the deployment folder. If Kestrel is listening on default port 5000, you should be able to browse the application at *http://localhost:5000/*. If the application responds normally at the Kestrel endpoint address, the problem is more likely related to the IIS-ASP.NET Core Module-Kestrel configuration and less likely within the application itself. +A quick way to determine if the application is working properly is to run the application directly on Kestrel. If the application was published as a portable app, execute *dotnet .dll* in the deployment folder. If the application was published as a self-contained app, run the application's executable directly on the command line, *.exe*, in the deployment folder. If Kestrel is listening on default port 5000, you should be able to browse the application at `http://localhost:5000/`. If the application responds normally at the Kestrel endpoint address, the problem is more likely related to the IIS-ASP.NET Core Module-Kestrel configuration and less likely within the application itself. A way to determine if the IIS reverse proxy to the Kestrel server is working properly is to perform a simple static file request for a stylesheet, script, or image from the application's static assets in *wwwroot* using [Static File middleware](../fundamentals/static-files.md). If the application can serve static files but MVC Views and other endpoints are failing, the problem is less likely related to the IIS-ASP.NET Core Module-Kestrel configuration and more likely within the application itself (for example, MVC routing or 500 Internal Server Error). diff --git a/aspnetcore/security/authentication/azure-active-directory/index.md b/aspnetcore/security/authentication/azure-active-directory/index.md index a7da3dc97b..09c5e96104 100644 --- a/aspnetcore/security/authentication/azure-active-directory/index.md +++ b/aspnetcore/security/authentication/azure-active-directory/index.md @@ -11,10 +11,10 @@ uid: security/authentication/azure-active-directory/index --- # Azure Active Directory -* [Integrating Azure AD Into an ASP.NET Core Web App](https://azure.microsoft.com/documentation/samples/active-directory-dotnet-webapp-openidconnect-aspnetcore.md) +* [Integrating Azure AD Into an ASP.NET Core Web App](https://azure.microsoft.com/documentation/samples/active-directory-dotnet-webapp-openidconnect-aspnetcore) -* [Calling a ASP.NET Core Web API From a WPF Application Using Azure AD](https://azure.microsoft.com/documentation/samples/active-directory-dotnet-native-aspnetcore.md) +* [Calling a ASP.NET Core Web API From a WPF Application Using Azure AD](https://azure.microsoft.com/documentation/samples/active-directory-dotnet-native-aspnetcore) -* [Calling a Web API in an ASP.NET Core Web Application Using Azure AD](https://azure.microsoft.com/en-us/documentation/samples/active-directory-dotnet-webapp-webapi-openidconnect-aspnetcore/.md) +* [Calling a Web API in an ASP.NET Core Web Application Using Azure AD](https://azure.microsoft.com/en-us/documentation/samples/active-directory-dotnet-webapp-webapi-openidconnect-aspnetcore) -* [An ASP.NET Core web app with Azure AD B2C](https://azure.microsoft.com/en-us/documentation/samples/active-directory-dotnet-webapp-openidconnect-aspnetcore-b2c/.md) +* [An ASP.NET Core web app with Azure AD B2C](https://azure.microsoft.com/en-us/documentation/samples/active-directory-dotnet-webapp-openidconnect-aspnetcore-b2c) diff --git a/aspnetcore/security/authentication/index.md b/aspnetcore/security/authentication/index.md index d0cd16d5e5..3e953992f8 100644 --- a/aspnetcore/security/authentication/index.md +++ b/aspnetcore/security/authentication/index.md @@ -25,10 +25,10 @@ uid: security/authentication/index * [Azure Active Directory](azure-active-directory/index.md) - * [Integrating Azure AD Into an ASP.NET Core Web App](https://azure.microsoft.com/documentation/samples/active-directory-dotnet-webapp-openidconnect-aspnetcore.md) + * [Integrating Azure AD Into an ASP.NET Core Web App](https://azure.microsoft.com/documentation/samples/active-directory-dotnet-webapp-openidconnect-aspnetcore) - * [Calling a ASP.NET Core Web API From a WPF Application Using Azure AD](https://azure.microsoft.com/documentation/samples/active-directory-dotnet-native-aspnetcore.md) + * [Calling an ASP.NET Core Web API From a WPF Application Using Azure AD](https://azure.microsoft.com/documentation/samples/active-directory-dotnet-native-aspnetcore) - * [Calling a Web API in an ASP.NET Core Web Application Using Azure AD](https://azure.microsoft.com/en-us/documentation/samples/active-directory-dotnet-webapp-webapi-openidconnect-aspnetcore/.md) + * [Calling a Web API in an ASP.NET Core Web Application Using Azure AD](https://azure.microsoft.com/en-us/documentation/samples/active-directory-dotnet-webapp-webapi-openidconnect-aspnetcore) -* [Securing ASP.NET Core apps with IdentityServer4](https://identityserver4.readthedocs.io.md) +* [Securing ASP.NET Core apps with IdentityServer4](https://identityserver4.readthedocs.io) diff --git a/aspnetcore/security/authentication/sociallogins.md b/aspnetcore/security/authentication/sociallogins.md index 5929606892..3134b0de02 100644 --- a/aspnetcore/security/authentication/sociallogins.md +++ b/aspnetcore/security/authentication/sociallogins.md @@ -89,7 +89,7 @@ Each of the OAuth2 providers require provider specific keys to enable OAuth2. * Add your Site URL (`https://localhost:44320/`) -* Make a note of your App ID and your App Secret so that you can add both into your ASP.NET Core app later in this tutorial. Also, Add your Site URL (https://localhost:44300/) to test your application. +* Make a note of your App ID and your App Secret so that you can add both into your ASP.NET Core app later in this tutorial. Also, Add your Site URL (`https://localhost:44300/`) to test your application. ![image](sociallogins/_static/FBApp08.png) diff --git a/aspnetcore/tutorials/first-mvc-app/adding-controller.md b/aspnetcore/tutorials/first-mvc-app/adding-controller.md index 500eed3181..808cc66f34 100644 --- a/aspnetcore/tutorials/first-mvc-app/adding-controller.md +++ b/aspnetcore/tutorials/first-mvc-app/adding-controller.md @@ -40,7 +40,7 @@ Every `public` method in a controller is callable as an HTTP endpoint. In the sa The first comment states this is an [HTTP GET](http://www.w3schools.com/tags/ref_httpmethods.asp) method that is invoked by appending "/HelloWorld/" to the base URL. The second comment specifies an [HTTP GET](http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html) method that is invoked by appending "/HelloWorld/Welcome/" to the URL. Later on in the tutorial we'll use the scaffolding engine to generate `HTTP POST` methods. -Run the app in non-debug mode (press Ctrl+F5) and append "HelloWorld" to the path in the address bar. (In the image below, [http://localhost:1234/HelloWorld](http://localhost:1234/HelloWorld) is used, but you'll have to replace *1234* with the port number of your app.) The `Index` method returns a string. You told the system to return some HTML, and it did! +Run the app in non-debug mode (press Ctrl+F5) and append "HelloWorld" to the path in the address bar. (In the image below, `http://localhost:1234/HelloWorld` is used, but you'll have to replace *1234* with the port number of your app.) The `Index` method returns a string. You told the system to return some HTML, and it did! ![image](adding-controller/_static/hell1.png) diff --git a/aspnetcore/tutorials/first-mvc-app/validation.md b/aspnetcore/tutorials/first-mvc-app/validation.md index fe845dacc1..ee63d68fe9 100644 --- a/aspnetcore/tutorials/first-mvc-app/validation.md +++ b/aspnetcore/tutorials/first-mvc-app/validation.md @@ -15,7 +15,7 @@ In this section you'll add validation logic to the `Movie` model, and you'll ens ## Keeping things DRY -One of the design tenets of MVC is [DRY](http://en.wikipedia.org/wiki/Don't_repeat_yourself) ("Don't Repeat Yourself"). ASP.NET MVC encourages you to specify functionality or behavior only once, and then have it be reflected everywhere in an app. This reduces the amount of code you need to write and makes the code you do write less error prone, easier to test, and easier to maintain. +One of the design tenets of MVC is [DRY](http://en.wikipedia.org/wiki/Don%27t_repeat_yourself) ("Don't Repeat Yourself"). ASP.NET MVC encourages you to specify functionality or behavior only once, and then have it be reflected everywhere in an app. This reduces the amount of code you need to write and makes the code you do write less error prone, easier to test, and easier to maintain. The validation support provided by MVC and Entity Framework Core Code First is a great example of the DRY principle in action. You can declaratively specify validation rules in one place (in the model class) and the rules are enforced everywhere in the app.