Windows Activation Hosting (WAS) and WCF

Published 28 January 7 3:32 PM | William

A few years ago, I took a job at Tiba Solutions . One of the coolest things about that job was working with Tobin Titus.  Tobin is pretty much a bad a55 at all sorts of things and one of the things he really rocked at was Remoting. I learned most of what I know from him. He has long since left Tiba as have I and moved on to greener pastures.  Currently he's at Microsoft.  Now that I've sucked up enough to Tobin hopefully I can get him to explain to me how to get my GD WCF service configured properly to run in IIS 7.0 under WAS.. So if I run appcmd.exe from the VS Command Line, this file is generated and all is good. If I create a new site and do this manually, it bombs on me telling me the target machine is actively refusing my connection. I can't see any difference for the life of me. Does appcmd.exe do something else critical that I'm missing?

<?xml version="1.0" encoding="utf-8" ?>
<
configuration>
<
system.applicationhost>
<
sites>
<
site name="CuckooClock" id="1">
<
bindings>
<
binding protocol="http" bindinginformation="*:80*"/>
<
binding protocol="net.msmq" bindinginformation="*"/>
<
binding protocol="net.tcp" bindinginformation="*"/>
<
binding protocol="net.pipe" bindinginformation="*"/>
</
bindings>
</
site>
</
sites>
</
system.applicationhost>
</
configuration>

Comments

# bill staples said on January 28, 2007 3:59 PM:

Look in eventvwr, you should see an error message from IIS related to your configuration error.

My guess is the issue is related to the fact that you haven't specified a root application for the site, or a root vdir for the application.  Both are required.  Every site must have a root application and every application must have at least one virtual directory.  See the XML configuration for the default site, as an example:

           <site name="Default Web Site" id="1">

               <application path="/">

                   <virtualDirectory path="/" physicalPath="%SystemDrive%\inetpub\wwwroot" />

               </application>

               <bindings>

                   <binding protocol="http" bindingInformation="*:80:" />

               </bindings>

           </site>

# Tobin said on February 3, 2007 12:48 AM:

Dude, I am just now reading this. I'll give you a hint. Posting about me on your blog is not the easiest way to get ahold of me!  You got my digits.  Use them!

BTW, thanks for the kind words but seriously, I didn't teach you anything.  You were and continue to be THE man.

Search

This Blog

Tags

Community

Archives

News

  • William G Ryan William Ryan Bill Ryan W.G. Ryan Charles Mark Carroll Charles M Carroll
    My Blog Juice Microsoft MVP
    Bill Ryan W.G. Ryan William Ryan
    Cuckooz' MySpace Page View Bill Ryan's profile on LinkedIn
    My Profile on Twitter
    Please note that this is my personal blog and the opinions expressed are my own. Also, comment moderation is about one of the least important things in my life so please keep that in mind. I can't vouch for the authenticity of any of the posters so please don't hold me accountable. And whatever you do, don't pretend to be Noted Option Strict Off expert and AspFriend Charles Mark Carroll when you post. Doing so will lead him to become apoplectic and write absurd accusatory posts about me that are as coherent and thought out as they are factually correct. He does a stellar job proving his reputation is well deserved and he doesn't need any help from you making himself look foolish. If I have to listen to him banging his spoon off of his high chair one more time, I'm going to burst into flames so please don't make that happen!

    My other sites

    Cool Stuff

    Book Stuff

    Security

    ORM

    Data Access

    Funny Stuff

    Compact Framework Stuff

    Web Casts

    My KnowledgeBase Articles

    My MVP Profile

    Design Patterns

    Performance

    Debugging

    Remoting

    My Fellow Authors

    My Books

    LINQ

    Misc

    Speech

    Syndication

    Email Notifications