* Initial aspnet migration
* Updating legacy urls
* Clearing .gitignore file
Clearing .gitignore file because this isnt a normal .net application
where we want to strip away debug files, etc. We want to include
everything under these folders.
* Updating webhooks toc reference
* Removing header debug links
* Updating webhooks toc
* Updating double quotes in metadata to use single quotes
* Moving all code blocks to external files
* Updating newlines for step-by-step
* Fixing indent problem on some code blocks
* Fixing newlines in alt attribute for images; Fixing some missing code block references
* Resyncing with live content
* Refreshing content from production
* Trying to get pdf to generate for our aspnetmigration branch
* Update .openpublishing.publish.config.json
* Refresh from prod; Removing some legacy urls for pages that shouldnt have it
* Updating index pages and removing legacy urls
* Updating warning and caution notes
* Removing downloads
* remove aspnet from exclude list (#2549)
* First pass at language detection
* Updating author and adding in msc.type
* Updating code blocks
* Updating note styles
* Fixing note styles
* Updating docfx.json file to allow pdfs and gifs
* Fixing note stylings for bold notes
* Updating docfx.json to allow exe, zip and wmv files
* Fixing note styles with period; Fixing downloads links
* Fixing code blocks for razor cs and vb
* Fixing more downloads links; Fixing a few code blocks
* Removing   html entity
* Fixing some more note stylings
* Syncing with prod
* Fixing issues with content
* Rebuilding toc file
* Adding back in files accidentally deleted
* Fixing some security notes
* Fixing some note styles
* Updating unknown code blocks
* Updating article
* Fixing link
* Fixing link
* Fixing link
* Fixing invalid characters
* preliminary toc changes
* update toc
* fix toc folder with only one link
* Fixing extra heading
* Fixing articles
* Reworking ajax pages
* Fixing encoding issues
* Updating markup in articles
* Fixing space
* Fixing spacing issues with links
* Fixing note styles
* Fixing inline note styles
* Fixing missing image
* Adding space
* Rolling back gitignore file and adding a new one for /aspnet
* Fixing some code blocks
* Updating code block language
* Renaming file
* Updating code language
* Fixing code blocks
* Fixing code blocks
* Fixing spaces before 'using'
* Fixing cs to js
* Changing Note type
* Updating broken reference
* Replacing headings with bolds under notes/tips, etc
* Fixing markdown for pipes
* Another attempted to fix pipe characters
* Fixing markdown for pipes
* remove text about being thread-safe (#2630)
* Fixing spacing issue with list
* Trying to fix pipe issue
* new how to choose doc
* move choose doc to core folder
* add api ref
* fix link
* Adding in ms.assetid
* Removing \ufeff
* fix link
* link to mvc intro instead of webhooks
* add scenarios
* put core first, vertical orientation for scenarios
* reorganize toc, make overview work like core version
* fix yaml
* fix broken links
* Adding space
* add download link
* tweak tables
* eliminate images
* eliminate images 2
* tweak scenario section headings
* add link to core in asp.net overview
* Removing gears
* Updating table
* Updating code block languages
* fix urls (#2663)
* Removing embedded in-article TOC from top of articles
* fix urls (#2666)
* fix urls
* fix urls
* Removing embedded in-article TOC from top of articles
* Revert "Removing embedded in-article TOC from top of articles"
This reverts commit ff1c3ccdf1.
* Revert "Removing embedded in-article TOC from top of articles"
This reverts commit 17c37c726d.
* Add user's unique email policy configuration
* Add user's unique email policy configuration
I think it can be hepful because a lot of projects need this user email's policy.
* Update identity.rst
Updated Library references to not bound with a specific version.
When tools/references are updated (like Microsoft.Extensions.Configuration.UserSecrets was updated to 1.0.0) the documentation turns outdated
Fixes#1932
I added it to the end, however, the Commons Errors section will get better organized when I get to the big doc overhaul. I intend to sort/group them by browser response error code when the time comes.
* Add location information to ANCM hosting doc
Fixes#1931 ... also updated capitalization of "h" of `applicationhost.config` to `applicationHost.config`.
Adds ANCM module, schema, and `applicationHost.config` locations to the doc for easy dev reference.
All credit to @jhkimnew for excellent post at https://github.com/aspnet/Home/issues/1583#issuecomment-249754022
* Minor update
Consistency: `IIS Express` (with space) is better than `IISExpress`.
* Updated references in Identity Migration
Updated references in Identity Migration to use the final namespaces of components:
.. code-block:: c#
"Microsoft.AspNetCore.Identity.EntityFrameworkCore": "1.0.0",
"Microsoft.AspNetCore.Authentication.Cookies": "1.0.0",
Removed workaround to assure that database is created in Entity Framework
* Removed lib version reference
Removed specific version reference for libs and updated text for better reading.
* Add identity configuration example
Add an example about how to configure some basic stuff about ASP.NET Core Identity (password policy, cookie, lockout, ...)
* Add identity configuration example
Add an example of identity configuration in startup class
* Update startup.rst
I noticed that I had to read that sencence five times before coming to terms with it. I hope that my suggestion helps to make it more readable.
* Delete obsolete passage about DI
As @RickAnderson suggests, I just delete the passage that is trying to explain Dependency Injection in one sentence (and fails). He's right: all the info about Dependency Injection is available through the DI-link in the first sentence of that paragraph.
The return value of `HandleRequirementAsync` should be outside the if statement
The context parameter type has been renamed from `AuthorizationContext` to `AuthorizationHandlerContext`
When running `dotnet` two processes are started: one started by the user,
and one spawned as a child process. Example after running `dotnet run -p
/var/www/HelloWorld/src/HelloWorld`:
```
root 27452 0.5 5.6 3070112 57064 ? SLl 16:50 0:01 /usr/bin/dotnet run -p /var/www/HelloWorld/src/HelloWorld
root 27470 0.1 3.5 7014752 36028 ? SLl 16:50 0:00 /usr/share/dotnet/dotnet exec --additionalprobingpath /var/www/.nuget/packages /var/www/HelloWorld/src/HelloWorld/bin/Debug/netcoreapp1.0/HelloWorld.dll
```
When starting a site with supervisor, the same thing happens. When trying to
stop a site through `supervisorctl` with (in this case) `stop helloworld` the
original process is stopped (the one with id `27452`) but that process doesn't
pass on the `SIGINT` to its child process. The result is that the site is not
really shutting down, first of all, and second of all, trying start the site
again with (in this case) `start helloworld` will result in a bunch of errors
because the port kestrel wants to listen on is already in use.
To avoid this, set the `stopasgroup` and `killasgroup` configuration parameters
to true. This makes `supervisor` send the `SIGINT` to all child processes.
It is necessary to set the `HOME` environment variable when running a dotnet
core site through supervisor. If it is not set, the following exception is
thrown:
```
Unhandled Exception: System.ArgumentNullException: Value cannot be null.
Parameter name: path1
at System.IO.Path.Combine(String path1, String path2, String path3)
at Microsoft.DotNet.ProjectModel.Resolution.PackageDependencyProvider.ResolvePackagesPath(String rootDirectory, GlobalSettings settings)
at Microsoft.DotNet.Configurer.NuGetCacheSentinel.get_NuGetCachePath()
at Microsoft.DotNet.Configurer.NuGetCacheSentinel.Exists()
at Microsoft.DotNet.Configurer.DotnetFirstTimeUseConfigurer.ShouldPrimeNugetCache()
at Microsoft.DotNet.Configurer.DotnetFirstTimeUseConfigurer.Configure()
at Microsoft.DotNet.Cli.Program.ConfigureDotNetForFirstTimeUse(INuGetCacheSentinel nugetCacheSentinel)
at Microsoft.DotNet.Cli.Program.ProcessArgs(String[] args, ITelemetry telemetryClient)
at Microsoft.DotNet.Cli.Program.Main(String[] args)
```
I guess that `path1` in this case is the value of the `HOME` variable (which is
`null` unless set in `supervisord.conf`) and it seems to be used for the
default nuget package path for the www-data user. By including `HOME` as part
of the `environment` configuration, this expection is no longer thrown and the
site starts up as expected.
The previous example did not work, I updated the block to reflect what will work under the guide instructions and without having to add additional usings.
Addresses https://github.com/aspnet/IISIntegration/issues/256#issuecomment-244796828
* The entry for "Incorrect `proecessPath`, missing PATH variable, or *dotnet.exe* access violation" correctly points out that `dotnet.exe` should be on the PATH but fails to take into account that IIS won't automatically pickup the change without a restart.
* The entry for restarting IIS is made more specific: (a) Restart the server, or (b) Restart IIS via command-line or IIS Manager.
AFAIK corehost of a self-contained app is immune to the IIS un-picked-up PATH situation, so I explicitly call this out for portable apps. @pranavkm @JunTaoLuo @Tratcher @moozzyk @pan-wang correct me if I'm wrong.
Side Note: When we get the next major release of ANCM (1.1?), I'll re-run these common errors and update for log message and behavioral changes.
* missing grunt and gulp-cli
* update images to current versions of output
* update sub generators link to omnisharp github repo
* add updated windows images
* remove gulp grunt option, add bundler
* addressing nit(s)
* Add XSS documentation
Addresses #90
* Remove HTML from razor code blocks.
* Take feedback into account.
* Even more feedback magiced in
* Final feedback acted upon
A dev on Slack said that "application’s assets" didn't translate well into their language. This change modifies the expression and includes a link to the Directory Structure doc.
The aap.UseSession(); must go before the UseMvc(), but this is not mention anywhere in the docs, i think is best to be explicit about this, wasted a few hours until i find out