S
Samuel R. Neff
We have a problem with Web.config inheritance in two of our
applications. We have an old app which is poorly written and must be
in the root of the server. We have a newer app which runs from a
virtual directory. The apps are not related.
Old app web.config has:
<httpModules>
<add name="a" type="foo.a, foo" />
<add name="b" type="bar.b, bar" />
</httpModules>
So in the new app we get errors that it can't find assemblies "foo"
and "bar'. If we add this to the new app's web.config:
<httpModules>
<remove name="a" />
<remove name="b" />
</httpModules>
it works only on developer machines that have both apps--fails
otherwise (error removing module that doesn't exist).
The only solution we can think of is to create a fake app which has
empty modules with the same names as the old app's modules and install
that on the developer machines that only work on the new app. This
shoud work but is really ugly.
Are there any other options? (fixing the old app is not an option
right now due to resources and the time it would take to fix it and
it's only a problem in development, not testing or production).
Thanks,
Sam
applications. We have an old app which is poorly written and must be
in the root of the server. We have a newer app which runs from a
virtual directory. The apps are not related.
Old app web.config has:
<httpModules>
<add name="a" type="foo.a, foo" />
<add name="b" type="bar.b, bar" />
</httpModules>
So in the new app we get errors that it can't find assemblies "foo"
and "bar'. If we add this to the new app's web.config:
<httpModules>
<remove name="a" />
<remove name="b" />
</httpModules>
it works only on developer machines that have both apps--fails
otherwise (error removing module that doesn't exist).
The only solution we can think of is to create a fake app which has
empty modules with the same names as the old app's modules and install
that on the developer machines that only work on the new app. This
shoud work but is really ugly.
Are there any other options? (fixing the old app is not an option
right now due to resources and the time it would take to fix it and
it's only a problem in development, not testing or production).
Thanks,
Sam