Welcome to HostingForumz.com!
FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log in/Register/PasswordLog in/Register/Password

Server specific settings in web.config / Nested Comments i..

 
   Web Hosting Problem Solving Community! (Home) -> IIS RSS
Related Topics:
Problem with nested Virtual dir in IIS 6.0 on Win 2003 ser.. - Hi i have thi problem: Eg. I have a virtual dir called WebPortal and a another wich is under i have eg. an file but if i call the file from a file in WebPortal dir its says that the..

Setting up own web server - comments and advice sought ple.. - I'd really some advice on how to choose & set up a web server. I need to know what OS / to go for. We're going for our own, server because we need total control of it. I work in a small team of

IIS MMC to Specific Server from Command Line - Hello, I am looking for a way to use a command line to launch the IIS MMC so that it connects to a specified server. I can do this with most other MMCs using a command like This does not seem to..

assigning a specific site ID to a new virtual server in ii.. - Is there any way to assign a specific site ID to a new virtual server in IIS 6? I have a few that I have imported numbered 2-6 and just installed Services that has site ID 7. For my new virtual server I would like to assign site ID 8 with a..

IIS 6 401.1 error when accessing specific SQL Server view - Allright, this is the We have this ASP running on IIS 5. It accesses an SQL Server 2000 through a couples of views that gets the data from the works fine. the exactly same under IIS..
Next:  IIS: Controlling how absolute paths are evaluated in ASP applic..  
Author Message
Mike Gale

External


Since: Feb 19, 2008
Posts: 1



(Msg. 1) Posted: Tue Feb 19, 2008 4:10 pm
Post subject: Server specific settings in web.config / Nested Comments in web.co
Archived from groups: microsoft>public>inetserver>iis (more info?)

I'm trying to configure a web.config that has different settings on different
servers. (Staging versus live.)

My research indicated that there might be "site" and "machine" tags in
web.config that did this. Unfortunately they are not recognised by Visual
Studio 2008. (And neither is there an obvious alternative.) I did get a
message that it was possible but the poster didn't reply when I asked exactly
how it was done.

So I've written off that approach and am using comments to do half a job for
this.

Unfortunately comments in xml can't be nested so I tested the <![IGNORE[
directive which is part of XML. It allows nested comments but unfortunately
IIS 6 barfs when it sees it and crashes the web site!!

Is there a way to do this?

(NOTE: I have recently moved away from custom config handlers and am trying
the "out of the box" functionality, so I'm not asking about answers that
involve writing my own handlers!)

(Side note: I've found it impossible to post to these newsgroups via the
web interface for several weeks using IE. I'm currently using Firefox which
after multiple complaints about not finding cpmsftibpro01.dns.microsoft.com,
seems to have got through. Anyone got insight on what's failing?)

 >> Stay informed about: Server specific settings in web.config / Nested Comments i.. 
Back to top
Login to vote
Display posts from previous:   
   Web Hosting Problem Solving Community! (Home) -> IIS All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]