Commit Graph

1044 Commits (4adae42e4fc3cdfb0b6b62d38280af77b5d63d7d)

Author SHA1 Message Date
Thomas Ardal 34333d3196 Fixed link to elmah.io (#1924)
The link to the elmah.io package pointed to the old package from before the rename from framework.logging to extensions.logging.
2016-09-27 10:39:19 -04:00
Carsten Schelp d9a5a60166 Update startup.rst, trying to make one sentence more readable. (#1911)
* 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.
2016-09-23 12:26:05 -07:00
Tom Dykstra 216cf12a4d add readme and add mvc to title (#1914) 2016-09-23 09:48:05 -07:00
Steve Smith 545f7341e6 File Providers (#1855) 2016-09-22 20:20:46 -04:00
Scott Addie 896f588f0b Update MVC migration doc to RTM (#1901) 2016-09-22 11:46:15 -07:00
caradong 889c6c42c7 Outdated git repo link for ui customization (#1907)
Using the index.html at the current to customize UI is not working. The current swagger ui for .net core should be 
https://github.com/domaindrivendev/Ahoy/tree/master/test/WebSites/CustomizedUi/wwwroot/swagger/ui
2016-09-21 14:15:34 -04:00
Steve Smith 867bfae21a Native Apps APIs (#1837)
APIs for native mobile apps.
2016-09-20 22:53:39 -04:00
Shayne Boyer 31673e5274 add link to Azure AD index for B2C example (#1905)
Add an optional extended description…
2016-09-20 10:17:33 -07:00
James Orr b54e6457dd missing space in text (#1906) 2016-09-20 10:16:59 -07:00
andrewlock 6b3a5868ab Fix broken code sample (#1899)
The return value of `HandleRequirementAsync` should be outside the if statement
The context parameter type has been renamed from `AuthorizationContext` to `AuthorizationHandlerContext`
2016-09-19 14:38:38 -04:00
Shayne Boyer b3146f24d6 Bower.rst update (#1876)
* bower update

* samples added

* semver message update

* whitespace

* removing whitespace

* removed sample

* whitespace

* remove bower samples

* fix bundle samples

* fixing nits

* new line
2016-09-19 09:45:38 -04:00
Ivaylo Kenov 26de2f0e84 Fixed broken link to Entity Framework sample (#1896) 2016-09-18 07:22:13 -07:00
Tom Dykstra 406ff0d3cc initial draft of EF MVC tutorial series 2016-09-16 18:53:54 -07:00
Tom Dykstra ae6160f4ef initial (#1892) 2016-09-16 14:41:41 -07:00
Tom Dykstra 6ea637ae9d remove TraceSource (#1886) 2016-09-16 14:22:06 -07:00
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
Shayne Boyer deeb06d0ef add link to mac tutorial (#1832) 2016-08-31 14:12:32 -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
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
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
Rick Anderson 1176419f9e update authors (#1787)
Add an optional extended description…
2016-08-15 13:19:18 -07:00
Shayne Boyer dd573e730b Webapi Swagger Tutorial (#1768)
* structure

* wip, intial description and code examples

* 'space'

* screenshots and getting started

* basic complete, annotations started

* rename var, comment code

* complete through DataAnnotations

* customizing ui src

* custom html src complete - simple

* custom ui complete

* summary

* fix indent issue

* indentation issues

* editing changes

* adding .vscode user exclusions

* remove .vscode folder

* user files

* spell check

* reword testing method section

* added download link to intro

* edits for final review

* fix punctuation in controller

* add red boxes to swagger-ui image

* minor edits :shipit:
2016-08-15 11:07:28 -07:00
Scott Addie 038914f193 Update Fundamentals DI doc and sample to RTM (#1781)
* Update Fundamentals DI doc and sample to RTM

* Revert literal block type to javascript
2016-08-15 11:04:07 -07:00
Tom Dykstra f87edb31b1 fix broken link (#1785)
/cc @Rick-Anderson
2016-08-15 10:57:45 -07:00
Dody Gunawinata 3cd0ef7b22 Fix a typo (#1783)
vaule -> value
2016-08-15 09:25:23 -04:00
Luke Latham a397200b6b Add sub-app config and common error entry (#1778)
* Add sub-app config and common error entry

Fixes https://github.com/aspnet/Docs/issues/1764

* Code-block correction

* React to feedback
2016-08-12 17:38:56 -07:00
Rick Anderson 52dbf1cc03 updated areas (#1779) 2016-08-12 16:04:56 -04:00
Aftab Ansari 29bac2f18c Output Correction (#1775) 2016-08-11 19:09:16 -07:00
Rick Anderson edbf7b8adc style as code (#1776) 2016-08-11 18:37:18 -07:00
Luke Latham 636ec46dd1 Update error-handling.rst (#1772)
Fixes https://github.com/aspnet/Docs/issues/1721
2016-08-11 15:53:05 -07:00
Luke Latham 5bbcb50bab Minor language update (#1773)
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.
2016-08-11 14:56:00 -07:00
Borislav Kosharov 267f3fde7f Fixed view folder Todo to match controller name (#1763)
* fix view folder Todo to match controller name

* fixed reference in .rst file
2016-08-10 09:32:08 -07:00
M. Shawn Dillon aac3229993 Correct misspelling in 2nd paragraph (#1769)
Change 'seemlessly' to 'seamlessly'.
2016-08-09 11:06:04 -07:00
Luis Palacios 365a3a1788 Update app-state.rst (#1758)
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
2016-08-08 09:47:18 -07:00
Rick Anderson 0dba098c15 first draft of Web-API (#1755)
* first draft

* final

* tom.D feedback

* <name>

* fix build
2016-08-08 09:45:45 -07:00
Rick Anderson dfeed1154e snippet (#1766) 2016-08-06 20:35:38 -07:00
Rick Anderson 05a0789c2c snippet fix (#1762) 2016-08-04 19:01:45 -07:00
Rick Anderson 53d326f20b snip (#1761) 2016-08-04 18:09:18 -07:00
Rick Anderson 0926aa1f4c snippet (#1760) 2016-08-04 16:23:03 -07:00
Sandra Aldana Abad 8f421d8287 removing OP files from this branch 2016-08-03 14:11:36 -07:00
saldana 538a038891 Initialize open publishing repository: https://github.com/aspnet/Docs of branch master 2016-08-03 19:24:22 +00:00
Steve Smith b657ed9748 Fundamentals/Hosting (#1702) 2016-08-03 09:26:00 -04:00
James Orr f2b658a9e1 correct a typo (move -> movie) (#1753) 2016-08-02 21:41:38 -07:00
James Orr 4824603da5 corrected a typo (genre's -> genre) (#1754) 2016-08-02 15:56:12 -07:00
Aftab Ansari 996c82383a Ng15 patch (#1728)
* ng15 component patch

* Sample code update

* referenced filename corrected

* Tabbing Corrected

* Tabbing Corrected

* Wordings Corrected
2016-08-02 15:54:33 -07:00
Brian Szuter 5b06925581 Removed duplicate "during" (#1748)
* Spelling fix to routing.rst

"resposes" -> responses

* Removed duplicate "during"

"present during during URL generation" -> "present during URL
generation"
2016-08-02 09:44:59 -07:00
Rick Anderson 6b461be227 EF repository for DI (#1747)
* EF repository

* dv feedback
2016-08-01 20:23:41 -07:00
Brian Szuter ec8c48e870 Spelling fix to routing.rst (#1745)
"resposes" -> responses
2016-08-01 18:01:55 -07:00
Rick Anderson 8fc7018996 Update localization.rst (#1746)
Add an optional extended description…
2016-08-01 18:00:45 -07:00
Rick Anderson 17c4cf92be namespace (#1743)
If for some reason your targeted class is in the same project but not in the base namespace you will need…
2016-08-01 16:43:34 -07:00
Artiom Chilaru 36fc584925 Bugfix/routing regex (#1738)
* Fix the regex route in Startup.cs

* Fix the regex route in routing.rst
2016-08-01 13:02:31 -07:00
Charmis Varghese ae710428b6 Typo "genenerate" fixed. 2016-07-29 15:36:59 -04:00
Rick Anderson 56fcd72a4f Authz DI (#1729)
* guessing here

* EF
2016-07-28 19:58:39 -07:00
Rick Anderson 78bc324a99 fix IIS install on Nano (#1724)
* fix IIS install

* temp
2016-07-28 14:07:17 -07:00
Borislav Kosharov 20c866bd53 fix MapDelete typo (#1736)
MapRoute was listed twice and MapDelete wasn't listed
2016-07-28 14:06:31 -07:00
Rick Anderson c2bac001a8 spelling (#1732) 2016-07-27 15:29:01 -07:00
Rick Anderson 30b3d3725e fix start/end (#1731)
Add an optional extended description…
2016-07-27 14:28:49 -07:00
Simone Chiaretta 9569a559df Removed reference to IApplicationEnvironment (#1726)
IApplicationEnvironment doesn't exist anymore: https://github.com/aspnet/Announcements/issues/171
2016-07-26 12:04:50 -07:00
Rick Anderson 260f34d05c Razor Syntax (#1651)
* New Razor syntax article

* final DanRoth review
2016-07-26 10:59:01 -07:00
Rick Anderson 243cf8db7c remove angular 2 dates and info (#1720) 2016-07-25 17:47:41 -07:00
Mikhail Paulyshka 7cc62a7b12 Linux publishing: fix typo (#1710)
Fix typo in supervisor config.
2016-07-25 11:02:29 -07:00