473,398 Members | 2,368 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

adding httpmodule causes ambiguous confi

ok, so, i've got a web project in c#. I'm using IIS instead of dev server.
The application builds fine until I add an httpmodule I intend to use for
URL rewriting and it's entry in the web.config. the httpmodule is basically
a simple implementation as all I've done so far is to implement required
methods and to those I've added no code. the app builds but when I go to run
it, it says the module type urlrewriter is ambiguous. it says it exists in
the actual dir where i want it as well as some temp dir listed as
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temp orary ASP.NET
Files\root\1e59722e\ddf93fc8\App_Code.60b-dxku.DL even if i go to that dir
and delete all the files (which requires me to close vs as well as stop IIS)
i get the same error when starting to debug again. am i missing something or
doing something wrong?

my web.config entry is basically copied from the httpmodule samples i've
found online like
<httpmodules>
<add name="urlrewriter" type=-"company.site.common.urlrewriter" />
</httpmodules>

which seems to me to be about right.

if i remove that config line everything works fine but i get no rewriting

please help, been banging my head against a wall on this for days and cant
seem to find any answers
Nov 14 '07 #1
2 3162
Are you sure that u have no others httpModules with the same name in mashine
and global configs?

Try to add it with other name

--
WBR, Michael Nemtsev [.NET/C# MVP].
Blog: http://spaces.live.com/laflour

"Jimi Schacht" wrote:
ok, so, i've got a web project in c#. I'm using IIS instead of dev server.
The application builds fine until I add an httpmodule I intend to use for
URL rewriting and it's entry in the web.config. the httpmodule is basically
a simple implementation as all I've done so far is to implement required
methods and to those I've added no code. the app builds but when I go to run
it, it says the module type urlrewriter is ambiguous. it says it exists in
the actual dir where i want it as well as some temp dir listed as
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temp orary ASP.NET
Files\root\1e59722e\ddf93fc8\App_Code.60b-dxku.DL even if i go to that dir
and delete all the files (which requires me to close vs as well as stop IIS)
i get the same error when starting to debug again. am i missing something or
doing something wrong?

my web.config entry is basically copied from the httpmodule samples i've
found online like
<httpmodules>
<add name="urlrewriter" type=-"company.site.common.urlrewriter" />
</httpmodules>

which seems to me to be about right.

if i remove that config line everything works fine but i get no rewriting

please help, been banging my head against a wall on this for days and cant
seem to find any answers
Nov 14 '07 #2
Generally speaking if you want an httpmodule, its a good idea to compile it
into it's own assembly via a separate class library project. You should be
able to delete the files in the ASP.NET Temporary Files folder , rebuild your
project, and that will take care of your issue.

--Peter
http://www.eggheadcafe.com
unBlog: http://petesbloggerama.blogspot.com
BlogMetaFinder: http://www.blogmetafinder.com

"Jimi Schacht" wrote:
ok, so, i've got a web project in c#. I'm using IIS instead of dev server.
The application builds fine until I add an httpmodule I intend to use for
URL rewriting and it's entry in the web.config. the httpmodule is basically
a simple implementation as all I've done so far is to implement required
methods and to those I've added no code. the app builds but when I go to run
it, it says the module type urlrewriter is ambiguous. it says it exists in
the actual dir where i want it as well as some temp dir listed as
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temp orary ASP.NET
Files\root\1e59722e\ddf93fc8\App_Code.60b-dxku.DL even if i go to that dir
and delete all the files (which requires me to close vs as well as stop IIS)
i get the same error when starting to debug again. am i missing something or
doing something wrong?

my web.config entry is basically copied from the httpmodule samples i've
found online like
<httpmodules>
<add name="urlrewriter" type=-"company.site.common.urlrewriter" />
</httpmodules>

which seems to me to be about right.

if i remove that config line everything works fine but i get no rewriting

please help, been banging my head against a wall on this for days and cant
seem to find any answers
Nov 15 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Krista | last post by:
Hi everybody, I think my confi has some problems. Can you guys help me to see what is going on? i install Apache2.0.48 and Php4.3.4 in WinXP. I add some codes in httpd(inside apache...
0
by: Cybermedia Marketing | last post by:
I'm trying to convert an ISAPI filter to an httpmodule. The ISAPI filter added custom headers to the response which could later be accessed by the asp page. ISAPI Filter: ...
0
by: Peter Row | last post by:
Hi, Just in case anyone else has the following issue (unlikely but you never know) here is the solution I eventually found after I was threatening myself with a wipe and reload of my laptop. ...
7
by: nail | last post by:
Folks, I develop a HttpModule and it works correct, but one problem is occurs. After I register the httpmodule in the web.config, my pages (not testing http://localhost/site but...
2
by: walter | last post by:
Hi there, I know there is pool of HttpApplications, and for each request coming in, HttpRuntime will dedicate one from pool to serve the request. My questions are : 1. since HttpModule is plug...
4
by: Bac2Day1 | last post by:
I've got a HTTPMODULE that I need to be included on some pages within my site, but not others. This will allow security (the purpose of the module) on most parts of my site, but I need to bypass...
0
by: mpdoreilly | last post by:
Hi, I've a webservice that has several typical webmethods that clients call and get responses from. (Side note: The websriivce is actually to implement the server side of tr-069, the protocol...
0
by: Simon429 | last post by:
Hi, I got this really annoying problem. When I add a crystal report viewer into my asp.net Form, it automatically added duplicate assembly in my web.config as follows: <add...
0
by: msnews.microsoft.com | last post by:
Hi, I need to create and add custom headers to an ASP.NET 2.0 application. The case is simulation of an SSO-login in our dev/test environment. When I try to add headers I run into the "Not...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.