Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Wcf Integration problem
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
RyanL  
View profile  
 More options Feb 21 2012, 4:03 pm
From: RyanL <rlangto...@gmail.com>
Date: Tue, 21 Feb 2012 13:03:30 -0800 (PST)
Local: Tues, Feb 21 2012 4:03 pm
Subject: Wcf Integration problem
I'm trying to use Castle.Facilities.WcfIntegration.
It works great when debugging in Visual Studio.  I am then able to
connect to http://localhost:53349/ServiceName.svc?wsdl.  However, once
I publish and deploy to IIS I cannot connect to it (using
http://localhost:95/ServiceName.svc?wsdl.  I get the following error:

Error: Cannot obtain Metadata from http://localhost:95/ServiceName.svc?wsdl
If this is a Windows (R) Communication Foundation service to which you
have access, please check that you have enabled metadata publishing at
the specified address.  For help enabling metadata publishing, please
refer to the MSDN documentation at http://go.microsoft.com/fwlink/?LinkId=65455.WS-Metadata
Exchange Error    URI: http://localhost:95/ServiceName.svc?wsdl
Metadata contains a reference that cannot be resolved: 'http://
localhost:95/ServiceName.svc?wsdl'.    The remote server returned an
unexpected response: (405) Method Not Allowed.    The remote server
returned an error: (405) Method Not Allowed.HTTP GET Error    URI:
http://localhost:95/ServiceName.svc?wsdl    There was an error
downloading 'http://localhost:95/ServiceName.svc?wsdl'.    The request
failed with HTTP status 404: Not Found.

Here is my installer:

    public class WcfServiceInstaller:IWindsorInstaller
    {
            public void Install(IWindsorContainer container,
IConfigurationStore store)
            {
                var returnFaults = new ServiceDebugBehavior
                                       {

IncludeExceptionDetailInFaults = true,
                                           HttpHelpPageEnabled = true
                                       };
                var metadata = new ServiceMetadataBehavior
{HttpGetEnabled = true};

                container.AddFacility<WcfFacility>()
                            .Register(

Component.For<IServiceBehavior>().Instance(returnFaults),

Component.For<IServiceBehavior>().Instance(metadata),
                                Component.For<IMyService>()
                                .Named("MyService")
                                .ImplementedBy<MyService>()
                                .DependsOn(
                                    Property.ForKey("number").Eq(42))
                                );
            }
    }

And my Svc file:

<% @ServiceHost Service="MyService"
        Factory="Castle.Facilities.WcfIntegration.DefaultServiceHostFactory,
Castle.Facilities.WcfIntegration" %>

Here is my powershell deploy to set up the app pool and site.

                .$env:SystemRoot\System32\inetsrv\appcmd.exe add apppool -Name:
$apppoolname -managedRuntimeVersion:v4.0
                .$env:SystemRoot\System32\inetsrv\appcmd.exe add site /name:
$sitename /bindings:http/*:95: /physicalPath:$targetpath

Thanks for any assistance.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Craig Neuwirt  
View profile  
 More options Feb 22 2012, 8:08 am
From: Craig Neuwirt <cneuw...@gmail.com>
Date: Wed, 22 Feb 2012 07:08:16 -0600
Local: Wed, Feb 22 2012 8:08 am
Subject: Re: Wcf Integration problem
Is it possible to send me a unit test of solution that I can run?

On Feb 21, 2012, at 3:03 PM, RyanL wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
RyanL  
View profile  
 More options Feb 22 2012, 10:27 am
From: RyanL <rlangto...@gmail.com>
Date: Wed, 22 Feb 2012 07:27:10 -0800 (PST)
Local: Wed, Feb 22 2012 10:27 am
Subject: Re: Wcf Integration problem
I believe this may be a problem with IIS.  It runs locally in debug.
First, I did need to install WCF in IIS, following the instructions in
this article: http://www.dotnetthoughts.net/2010/04/23/deploying-wcf-service-in-iis...
Now, I get a new error about 'Castle.Core' assembly being built by a
runtime newer than the loaded runtime.  In IIS my site is using .NET
framework v4.0, so I'm not sure what is causing that problem.

Thanks for any assistance.

Error:
Could not load file or assembly 'Castle.Core' or one of its
dependencies. This assembly is built by a runtime newer than the
currently loaded runtime and cannot be loaded.

On Feb 22, 7:08 am, Craig Neuwirt <cneuw...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
RyanL  
View profile  
 More options Feb 22 2012, 12:09 pm
From: RyanL <rlangto...@gmail.com>
Date: Wed, 22 Feb 2012 09:09:36 -0800 (PST)
Local: Wed, Feb 22 2012 12:09 pm
Subject: Re: Wcf Integration problem
Ok that last one I was just using the wrong Application Pool (and
hence the wrong .NET framework).
Now I get a new error that appears to me to be a problem with the
config that Castle constructs?  I follow everything the same as the no
config demo, as you can see in my code posted previously.

Error:
Handler "svc-Integrated" has a bad module "ManagedPipelineHandler" in
its module list</h3>  </fieldset> </div> <div class="content-
container">  <fieldset><legend>Detailed Error Information</legend>
<div id="details-left">    <table border="0" cellpadding="0"
cellspacing="0">     <tr class="alt"><th>Module</th><td>IIS Web Core</
td></tr>     <tr><th>Notification</th><td>ExecuteRequestHandler</td></
tr>     <tr class="alt"><th>Handler</th><td>svc-Integrated</td></
tr>     <tr><th>Error Code</th><td>0x8007000d</td></tr>         </
table>   </div>   <div id="details-right">    <table border="0"
cellpadding="0" cellspacing="0">     <tr class="alt"><th>Requested
URL</th><td>http://localhost:95/MyService.svc?wsdl</td></tr>
<tr><th>Physical Path</th><td>C:\_APPLICATION\BTLRSPLY.Local
\WebRoot.Wcf\SapNotificationService.svc</td></tr>     <tr
class="alt"><th>Logon Method</th><td>Anonymous</td></tr>
<tr><th>Logon User</th><td>Anonymous</td></tr>         </table>
<div class="clear"></div>   </div>  </fieldset> </div> <div
class="content-container">  <fieldset><legend>Most likely causes:</
legend>   <ul>         <li>Managed handler is used; however, ASP.NET is not
installed or is not installed completely.</li>    <li>There is a
typographical error in the configuration for the handler module list.</
li> </ul>  </fieldset> </div> <div class="content-container">
<fieldset><legend>Things you can try:</legend>   <ul>   <li>Install
ASP.NET if you are using managed handler.</li>    <li>Ensure that the
handler module's name is specified correctly. Module names are case-
sensitive and use the format
modules="StaticFileModule,DefaultDocumentModule,DirectoryListingModule".</
li> </ul>  </fieldset> </div>   <div class="content-container">
<fieldset><legend>Links and More Information</legend>   IIS core does
not recognize the module.

On Feb 22, 9:27 am, RyanL <rlangto...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
RyanL  
View profile  
 More options Feb 22 2012, 12:14 pm
From: RyanL <rlangto...@gmail.com>
Date: Wed, 22 Feb 2012 09:14:34 -0800 (PST)
Local: Wed, Feb 22 2012 12:14 pm
Subject: Re: Wcf Integration problem
Google is my friend.
Sorry to post so much here, these were all IIS issues.
Resolved with the following:
http://wishmesh.com/2010/08/iis-7-5-error-handler-pagehandlerfactory-...

On Feb 22, 9:27 am, RyanL <rlangto...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Craig Neuwirt  
View profile  
 More options Feb 22 2012, 12:50 pm
From: Craig Neuwirt <cneuw...@gmail.com>
Date: Wed, 22 Feb 2012 11:50:03 -0600
Local: Wed, Feb 22 2012 12:50 pm
Subject: Re: Wcf Integration problem
I'm sure you're not the only one having these issues so post away!

On Feb 22, 2012, at 11:14 AM, RyanL wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »