I want to know how many wcf services can be added to asp.net 4.0 web application. The reason is that when I add a 2nd wcf service, it gives error as,
There was an error downloading 'http://localhost:49646/Service1.svc'.
The request failed with the error message:
--
<html>
<head>
<title>The type 'DisputeSuite.Web.DisputeManager.Service1', provided as the Service attribute value in the ServiceHost directive, or provided in the configuration element system.serviceModel/serviceHostingEnvironment/serviceActivations could not be
found.</title>
yzhang738
Member
288 Points
228 Posts
How many wcf service can be added to asp.net 4.0 web application
Apr 24, 2012 07:53 PM|LINK
Hi,
I want to know how many wcf services can be added to asp.net 4.0 web application. The reason is that when I add a 2nd wcf service, it gives error as,
There was an error downloading 'http://localhost:49646/Service1.svc'.
The request failed with the error message:
--
<html>
<head>
<title>The type 'DisputeSuite.Web.DisputeManager.Service1', provided as the Service attribute value in the ServiceHost directive, or provided in the configuration element system.serviceModel/serviceHostingEnvironment/serviceActivations could not be found.</title>
Thanks
march11
Contributor
3017 Points
1367 Posts
Re: How many wcf service can be added to asp.net 4.0 web application
Apr 24, 2012 08:12 PM|LINK
I don't think there is a logical limit. I have 15 running in 3.5 framework.
Have you checked your port setting and refreshed the bindings to the service?
yzhang738
Member
288 Points
228 Posts
Re: How many wcf service can be added to asp.net 4.0 web application
Apr 24, 2012 08:56 PM|LINK
How to checked the port setting and refreshed the bindings to the service?
march11
Contributor
3017 Points
1367 Posts
Re: How many wcf service can be added to asp.net 4.0 web application
Apr 25, 2012 12:36 PM|LINK
Check out this video it will give you some direction....
http://www.asp.net/web-forms/videos/how-do-i/how-do-i-create-and-call-a-simple-web-service-in-aspnet
yzhang738
Member
288 Points
228 Posts
Re: How many wcf service can be added to asp.net 4.0 web application
Apr 25, 2012 08:22 PM|LINK
This is solved. The reason is old asp.net web project is 2.0 and not work with wcf. After recreating the web project in 4.0, it is working.