Hi,
I get the following error when I try to access *.svc file
"The contract name 'WCFService.IHello1' could not be found in the list of
contracts implemented by the service 'HelloService'. "
Stack Trace:
[InvalidOperationException: The contract name 'WCFService.IHello1' could not
be found in the list of contracts implemented by the service 'HelloService'.]
System.ServiceModel.Description.ConfigLoader.LookupContract(String
contractName, String serviceName) +4321718
System.ServiceModel.Description.ConfigLoader.LoadServiceDescription(ServiceHostBase
host, ServiceDescription description, ServiceElement serviceElement, Action`1
addBaseAddress) +175
System.ServiceModel.ServiceHostBase.ApplyConfiguration() +146
System.ServiceModel.ServiceHostBase.InitializeDescription(UriSchemeKeyedCollection baseAddresses) +182
System.ServiceModel.ServiceHost..ctor(Type serviceType, Uri[]
baseAddresses) +236
System.ServiceModel.Activation.ServiceHostFactory.CreateServiceHost(Type
serviceType, Uri[] baseAddresses) +28
System.ServiceModel.Activation.ServiceHostFactory.CreateServiceHost(String
constructorString, Uri[] baseAddresses) +323
System.ServiceModel.HostingManager.CreateService(String
normalizedVirtualPath) +698
System.ServiceModel.HostingManager.ActivateService(String
normalizedVirtualPath) +31
System.ServiceModel.HostingManager.EnsureServiceAvailable(String
normalizedVirtualPath) +445
[ServiceActivationException: The service '/WCFService/FirstWCFService.svc'
cannot be activated due to an exception during compilation. The exception
message is: The contract name 'WCFService.IHello1' could not be found in the
list of contracts implemented by the service 'HelloService'..]
System.ServiceModel.HostingManager.EnsureServiceAvailable(String
normalizedVirtualPath) +962
System.ServiceModel.ServiceHostingEnvironment.EnsureServiceAvailableFast(String relativeVirtualPath) +419
System.ServiceModel.Activation.HostedHttpRequestAsyncResult.HandleRequest()
+260
System.ServiceModel.Activation.HostedHttpRequestAsyncResult.BeginRequest()
+760
System.ServiceModel.Activation.HttpHandler.ProcessRequest(HttpContext
context) +43
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +154
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&
completedSynchronously) +64
Any ideas?
Sapnil


