500.19 Error only in Web Garden mode

My ASP.NET web application works fine in IIS 7.5. But I want to make sure that he is ready to work in a web farm. So I turned on the web garden on my dev machine. (Set max workflows = 2 in the application pool.)

Clicking on the site seems to be going well, but for any AJAX request I get 500.19 errors. The error looks like this:

The requested page is not available because the corresponding configuration data for the page is incorrect.

It is not possible to add a duplicate entry of the error type with the combined key attributes 'statusCode, subStatusCode' respectively set to "404, -1"

In my web configuration, I have the following:

<system.webServer>
  <httpErrors>
    <error statusCode="404" path="Home/NotFound" />
  </httpErrors>

It looks good to me, and I need it. But for fun, I deleted the httpErrors section. Then I get:

Unable to connect to remote server

Of course, I looked at MS troubleshooting 500.19 . But I suppose the mistake is a red herring. The problem has something to do with my application pool or my code or something else, except that the message tells me. As I said, everything works fine with 1 Max Worker Process.

Any ideas?

UPDATE. , , , " ", , . , <error> web.config 500.19 ( ). , , , system.web, , , .

. , , , -?

+4
2

web.config, , , :

<httpErrors>
    <remove statusCode="404" subStatusCode="-1" />
    <error statusCode="404" path="http://google.com" responseMode="Redirect" />
</httpErrors>

IIS7 , :

"" statusCode, subStatusCode ' '404, -1'

+6

All Articles