IE does not resolve URL

Asked

Viewed 70 times

1

I published an application in Asp.net c# on my Intranet. By entering the URL, the application works by Chrome, Firefox and IE gives error in the middle of the application and does not perform certain features. However, if in the IE itself I type the IP instead of the URL, the application works perfectly. Why does this happen? Any idea how to solve this?

  • How many characters does the URL have? There are parameters in it?

  • @Renan the url is like this: ti_hom.xxxxxx.yyyyy.br In this mold and with the same amount of characters.

  • At a certain point in the application the url loads parameters yes...

  • That’s when IE fails?

  • No @Renan fails without parameters too...

  • Ah, important... What’s the IE version? Maybe the components on the pages don’t support if it’s an old version.

  • I am using IE 10 @Renan. I have already put in the application code up to the tag <meta http-equiv="X-UA-Compatible" content="IE=10" />

  • @Thiagosilva but this specific something that would not be compatible with IE would not run in the IE or pulling the IP not? Through IP the application works perfectly in IE

  • javascript and css has yes. But something might be compatible by IE if instead of logging in with IP I log in with the URL ??

Show 4 more comments

1 answer

2


From what I read in the comments, the structure of your url is ti_hom.xxxxxx.yyyyy.br and the problem lies precisely in this: internet explorer has problems with urls it contains _ (underscore).

Translation of a relevant part of the linked article:

[...] the underscore is an acceptable character in a url [...] However, IE doesn’t seem to like it when it’s part of the name domain or subdomain [...] The problem happens when you need it use cookies on the site, which most websites need, especially if you are using cookies as part of the validation. IE cannot create cookies when the domain name or of the subdomain has a underscore

Unfortunately it seems that there is no solution for this in addition to changing your domain name or instructing your users to use the IP address directly/switch browser. All alternatives can be problematic, so it’s up to you to decide which way to go.

  • William Barbosa thought about it. Would this underscore problem be only in the same domain name or also in the application path and subfolders? Type ti_hom.xxxxxx.yyyyy.br/Home/_Adm ?

  • 1

    The problem occurs only in domain and subdomain. Despite the use of underscore as separator not be a good practice if you have interest in SEO.

  • 2

    Excellent answer! I’ve had this same problem before and I didn’t remember it.

  • Ball show! I will create another url then and test.

  • Perfect @Williambarbosa

Browser other questions tagged

You are not signed in. Login or sign up in order to post.