Having an issue with WCF example

Posts   
 
    
tomahawk
User
Posts: 169
Joined: 02-Mar-2005
# Posted on: 07-Mar-2008 05:18:33   

I successfully got the WCF example running WITHOUT IIS.

I am now attempting to run the sample via IIS. I've followed the instructions in the readme, but get the following error when accessing localhost/WCFService/CustomerService.svc.

Server Error in '/WCFService' Application. The type 'SD.LLBLGen.Pro.Examples.WCF.Service.NorthwindService', provided as the Service attribute value in the ServiceHost directive could not be found.

I've copied all DLLs found in the Service\bin\debug directory into my virtual path, and the CustomerService.svc file and Web.config from the IIS wsHTTPBindings folder.

Any help? I've got .net frameworks 2.0, 3.0, and 3.5 installed.

Walaa avatar
Walaa
Support Team
Posts: 14946
Joined: 21-Aug-2005
# Posted on: 07-Mar-2008 10:08:13   

I've copied all DLLs found in the Service\bin\debug directory into my virtual path

The binaries should be copied to the virtual path\bin folder.

(EDIT) Attached is my working solution, please try to deploy it and check if it works.

tomahawk
User
Posts: 169
Joined: 02-Mar-2005
# Posted on: 07-Mar-2008 21:51:43   
  1. thank you, I did not have the binaries in a bin subdirectory. However, is I add a Web Reference to this service from a project I get build errors from the generated Reference.cs file. Try it out and you'll see what I mean.

-- EDIT: I see from another post that generating proxy stubs are not really the way to go, using an interface is best, so no worries, I can do that.

  1. Can you elaborate on how to get the binary encoding going? I've copied the alternate config files into their appropriate places but get an exception when attempting to create the channel factory.

"HTTP could not register URL http://+:80/Temporary_Listen_Addresses/028363e2-b357-43df-9b98-ad85afa0b834/ because TCP port 80 is being used by another application."

I have a feeling that I somehow have to change ports, but when I add a port after localhost in the config files I still get the error.

Walaa avatar
Walaa
Support Team
Posts: 14946
Joined: 21-Aug-2005
# Posted on: 10-Mar-2008 10:59:51   

Please check the following link: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2782499&SiteID=1

If it doesn't help you, please post the config files (service and client).

mattsmith321 avatar
Posts: 146
Joined: 04-Oct-2004
# Posted on: 13-Mar-2008 07:46:21   

Server Error in '/WCFService' Application. The type 'SD.LLBLGen.Pro.Examples.WCF.Service.NorthwindService', provided as the Service attribute value in the ServiceHost directive could not be found.

I am also getting this message. I took a look at Walaa's attachment but it didn't seem to be any different that what I downloaded from the Examples site.

Walaa avatar
Walaa
Support Team
Posts: 14946
Joined: 21-Aug-2005
# Posted on: 13-Mar-2008 10:48:52   

You are hosting in IIS, right? Please make sure the binaries are in the virtual path\bin folder.

mattsmith321 avatar
Posts: 146
Joined: 04-Oct-2004
# Posted on: 13-Mar-2008 15:09:59   

Walaa wrote:

You are hosting in IIS, right? Please make sure the binaries are in the virtual path\bin folder.

That was it. You'd think that as long as I've been doing ASP.NET I would have realized I needed to put the assemblies in the \bin folder. However, in my defense, the directions were a little lite there flushed

Thanks!