Windows Activation Hosting (WAS) and WCF

Published Sun, Jan 28 2007 15:32 | 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

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