1

I have an MVC site which I have published to my server. It has two different roles for internal and external users. Externally (using www.oursite.com) the site works fine.

when we try to access it internally (http://SERVERNAME/application) it instantly throws a 404.0 error:

Detailed Error Information:
Module             IIS Web Core
Notification       MapRequestHandler
Handler            StaticFile
Error Code         0x80070002
Requested URL      http://localhost:80/OURMVCSITE
Physical Path      D:\OURMVCSITE
Logon Method       Anonymous
Logon User         Anonymous

Both sites point to the same directory (D:\OURMVCSITE) and run under the same app pool, with the same basic and advanced settings. I cannot see any differences other than one runs as an application under "Default Web Site" and the other runs under the "oursite.com" website.

The 404 is instant as well, even after I recycle the app pool, which makes the external url take a while to start again.

Where else can I look to diagnose / fix this?

I have enabled Failed Request Tracing for the Default Web Site, but the folder is empty. No failed request logs get created.

Thanks

Jake
  • 205
  • 1
  • 9
  • 1
    The fact that the handler is `StaticFile` indicates that your route definitions never kick in. Are you sure the site is an `application` and not just a `virtual directory`? You could enable `Failed request tracing` and compare the results for this app with the one that works. – Peter Hahndorf Jun 29 '15 at 08:46
  • Hi, yes it is an application, I have tried adding another application point to that directory under a different name and get the same result, were other applications under the default website work.. – Jake Jun 29 '15 at 21:23
  • "Failed request tracing" need a IIS server Role feature installation to work. – François Breton Sep 11 '20 at 15:24

0 Answers0