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\Micr osoft.NET\Frame work\v2.0.50727 \Temporary ASP.NET
Files\root\1e59 722e\ddf93fc8\A pp_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="urlrewrit er" type=-"company.site.c ommon.urlrewrit er" />
</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 2 3179
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\Micr osoft.NET\Frame work\v2.0.50727 \Temporary ASP.NET
Files\root\1e59 722e\ddf93fc8\A pp_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="urlrewrit er" type=-"company.site.c ommon.urlrewrit er" />
</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
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\Micr osoft.NET\Frame work\v2.0.50727 \Temporary ASP.NET
Files\root\1e59 722e\ddf93fc8\A pp_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="urlrewrit er" type=-"company.site.c ommon.urlrewrit er" />
</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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 group/apache2)
ScriptAlias /php/ "c:/php/"
AddType application/x-httpd-php .php
Action application/x-httpd-php "/php/php.exe"
|
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:
pvPrep->SetHeader(pfc, "Instance-Id:", info->instance_id);
pvPrep->SetHeader(pfc, "Company-Id:", info->company_id);
pvPrep->SetHeader(pfc, "Primary:", info->hostname);
pvPrep->SetHeader(pfc, "Profile:", buffer);
|
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.
VB6 to VB.NET web project Port.
We wanted all the code to run under .NET
However we use an ISAPI filter. According to posts my Microsoft bods it is
not possible to write these in .NET.
|
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 http://my_machine_name/site) show problems when
refresh the page.
I guess some kind of javascript problems with the postback methods.
Someone has any idea how can i fix it?
Thanks
|
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 into the process, does each instance of
HttpApplication keep its own set of HttpModule instance or HttpModules are
shared among all HttpApplication instances?
2. In case of HttpApplication keep its own set of HttpModule, does the
HttpModule...
| |
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 loading the
httpmodule on web services within my site. I do not have direct
access to manipulate the module, so I need to figure out a way to
either enable/add the module on only certain pages, or a way to
disable a module on certain pages. Any...
|
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 is somewhat funny in that the server can send
arbitrary requests to the client in the RESPONSES to calls to its
webmethods)
|
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 assembly="CrystalDecisions.Web, Version=11.5.3300.0,
Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
<add assembly="CrystalDecisions.Web, Version=11.5.3700.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 supported on this platform."
error. BigJim has a nice post on the subject here:
http://bigjimindc.blogspot.com/2007/07/ms-kb928365-aspnet-requestheadersadd.html
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |