I have a problem with IIS 7.5 at Windows Server 2008 configuration. I'm hosting an ASP.NET MVC application on separate application pool, configured with AppPoolIdentity and .NET 4.0 Framework.
The application is working normally for some time (few minutes) and after that I'm suddenly experiencing exceptions that looks like connected with IIS resources management. The problem disappears when I change AppPoolIdentity to "real" local system user credentials (local administrator). Maybe app pool recycling makes problems here? But it is configured to recycle every 1740 minutes and it fails sometimes after 5 minutes from its start...
I would like to be able to run the app without special requirements and permissions, as the app is quite simple and shouldn't really need it. I can provide more details if needed. But I must let you know that I don't have any real experience with IIS.
Problem details from application perspective
The application is working normally for some time and suddenly part of controllers start to throw an exception inside StructureMap:
ArgumentNullException: Trying to find an Instance of type [
MyType] Parameter name:
pluginType, Instance instance) +376
The type requested was registered correctly (and was resolved properly just a minute before the exception occured). I can't verify it is still registered, as
WhatDoIHave diagnostic method throws an exception, too:
NullReferenceException: Object reference not set to an instance of an object. in
StructureMap.Diagnostics.WhatDoIHaveWriter.writeInstance(InstanceRef instance) +133
Looks like StructureMap's internal cache gets corrupted somehow.