473,796 Members | 2,464 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Issues with Web.config in IIS 7 (Vista) and Modules

Hi,
I'm using UrlRewriter.NET in my project which is causing problems when
in Vista (same code works fine on Windows XP). I'm going by the
example in Scott's Blog http://weblogs.asp.net/scottgu/archi...h-asp-net.aspx.
In Vista when I press F5 or Control F5 I get an error message saying

HTTP Error 500.19 - Internal Server Error
Description: The requested page cannot be accessed because the related
configuration data for the page is invalid.

Error Code: 0x800700b7
Notification: BeginRequest
Module: IIS Web Core
Requested URL: http://localhost:80/UrlRewrite_HttpModule2/Default.aspx
Physical Path: C:\inetpub\wwwr oot\UrlRewrite_ HttpModule2\Def ault.aspx
Logon User: Not yet determined
Logon Method: Not yet determined
Handler: Not yet determined
Config Error: Cannot add duplicate collection entry
Config File: \\?\C:\inetpub\ wwwroot\UrlRewr ite_HttpModule2 \web.config
Config Source: 31: <remove name="ScriptMod ule"/>
32: <add name="UrlRewrit er"
type="Intellige ncia.UrlRewrite r.RewriterHttpM odule,
Intelligencia.U rlRewriter"/>
33: <add name="ScriptMod ule" preCondition="m anagedHandler"
type="System.We b.Handlers.Scri ptModule, System.Web.Exte nsions,
Version=3.5.0.0 , Culture=neutral , PublicKeyToken= 31BF3856AD364E3 5"/></
modules>
My configration file contains the following sections
<configSections >
<section name="rewriter" requirePermissi on="false"
type="Intellige ncia.UrlRewrite r.Configuration .RewriterConfig urationSectionH andler,
Intelligencia.U rlRewriter"/>
......
httpModules>
<add name="UrlRewrit er"
type="Intellige ncia.UrlRewrite r.RewriterHttpM odule,
Intelligencia.U rlRewriter"/>
<add name="ScriptMod ule" type="System.We b.Handlers.Scri ptModule,
System.Web.Exte nsions, Version=3.5.0.0 , Culture=neutral ,
PublicKeyToken= 31BF3856AD364E3 5"/></httpModules>
........
<modules runAllManagedMo dulesForAllRequ ests="true">
<remove name="ScriptMod ule"/><add name="UrlRewrit er"
type="Intellige ncia.UrlRewrite r.RewriterHttpM odule"/>
<add name="ScriptMod ule" preCondition="m anagedHandler"
type="System.We b.Handlers.Scri ptModule, System.Web.Exte nsions,
Version=3.5.0.0 , Culture=neutral , PublicKeyToken= 31BF3856AD364E3 5"/></
modules>

So it complains that we have duplicate module sections? Any idea how I
can enable Integrated ..NET mode on this? I tried using

C:\Windows\Syst em32\inetsrv>ap pcmd.exe migrate config "Default Web
Site/UrlRewri
te_HttpModule2"
ERROR ( message:Configu ration error
Filename: \\?\C:\inetpub\ wwwroot\UrlRewr ite_HttpModule2 \web.config
Line Number: 15
Description: Cannot add duplicate collection entry
.. )

Which also says the same thing. Can anyone please tell me how I can
get this working in IIS7 on Vista Ultimate?

Thx
Maz
Mar 20 '08 #1
0 4669

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

Similar topics

0
1170
by: Kammy | last post by:
I am on Solaris 2.9. I simply ran "configure" and I got this error message: config.status:671: creating Makefile.pre config.status:671: creating Modules/Setup.config config.status:20: error: cannot find input file: Modules/Setup.config.in There is nothing in the Modules directory. I also noticed that
0
1668
by: Simon John | last post by:
I have a program that consists of one main module and lots of small sub-modules. In the main module I open a text file and grep for a language setting, this language setting will then be used as the module name of a config file to import. E.g. "Language=en" means config_en.py is imported as config, "Language=fr" means config_fr.py is imported as config....
6
4609
by: eric.olstad | last post by:
I'm pullin my hair out here. I've created a login page that uses Forms Authentication. Initially, it loads the types of authentication methods from a database and asks the user to select the auth method from a drop down list. Each method corresponds to an external module (assembly) that is loaded using reflection and accessed using a common interface. The modules work, I know that. The issues come after I log in. After logging in, I...
62
5077
by: Tony Ciconte | last post by:
I have a rather complex commercial Acc2003 application (tab controls, 50K+ lines of VBA code, etc.) that will not run well at all on Windows Vista Ultimate. I have seen posts indicating that Acc2003 MDBs should work on Vista. However, our particular file has too many problems to be viable on a Vista platform. Even converting it to an Acc2007 accdb file has no positive effect. I realize that Vista is new and should be avoided like the...
4
2319
by: Viviana Vc | last post by:
Hi all, I've read the WindowsVistaUACDevReqs.doc documentation and I have done different small tests on Vista to understand the bahaviour and now I have a few questions. 1) If I create a dummy console application that creates a file in Program Files directory, this one will succeed and will create the file b/c of the virtualization. But, if I do the following call in a console window (a.exe contains just
14
2097
by: Stephany Young | last post by:
Even though I had my roots and highlights redone just a few days ago, I don't understand why I appear to be having an ongoing blond moment. Is it just me or do others among you not 'get' how to make C# and VB.Net applications play nicely with the the UAC on Vista. I have read and reread everything I can find on UAC, 'strong-naming' of assemblies, 'authenticode signing' of assemblies and, even though I'm not your average thicko by any...
4
1389
by: darrel | last post by:
Looks like we're getting Vista soon. Alas, we're still maintaining a few apps in 1.1 using VS.2003. Are there any issues? Does it run on Vista? I found this which appers that MS doesn't SUPPORT it, but that's not really an issue...as long as it runs. http://msdn2.microsoft.com/en-us/vs2005/aa948854.aspx
4
2234
by: =?Utf-8?B?dmlwZXJ4MTk2Nw==?= | last post by:
We are having an issue with an application we are developing. We have a Legacy COM DLL in C++ that we have converted to Visual Studio 2008. This COM DLL has methods that are calling Managed C# assemblies as pass thru to support legacy applications in an effort to move our code to the new Code base. Our COM Object can be instantiated on Windows XP in any COM supported environment using Visual C++, Visual Basic, ASP.NET or ASP and works...
6
7601
by: josequinonesii | last post by:
I've searched, I've read, I've tested and re-read numerous post but to no avail yet... Quite simply, the settings I've applied to my httpd.conf, httpd-vhost.conf and my hosts files simply does not work. Please review my work and let me know if you see that one little thing that is throwing me for a loop. HTTPD.CONF # # This is the main Apache HTTP server configuration file. It contains the # configuration directives that give the...
0
9680
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, 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...
0
10230
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10012
tracyyun
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...
1
7548
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 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...
0
5442
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...
0
5575
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4118
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3731
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2926
bsmnconsultancy
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...

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.