If that's the case, try running to repair your ASP.NET installation and set up all of the appropriate ISAPI extension mappings.
Open visual studio command prompt and type this command
username is usually aspnet
if this doesn't work than use this command
alternatively you can copy and paste this command into windows command prompt
this will fix your problem