MIME types missing in IIS 7 for ASP.NET - 404.17 -


when getting newly configured windows 7 box, noticed asp.net turned off default. classical asp. getting 404.17 error web application. think it's because don't have "aspx" mime type. although that's guess. when turned them on under control panel > programs , features > turn windows features on or off, , restarted windows 7 machine, mime types never showed up. can check mime type have *.aspx pages, , tell me configuration in edit mode? other mime types missing asp.net extensions (ie: ashx, asax, etc...)? best way configure them all?

    error summary     http error 404.17 - not found     requested content appears script , not served static file handler.  ...  module: staticfilemodule notification: executerequesthandler handler: staticfile error code: 0x80070032 requested url: ... physical path: ... logon method: ntlm logon user: {domain}\{windows login}  ...  causes:  request matched wildcard mime map. request mapped static file handler. if there different pre-conditions, request map different handler.  ...  things can try:  if want serve content static file, add explicit mime map. 

fix:

i chose "isapi & cgi restrictions" after clicking server name (not site name) in iis manager, , right clicked "asp.net v4.0.30319" lines , chose "allow".

after turning on asp.net "programs , features > turn windows features on or off", must install asp.net windows command prompt. mime types don't ever show up, after doing command, noticed these extensions showed under iis web site "handler mappings" section of iis manager.

c:\>cd c:\windows\microsoft.net\framework64\v4.0.30319  c:\windows\microsoft.net\framework64\v4.0.30319>dir aspnet_reg*  volume in drive c windows  volume serial number 8ee6-5dd0   directory of c:\windows\microsoft.net\framework64\v4.0.30319  03/18/2010  08:23 pm            19,296 aspnet_regbrowsers.exe 03/18/2010  08:23 pm            36,696 aspnet_regiis.exe 03/18/2010  08:23 pm           102,232 aspnet_regsql.exe                3 file(s)        158,224 bytes                0 dir(s)  34,836,508,672 bytes free  c:\windows\microsoft.net\framework64\v4.0.30319>aspnet_regiis.exe -i start installing asp.net (4.0.30319). ..... finished installing asp.net (4.0.30319).  c:\windows\microsoft.net\framework64\v4.0.30319> 

however, still got error. if mentioned "fix", go away.

http error 404.2 - not found page requesting cannot served because of isapi , cgi restriction list settings on web server. 

Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c# - Copy ObservableCollection to another ObservableCollection -

All overlapping substrings matching a java regex -