HI,
I have build a sample web.api project with simple
[HttpGet]
[AllowAnonymous]
[Route("test")]
public IActionResult test()
{
return new OkObjectResult("it works!");
}
system keep generating 403 error when we try to make request to web.api all the time.
please review this log and let me know what I am missing.
info: Microsoft.Extensions.DependencyInjection.DataProtectionServices[0]
User profile not available. Using 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ASP.NET\4.0.30319.0\AutoGenKeys\S-1-5-82-3006700770-424185619-1745488364-794895919-4004696415\DataProtection' as key repository and Windows DPAPI to encrypt keys at rest.
Hosting environment: Production
Content root path: C:\inetpub\wwwroot
Now listening on: http://localhost:2415
Application started. Press Ctrl+C to shut down.
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
Request starting HTTP/1.1 GET http://localhost/login
info: Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationMiddleware[7]
Identity.Application was not authenticated. Failure message: Unprotect ticket failed
info: Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware[6]
The file /index.html was not modified
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
Request finished in 888.0954ms 304 text/html
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
Request starting HTTP/1.1 GET http://localhost/inline.b3bd0bfcac4aaa4f279e.bundle.js
info: Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware[2]
Sending file. Request path: '/inline.b3bd0bfcac4aaa4f279e.bundle.js'. Physical path: 'C:\inetpub\wwwroot\wwwroot\inline.b3bd0bfcac4aaa4f279e.bundle.js'
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
Request starting HTTP/1.1 GET http://localhost/polyfills.aa06c9deb18a82cb17c8.bundle.js
info: Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware[2]
Sending file. Request path: '/polyfills.aa06c9deb18a82cb17c8.bundle.js'. Physical path: 'C:\inetpub\wwwroot\wwwroot\polyfills.aa06c9deb18a82cb17c8.bundle.js'
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
Request starting HTTP/1.1 GET http://localhost/vendor.e4567bf4dfad5eb01ca7.bundle.js
info: Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware[2]
Sending file. Request path: '/vendor.e4567bf4dfad5eb01ca7.bundle.js'. Physical path: 'C:\inetpub\wwwroot\wwwroot\vendor.e4567bf4dfad5eb01ca7.bundle.js'
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
Request starting HTTP/1.1 GET http://localhost/styles.6df274a6bddb9b880816.bundle.css
info: Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware[2]
Sending file. Request path: '/styles.6df274a6bddb9b880816.bundle.css'. Physical path: 'C:\inetpub\wwwroot\wwwroot\styles.6df274a6bddb9b880816.bundle.css'
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
Request finished in 41.4002ms 200 application/javascript
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
Request finished in 52.4055ms 200 application/javascript
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
Request starting HTTP/1.1 GET http://localhost/scripts.fa46da349a06e23575df.bundle.js
info: Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware[2]
Sending file. Request path: '/scripts.fa46da349a06e23575df.bundle.js'. Physical path: 'C:\inetpub\wwwroot\wwwroot\scripts.fa46da349a06e23575df.bundle.js'
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
Request finished in 14.5166ms 200 application/javascript
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
Request finished in 20.2215ms 200 text/css
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
Request finished in 65.0768ms 200 application/javascript
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
Request starting HTTP/1.1 GET http://localhost/main.f2e8d59607f450197295.bundle.js
info: Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware[2]
Sending file. Request path: '/main.f2e8d59607f450197295.bundle.js'. Physical path: 'C:\inetpub\wwwroot\wwwroot\main.f2e8d59607f450197295.bundle.js'
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
Request finished in 6.6983ms 200 application/javascript
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
Request starting HTTP/1.1 GET http://localhost/fontawesome-webfont.af7ae505a9eed503f8b8.woff2
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
Request starting HTTP/1.1 GET http://localhost/glyphicons-halflings-regular.448c34a56d699c29117a.woff2
info: Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware[2]
Sending file. Request path: '/fontawesome-webfont.af7ae505a9eed503f8b8.woff2'. Physical path: 'C:\inetpub\wwwroot\wwwroot\fontawesome-webfont.af7ae505a9eed503f8b8.woff2'
info: Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware[2]
Sending file. Request path: '/glyphicons-halflings-regular.448c34a56d699c29117a.woff2'. Physical path: 'C:\inetpub\wwwroot\wwwroot\glyphicons-halflings-regular.448c34a56d699c29117a.woff2'
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
Request finished in 0.9327ms 200 application/font-woff2
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
Request finished in 1.7542ms 200 application/font-woff2
Application is shutting down...
thank you.