In the ValuesController there is an attribute Authorize
if you remove it, then it will work as home page.
The Authorize
attribute just prevent an anonymous users from accessing the ValuesController
.
to work with this attribute, you need first to register a user, and then login to get user’s token, then you can use the token to authorize your self and get access .
In this page Individual-accounts-in-web-api is explained all what do you need
Related Posts:
- How to fix No connection could be made because the target machine actively refused it 127.0.0.1:64527
- Effectively use async/await with ASP.NET Web API
- failed to load resource: the server response with a status 500 (internal server error)
- ASP.NET 5 MVC: unable to connect to web server ‘IIS Express’
- Why is this code throwing an InvalidOperationException?
- Twilio TwilioRestClient does not contain a definition for SendSmsMessage
- WCF vs ASP.NET Web API
- System.web.mvc missing
- Compiler Error Message: The compiler failed with error code -2146232576
- The requested resource does not support HTTP method ‘GET’
- How can I secure passwords stored inside web.config?
- Process exists with ExitCode 255
- ASP.NET MVC Page Won’t Load and says “The resource cannot be found”
- How do I target @Model within a src of an image tag?
- Why should I use IHttpActionResult instead of HttpResponseMessage?
- HTML.ActionLink method
- Could not load file or assembly ‘Microsoft.Web.Infrastructure,
- Styles.Render in MVC4
- What does ModelState.IsValid do?
- There is no ViewData item of type ‘IEnumerable
‘ that has the key country - The model item passed into the dictionary is of type .. but this dictionary requires a model item of type
- CS1617: Invalid option ‘6’ for /langversion; must be ISO-1, ISO-2, 3, 4, 5 or Default
- Convert from List into IEnumerable format
- The name ‘ViewBag’ does not exist in the current context – Visual Studio 2015
- System.ArgumentNullException: Value cannot be null. Parameter name: source
- How to make Check Box List in ASP.Net MVC
- How can I parse JSON with C#?
- Converting string to byte array in C#
- How to use SQLite in Visual Studio 2017?
- How to convert byte array to string [duplicate]
- C# Java HashMap equivalent
- Configuration System Failed to Initialize
- Unity cannot convert from ‘string’ to ‘int’
- The request was aborted: Could not create SSL/TLS secure channel
- The located assembly’s manifest definition does not match the assembly reference
- Get current folder path
- foreach vs someList.ForEach(){}
- LEFT OUTER JOIN in LINQ
- How can I find a specific element in a List
? - XAML Binding Groups
- Does not contain a static ‘main’ method suitable for an entry point
- Checking if an object is null in C#
- How to use Global Variables in C#?
- Unity3d no Monobehaviour scripts in the file, or their names don’t match the file name
- Add new item in existing array in c#.net
- How to fix file format and extension don’t match?
- Invalid length for a Base-64 char array
- The HTTP request was forbidden with client authentication scheme ‘Anonymous’. The remote server returned an error: (403) Forbidden
- Why am I getting a “Could not find a part of the path” exception?
- How to move 2D Object with WASD in Unity
- The Object you want to instantiate is null. Unity 3D
- Convert date yyyyMMdd to system.datetime format
- How to bind a model to a kendo Combobox in order to use the models validatation?
- HttpWebRequest-The remote server returned an error: (400) Bad Request
- MSHTML DLL on Windows 10
- Adding values to a C# array
- C#: how to get first char of a string?
- how to convert C# to C++
- Reading settings from app.config or web.config in .NET
- How to initialize a list of strings (List
) with many string values - Collection was modified; enumeration operation may not execute
- Cross-thread operation not valid: Control accessed from a thread other than the thread it was created on
- Unity – Gameobject look at mouse
- What does the @ symbol before a variable name mean in C#?
- What is the C# version of VB.net’s InputDialog?
- How to add comments into a Xaml file in WPF?
- How to easily initialize a list of Tuples?
- How to round up in c#
- Converting from IEnumerable to List
- Escape double quotes in a string
- How to do constructor chaining in C#
- What represents a double in sql server?
- How do you get the index of the current iteration of a foreach loop?
- Expression denotes a `type’, where a `variable’, `value’ or `method group’ was expected UNITY3D
- How do I restart my C# WinForm Application?
- WSACancelBlockingCall exception
- Why is it that “No HTTP resource was found that matches the request URI” here?
- Best way to reverse a string
- C# Foreach statement does not contain public definition for GetEnumerator
- How do I exit a foreach loop in C#?
- Fastest way to remove first char in a String
- How to convert datetime format to date format in crystal report using C#?
- Most efficient way to remove special characters from string
- When do we use ANTLR
- How would you count occurrences of a string (actually a char) within a string?
- Rotate object in Unity 3D
- C# equivalent to Java’s charAt()?
- How to play a sound in C#, .NET
- Convert SQL to LINQ Query
- How to resolve file being used by another process?
- How to crop an image using C#?
- “A namespace cannot directly contain members such as fields or methods”
- Download file of any type in Asp.Net MVC using FileResult?
- How to use __doPostBack()
- C++ performance vs. Java/C#
- At least one object must implement IComparable
- Get local IP address
- Delay function in C#
- Error: “an object reference is required for the non-static field, method or property…” [duplicate]
- Linq: GroupBy, Sum and Count