I have an aspx.net website running on the .net framework version 4.0, the website uses forms authentication, except for a small portion of the system, where the web services are kept, which has been configured to be accessible by all (using the location setting in the web.config file).
the application is setup on a windows 2008 server, IIS7.5, with it's own memory pool, configured for .NET 4.0. There is also a DefaultAppPool also configured, which I originally left configured for .NET 2.0.
I was investigating a problem with running one of my web services, in which an error 404 was returned whenever a function was called, I resolved this problem, however I noticed whenever I received the error, the .NET version returning the error was version 2.0, rather than version 4.0, that of the application pool it should be running in. I confirmed this behaviour by changing the settings of the DefaultAppPool to 4.0 as well, and the error was then being generated by the appropriate version.
IIS appears to have made a decision about which memory pool it should use, bypassing what I had configured for the aspx.net website.
has anybody else experienced a similar problem, am I going mad, is there a configuration option hidden somewhere that could justify this behaviour? (i.e. somewhere in machine.config)