Azure + IE11 502 error - asp.net-mvc

I ve hosted my asp.net MVC website in Azure. I am redirecting from the first page to the second via javascript and the url is like http://mywebsite.net/Home/Method/?value=someValueWithGreekCharacters
When I am trying it with firefox or chrome everything works fine.When I am trying it with IE11 i got this error message :
502 - Web server received an invalid response while acting as a gateway or proxy server.
There is a problem with the page you are looking for, and it cannot be displayed. When the
Web server (while acting as a gateway or proxy) contacted the upstream content server, it
received an invalid response from the content server.
When I m trying to run the website localy with VS2012 everything works fine with all browsers.
Also if I change the value in the url from greek characters to english there is no error in IE11 (but also no proper results).
I conclude that it has to be something with the combination of azure+ie11+greek characters in query string.
Is it a known bug?Any ideas?
Thanx in advance!

Related

Access to a PDF File in a http with dinamyc variables

Hello everyone (sorry for bad English), i'm getting crazy with this problem... i'm working on a project with NiFi expecting to download PDF files from a public Goverment page. The main problem it's that the page you request in a web browser shows the correct page like this
Asking the same page in NiFi (also testing in postman) shows that the session has expire, then looking at the HTTPS POST with the development tools in chrome i notice that there are multiple headers that contain dynamic variables
Is there any form to replicate web browser behaviour on NiFi?

IIS hosted app triggers run time error when url contains a "-"

I have an VS2017 AspNet MVC 5 app hosted on a 2016 Server and IIS. Each client has its own website with its own copy of the web app. Using godaddy.com I forward (with keep mask checked) the client domain to the sub-domain in the IIS and everything has been working fine for years. The client can access the web app and see its domain name in the browser url.
Example: myclientdomain.com forward with mask to myclientdomain.mycompanydomain.com but shows in the browser as myclientdomain.com
Now, I have this new client whose domain is newclient-domain.com (It has a dash) and it was forwarded exactly like the others, however, after the page loads, if the user clicks the only button in the page, it triggers a runtime error saying:
"The required anti-forgery cookie "__RequestVerificationToken" is not present.]"
Since all the others don't have this error, I am inclined to think it is the dash in the domain name. Am I right? Is there any solution other than removing the dash from the domain name?

iis replaces url with strange pattern

i am building a web api and everything works fine on my localhost iis express.
But when i publish my application to my normal iis, the iis replaces a part of the url with a strange pattern that i have never seen before
This leads to an 404 error everytime, cause the IIS replace the link in every browser!
why is that?
IIS Express API Link:
http://intranet-bla/crmServer/crmGet/getSomeThing?id=1978338358
IIS API Link:
http://intranet-bla/crmServer/(S(nsz24dspha255yzcyy2c4eqh))/crmGet/getSomeThing?id=1978338358
EDIT:
The 404 Error was gone after renaming the http-handler, the strange url is still there but isnt a issue anymore

kendo ui upload not working in IE9 at deployment

I'm using Kendo Ui uploader and WebAPI call to upload a file. The process im doing goes fine on all browsers even on IE9 locally (localhost), but once i deploy the same code on another domain and i use the kendo upload in IE9 (only in IE9 there's problem), kendo goes directly to the error function and replies with an error message:
' Server response: Error trying to get server response: Error: Access is denied.'
Although the webapi method is returning an http response of 201(created), and i set the content type header to "text/plain", plus i'm sending in the body of the http response a json string. I tried so many things (one of it is configuring X-Frame-Options in IIS) but couldn't make it work. Any ideas would be appreciated. Thanks.
The answer is here “Access is denied” error on accessing iframe document object
[...]
"So it turns out, that if a response is sent with an error code, IE replaces the content of the iframe with an error message loaded from the disk (res://ieframe.dll/http_500.htm), and that causes the cross-domain access denied error. by Ovesh"

Any ideas how to troubleshoot HTTP Error 400 for MVC/Firefox?

Two clients complains on HTTP Error 400 from Mozilla Firefox 3.6.9. This happens when they open any link - both mvc application and also any static images, which are hosted on Classic application pool without any code.
Exact error message is HTTP Error 400. The request is badly formed
No errors in windows log and application error log. Proxy in browser is set to off.
Other browsers works fine for them.
Any ideas about what could cause such behavior?
For now, i can see only one option - ask them to install Firebug, but this is not really user friendly.
For some reason, cookies was corrupted and this was leading to HTTP 400 error.
After user cleaned cookies for this website he was able to get page.
I still need to investigate what exactly went wrong and find source of this problem but it is clear that I need to review all places where I do cookie creation.

Resources