Commit Graph

1805 Commits (684ad426002cb78df8d7f4e91bb46aec779b67ea)

Author SHA1 Message Date
Rick Anderson 732f0d0299 routing init (#1882)
* routing init

* fix

* next

* remove comments

* fix build

* last fix from ryan feedback
2016-09-16 13:53:38 -07:00
Tom Dykstra d1c74c174f initial (#1885) 2016-09-16 13:40:56 -07:00
Tom Dykstra c31e6b0f50 Change guidance on using EF6 with ASP.NET Core (#1864) 2016-09-16 08:37:23 -07:00
Rick Anderson 5f61cdcbf7 DI into views link (#1881)
* DI into views link

* fix doc ref
2016-09-15 15:00:15 -04:00
Rick Anderson 352ffa9061 DI in title (#1880) 2016-09-15 11:46:40 -07:00
Tim M. Madsen c052acfdc5 Stop and kill as group (#1860)
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.
2016-09-15 11:47:35 -04:00
Tim M. Madsen 7b41382f16 Set HOME environment variable (#1861)
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.
2016-09-15 11:41:54 -04:00
Luke Latham d0b8a03f30 Update hosting bundle link (#1874)
Fixes #1873
2016-09-14 10:55:26 -07:00
Luke Latham a3609c7c63 Update hosting bundle link (#1875)
Update hosting bundle link for 1.0.1 release.
2016-09-14 10:55:17 -07:00
Rick Anderson 2b38117ae7 Update areas.rst (#1872) 2016-09-13 13:39:25 -07:00
Scott Addie b9936719ca Update launchSettings.json environment variables to RTM (#1869) 2016-09-13 12:51:01 -04:00
Jamie West d16f39b4f5 Update sociallogins.rst (#1862)
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.
2016-09-12 10:23:29 -07:00
Luke Latham 77c9d6d521 Update iis.rst (#1858)
Update instruction and troubleshooting wrt restarting the server or restarting IIS per instructions of @pan-wang in https://github.com/aspnet/IISIntegration/issues/256#issuecomment-245679159

cc/ @moozzyk
2016-09-12 09:29:32 -04:00
Scott Addie 40e8202248 Update Migrating Configuration doc to RTM (#1859) 2016-09-12 09:25:11 -04:00
Shayne Boyer 0dfc1c1ee5 Add HttpGet attribute
Fixes #1865
2016-09-12 09:21:05 -04:00
Daniel Roth 9a6e21640a Update publish-to-azure-webapp-using-vs.rst (#1854) 2016-09-08 14:07:20 -04:00
Shayne Boyer edd64c0818 adding identityserver4 ref (#1851)
* adding identityserver4 ref

* fix edits

* edits per discussion
2016-09-08 12:32:24 -04:00
Hao Kung c79811cf18 Update cookie sharing doc (#1838)
PR fixes

Text tweek

Some .rst and wording cleanup
2016-09-07 14:23:02 -04:00
Shayne Boyer 46d808f5a6 Updates for First ASP.NET Core App on a Mac Using VS Code (#1818)
* setup and scaffolding

* removed welcome page image - no longer valid

* symbols added to match vscode docs

* updates azure deployment

* addressing edits
2016-09-06 16:41:00 -04:00
4c74356b41 f22c2ce2d7 fixing issues (#1843)
check my comment on the article
2016-09-06 16:36:15 -04:00
Daniel Roth 5fd09ff1cf Fix typo is IIS publishing doc (#1848) 2016-09-06 16:08:08 -04:00
jiabiao 8f0707e09d package name changed. Microsoft.AspNetCore.Identity.Cookies -> Microsoft.AspNetCore.Authentication.Cookies (#1845) 2016-09-06 15:54:22 -04:00
Luke Latham 86881ce48a Update iis.rst (#1846)
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.
2016-09-06 15:53:02 -04:00
Shayne Boyer 7120e0f9bb Change link for reference to`dotnet`
Fixes #1841
2016-09-06 15:52:20 -04:00
Shayne Boyer 57452da190 Yeoman update (#1817)
* 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)
2016-09-02 20:18:55 -04:00
Brandon 201f690065 fixed typo 'until' typed twice (#1836) 2016-09-01 14:41:52 -04:00
AndY HARPIANTO 76288254df add link to mac tutorial (#1835) 2016-09-01 12:39:54 -04:00
Shayne Boyer deeb06d0ef add link to mac tutorial (#1832) 2016-08-31 14:12:32 -04:00
Shayne Boyer c4b7de52f7 add rss link to template (#1833) 2016-08-31 14:10:07 -04:00
Luke Latham e4d1125410 Update aspnet-core-module.rst (#1826)
Fixes #1816

* Fix minor grammatical issues.
* Add the explanation and workaround for IIS Shared Configuration.
2016-08-31 11:13:16 -04:00
Shayne Boyer c507eb18df remove mobile views (#1819) 2016-08-30 17:04:30 -04:00
Michiel Staessen 6c919c8a86 Changed values from bold to code & fix typo (#1821)
* Changed values from bold to code

Sphinx doc treats ``--`` as a long dash. This might cause errors/confusion for people copy-pasting...

* Fix typo
2016-08-30 17:03:30 -04:00
Edward Brey 66d2be487f Removed unreachable code for sending with SendGrid (#1824)
`new SendGrid.Web(credentials)` can throw an exception, but it can't evaluate to null.
2016-08-30 17:02:46 -04:00
Barry Dorrans 268bbef8d6 Add XSS documentation (#1804)
* Add XSS documentation

Addresses #90

* Remove HTML from razor code blocks.

* Take feedback into account.

* Even more feedback magiced in

* Final feedback acted upon
2016-08-23 18:13:35 -04:00
Shayne Boyer de0ebd7f4f add flags for warnings as errors. (#1809) 2016-08-23 16:46:48 -04:00
Scott Addie 3ecaaac3bb Remove extra colon from Sections heading in Web API doc (#1807) 2016-08-23 08:34:16 -04:00
Scott Addie 31e216333f Convert Scott Addie author link from HTTP to HTTPS (#1808) 2016-08-23 08:33:45 -04:00
Nicholas d517d5f327 Edit linux deployment doc. (#1802)
* Update nginx.conf

* Update linuxproduction.rst

* Update linuxproduction.rst
2016-08-22 15:31:25 -04:00
Shayne Boyer c79e410892 fixing links (#1803) 2016-08-22 14:39:11 -04:00
Scott Addie a1f9a163ef Update Web API migration doc to RTM (#1790)
* Update Web API migration doc to RTM

* Change lex language to none for Startup.cs code sample
2016-08-22 13:26:42 -04:00
Xing Zheng cf436db022 fix typo in documents (#1801)
fix typo in documents
2016-08-22 06:43:16 -07:00
domaindrivendev ec28c0e899 Updates to reflect changes introduced by Swashbuckle 6.0.0-beta902 (#1794)
Thanks!
2016-08-21 07:07:47 -04:00
Tom Dykstra 16ea69eb24 add Tom Dykstra to authors list (#1796) 2016-08-19 12:10:43 -04:00
Travis Illig 0e2aec4ae2 Updates to Autofac references, samples for RTM (#1793) 2016-08-18 08:50:04 -04:00
Shayne Boyer 485088ec34 Cors update (#1789)
* rtm samples update

* warning removed, code blocks, literal includes updated

* cleanup, remove user files

* include path issue

* simplify setup sentence, remove code block
2016-08-17 19:17:49 -04:00
Rick Anderson 4e03ea0a12 remove Razor reserved words escaped (#1792) 2016-08-17 14:25:40 -04:00
Steve Smith 3d16a4629e MVC Overview (#1774)
* Initial outline

* Re-ordering section to be in M-V-C order.

* Responding to Feedback

* Last tweaks
2016-08-16 21:45:15 -04:00
Michiel Staessen eb78ebddc5 Update LoginPartial to VS template (#1784)
The templates are updated and the extension method GetUserName(this IIdentity) does not seem to be available anymore
2016-08-16 16:41:55 -04:00
Daniel Roth 3b9b464014 Adding missing period 2016-08-16 12:49:17 -07:00
Miguel Pinto e65ed05620 Update index.rst (#1777)
Improved the description of the AddEnvironmentVariables prefix parameter.

The prefix is being removed from the environment variable names and it was not mentioned anywhere. You had to guess...
2016-08-16 12:46:57 -07:00