Re: Error adding httpModule

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: John Saunders (john.saunders)
Date: 04/01/04


Date: Thu, 1 Apr 2004 15:05:20 -0500


"Lori McDonald" <lori@nospam.nospam> wrote in message
news:0F662320-8EEF-4265-A017-F46EDF8C0D73@microsoft.com...
> I have an httpModule that I am adding in the web.config file to implement
roles based authentication. It is working well.
>
> However, I have just created a test application within my main www
application. I wanted the test application to be a standalone website that
I can refer my client to to review new work we do. The main www webiste is
working fine, but the website in the test folder is giving me the following
configuration error:
>
> Description: An error occurred during the processing of a configuration
file required to service this request. Please review the specific error
details below and modify your configuration file appropriately.
>
> Parser Error Message: The module 'SetIdentity' is already in the
application and cannot be added again
>
> I am guessing that the test application is somehow "inheriting" the
httpModule from the www application, however, I don't understand why it
would because I created a separate application in IIS.
>
> Any ideas how to fix this? I would rather not change the web.config file
because I want it to be an identical copy of the www application.

It's a known bug. The only fix is to put a copy of the module in the
sub-applications bin folder.

-- 
John Saunders
John.Saunders at SurfControl.com


Relevant Pages

  • Re: ADFS System.Web.Security.SingleSignOn.WebSsoConfigurationExcep
    ... a configuration section defined for the websso section in order for it to be ... I am wondering if it might be related to your theory that the httpmodule ... The ADFS Web Agent for Claims Aware applications is installed. ...
    (microsoft.public.windows.server.active_directory)
  • Re: Error adding httpModule
    ... > "Lori McDonald" wrote in message ... > I can refer my client to to review new work we do. ... An error occurred during the processing of a configuration ... > httpModule from the www application, however, I don't understand why it ...
    (microsoft.public.dotnet.framework.aspnet)
  • RE: Insert into instead of add to the HttpModules pipeline
    ... Re-writing the config file at runtime seems mighty tempting but I tried ... a config section to my HttpModule. ... Also, in .NET 2.0, it provide a set of configuration API that can help us ... Microsoft MSDN Online Support Lead ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: HTTPModule does not run
    ... the component works very well on the development machines but not on the ... Windows 2003 server. ... >> I wrote an HTTPModule to log errors from my application. ... Is there any type of configuration needed ...
    (microsoft.public.dotnet.framework.aspnet)
  • Postback error after using HttpModule
    ... I develop a HttpModule and it works correct, ... After I register the httpmodule in the web.config, ... Someone has any idea how can i fix it? ...
    (microsoft.public.dotnet.framework.aspnet)