I\'ve setup a new .net 2.0 website on IIS 7 under Win Server 2k8 and when browsing to a page it gives me a 404.17 error, claiming that the file (default.aspx in this case) a
For me, my problem came because of a setting in my project's web.config file (and also the solution, once I understood the problem).
In my web.config file, we had these two lines in the system.webServer > handlers area:
<remove name="WebServiceHandlerFactory-ISAPI-2.0" />
<add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
Notice the alternative handler has the attribute 'preCondition="integratedMode"'. So, I had to change my AppPool to use Integrated instead of Classic for my pipeline mode setting (which is the opposite of what the solutions above told me to do).
http activation under WCF Services in turn on / off windows features resolved the issue.
For me this got resolved by setting 32 bit application to true.
For me it was HTTP Activation was not checked in the server features.
Non of the above worked for me. Our server is 64 bit so setting the Application to allow 32 bit applications worked for us:
I think this was because the web application was compiled for 32 bit only.
%windir%\Microsoft.NET\Framework64\v2.0.50727\aspnet_regiis.exe -i
worked for me after getting "An attempt was made to load a program with an incorrect format ..." with the 32 framework
maybe ill save u one more sec googling