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:

> 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 received this message because you are subscribed to the Google Groups 
> "Castle Project Users" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/castle-project-users?hl=en.
> 

-- 
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/castle-project-users?hl=en.

Reply via email to