IIS 7 and Above
Angularjs (client) and .Net WebAPI not working on Windows server 2016...
Last post Jun 25, 2019 01:43 AM by Jalpa Panchal
Jun 06, 2019 07:25 AM|pulkitgoeldotnetcool|LINK
My client app is created using Angularjs and WebAPI is in.Net (framework 4.7.2)
Problem: Earlier my app was hosted on Windows server 2012 R2 and app is working fine on it but now I am trying to host the same app on Windows Server 2016(IIS 10) but now client user login authentication isn't working on it (for login authentication i am
using Identity server)
Reasons according to my investigation:-
By default, HTTP2 is supported on windows server 2016 and if I disable http2 on the server then the app works fine.
Or if I change SSL setting (In IIS) by checking 'Require SSL' and select 'Accept' option then also application works well. But in this case, WebAPI calls uses http1.1 protocol so that's the reason it starts working.
Please provide some solution so that my app also works on windows server (IIS 10) without disabling any setting.
Currently, I am using Identity server 2
Request and Response Headers on IIS10 (http2)
Request and response headers on IIS 8 (http 1.1)
Jun 07, 2019 02:00 AM|Jalpa Panchal|LINK
Could you please tell us which browser he used to access the identity2? and try to set the same setting in server 2012 R2 and see you could reproduce the issue or not.
Jun 07, 2019 05:12 AM|pulkitgoeldotnetcool|LINK
I am using chrome browser. Application work fine on windows server 2012 R2 as its IIS uses protocol http/1.1
Jun 07, 2019 05:15 AM|Jalpa Panchal|LINK
So you could use HTTP 1.1 on server 2016 also.
Jun 07, 2019 05:16 AM|pulkitgoeldotnetcool|LINK
I got the solution - may be it seems weird to you. 'Key' i am sending from client to server is in the request header.
So if you see Request header send to IIS8 have uppercase 'K' in key and in request header send ti IIS10 has lower case 'k' in key.
Don't know why how 'Key' is converted to 'key'.
Jun 25, 2019 01:43 AM|Jalpa Panchal|LINK
I request you to mark the helpful suggestion as an answer. This will help other people who face the same issue.
Thank you for understanding.