473,395 Members | 1,530 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,395 software developers and data experts.

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\wwwroot\UrlRewrite_HttpModule2\Default. 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\UrlRewrite_HttpModule2\web. config
Config Source: 31: <remove name="ScriptModule"/>
32: <add name="UrlRewriter"
type="Intelligencia.UrlRewriter.RewriterHttpModule ,
Intelligencia.UrlRewriter"/>
33: <add name="ScriptModule" preCondition="managedHandler"
type="System.Web.Handlers.ScriptModule, System.Web.Extensions,
Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/></
modules>
My configration file contains the following sections
<configSections>
<section name="rewriter" requirePermission="false"
type="Intelligencia.UrlRewriter.Configuration.Rewr iterConfigurationSectionHandler,
Intelligencia.UrlRewriter"/>
......
httpModules>
<add name="UrlRewriter"
type="Intelligencia.UrlRewriter.RewriterHttpModule ,
Intelligencia.UrlRewriter"/>
<add name="ScriptModule" type="System.Web.Handlers.ScriptModule,
System.Web.Extensions, Version=3.5.0.0, Culture=neutral,
PublicKeyToken=31BF3856AD364E35"/></httpModules>
........
<modules runAllManagedModulesForAllRequests="true">
<remove name="ScriptModule"/><add name="UrlRewriter"
type="Intelligencia.UrlRewriter.RewriterHttpModule "/>
<add name="ScriptModule" preCondition="managedHandler"
type="System.Web.Handlers.ScriptModule, System.Web.Extensions,
Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/></
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\System32\inetsrv>appcmd.exe migrate config "Default Web
Site/UrlRewri
te_HttpModule2"
ERROR ( message:Configuration error
Filename: \\?\C:\inetpub\wwwroot\UrlRewrite_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 4652

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

Similar topics

0
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:...
0
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...
6
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...
62
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...
4
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...
14
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...
4
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...
4
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#...
6
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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
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...

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.