Search code examples
asp.netiis-6windows-authenticationhttp-status-code-401

windows authentication error (only with a lot of data)


I have an ASP.net website running under IIS6. In one .aspx page the user has to enter data which is then stored into a database. The amount of data can vary. The project uses Windows Authentication.

So far everything worked, but once the data exceeds a certain amount, the website asks again for the credentials. When I click cancel a 401 error is returned, when I enter username/password a 12152 error (after some time of processing). I have tried it with IE6 and IE9 (also in IE8 mode). Any ideas what could be done?


Solution

  • After more than one month I was finally able to solve it: I had to increase the MaxHttpCollectionKeys-settings in the web.config file.

    <appSettings>
      <add key="aspnet:MaxHttpCollectionKeys" value="2000" />
    </appSettings>
    

    After this modification the error was gone.