2

I am using IIS 7 on Windows 2008 Server for an ASP.NET 4 application using Bootstrap. The server has a private IP address to use at work, but is also accessible through a public IP address from outside. Our Internet access provider does the forwarding for us. The server is also running the F-Secure antivirus system.

When I browse the web site from the server itself, using either the private IP or the public one, it works fine. But when I use a remote client (using the public IP, obviously), it works randomly. A typical scenario goes like this:

  1. I type the web site URL on my browser. I get home page.
  2. I click on a link to navigate to another page. I get an INET_E_RESOURCE_NOT_FOUND error.
  3. I hit refresh on the browser. I get the page.
  4. I click on another link. I get the page.
  5. I click on another link. I get an INET_E_RESOURCE_NOT_FOUND error.

And so on and so forth. It is apparently random. Sometimes the server returns the page, sometimes I get the INET_E_RESOURCE_NOT_FOUND error. It happens from every client I have tried, from Edge on a Windows 10 machine to Safari on an iPhone.

Some other times, the server fails to deliver the home page when I first browse to it from a client computer. I retry a few times to no avail. And then, after perhaps 5 or 10 refreshes, I get the page. And from that point on, it works OK until, eventually, it fails again.

As far as I understand, INET_E_RESOURCE_NOT_FOUND does not mean that a page was not found (that would be a 404), but that the server could not be found. It is usually associated with a DNS or proxy error.

I have been looking at IIS log files. As far as I can see, sometimes logging gets interrupted with entries such as this one:

GET /fonts/glyphicons-halflings-regular.woff - 80 - 193.144.38.100 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/52.0.2743.116+Safari/537.36+Edge/15.15063 404 3 50 78

Apparently, the client is trying to get a fonts file and the server returns a 404 error. The font file is on the server in the right folder, so I am not sure why it's failing to find it.

EDIT. I have now fixed the issue with the font file (which was due to a missing MIME type entry on IIS), but the random INET_E_RESOURCE_NOT_FOUND errors remain. The 404 with the font file is likely to be a red herring.

EDIT. I have another issue with this same web site, which may be related. Please see here: https://stackoverflow.com/questions/43814006/smtpexception-in-asp-net-application-with-remote-browser

Any ideas? Thanks.

CesarGon
  • 470

4 Answers4

2

Assuming you get this error directly in your browser, rather than it being returned by the proxy server, you can test whether it is caused by DNS issues by adding an entry in your hosts file (%windir%\System32\drivers\etc\hosts in Windows; you'll need to edit it as administrator) to associate the public IP address of your web site with its DNS entry). If you do this, and test the public web site, and you still get the same errors, it's not a DNS problem, and you can start looking at the proxy server configuration. (Remember to remove the entry after testing!)

Pak
  • 919
1

I would suspect that your mime types are not set correctly. I would suggest you add it explicitly as part of your server config.

Others have had this issue before: https://stackoverflow.com/questions/4015816/why-is-font-face-throwing-a-404-error-on-woff-files

DarkSheep
  • 1,056
1

You said that the ISP is doing the forwarding for you, which suggests that they are proxying/port-forwarding to an internal IP and that your server only has one IP address (likely a private one).

If this is true, then it sounds like their proxy server is having issues connecting to your IIS server (for any number of reasons) and is the one returning the error. I would ask the provider to check the logs on their router/firewall to see whether this is the case.

0

1st thing. is the server updates up to date?. Check the version of .net in the server and get it up to date.

Make sure that all the ports that the app uses are being forwarded for your isp

Also, check your Server Logs with this https://gallery.technet.microsoft.com/scriptcenter/Get-event-logs-errors-and-6871f163

Check for the most frequent errors and check if it's related.

Jose Ortega
  • 574
  • 2
  • 9