PDA

View Full Version : 404 not found on WCF service


Fiktivejens
07-01-2008, 09:30 AM
I have deployed a WCF service to the DASP server, but when i try to access it, I get a 404 not found error... Anybody else seen this? Any ideas?

Fiktivejens

FlyTheBlueSky
07-03-2008, 02:44 AM
Look around for WCF posts in this forum. There is one post that relates to 404 problems and there are a few that relate to general config issues.

FlyTheBlueSky
07-07-2008, 09:02 AM
Sorry dude. Try this post in the ASP.NET 2.0 forum:

#1: Rig the ServiceHost like this (this is a show stopper):
community.discountasp.net/default.aspx?f=24&m=16709&g=22958#m22958 (http://community.discountasp.net/default.aspx?f=24&m=16709&g=22958#m22958)

#2: Disable performance counters (this is a show stopper).
community.discountasp.net/default.aspx?f=33&m=23937 (http://community.discountasp.net/default.aspx?f=33&m=23937)

#3: If you want to use SSL, with Windows authentication, try this:
community.discountasp.net/default.aspx?f=33&m=25075 (http://community.discountasp.net/default.aspx?f=33&m=25075)

#4: Also read this:
community.discountasp.net/default.aspx?f=24&m=21726&g=21924#m21924 (http://community.discountasp.net/default.aspx?f=24&m=21726&g=21924#m21924)

Getting WCF config to work was pretty much a nightmare (it's designed for people who live off pizza's slid to them under the door every 12 hours)... good luck.

CodeArt
07-07-2008, 09:23 AM
Hi,


I am having exactly the same problem; my WCF service works perfectly on my local IIS but when deployed to my DASP server, I get error 404 when trying to access it. I've had a look round for the post referred to by FlyTheBlueSky but couldn't find what they were referring to.


I have configured my service to use a Factory to resolve the multiple header issue discussed in various posts and I have included logging within this code and I am certain that the factory is being called. I can therefore only assume that it is some form of configuration problem but being fairly new to WCF, I am rather stuck. If anybody can make any suggestions, I would be most grateful.


Many thanks,


Ben

CodeArt
07-08-2008, 09:04 AM
Many thanks for your reply; I'll work my way through your suggestions and will let you know how I get on.


Thanks again for taking the time to reply,


Ben

CodeArt
07-09-2008, 08:05 AM
Hi,

Well, I have finally got it working :)

In case anybody else reads this post, I followed the instructions but with two minor changes/observations:


1) It is crucial that in the service factory (in rigging #1 and mentioned in #4), you supply the full URL of the service when creating the ServiceHost object2) I modified web.config to only disable the performance counters and did not use the workflow persistance and global.asax(in#2).

Thanks again for your help.

Ben