AlexAr

Hi,

I try to run SDK sample (Microsoft.ServiceModel.Samples.CalculatorService).

and get the following error (copied from event log):

Event Type: Error
Event Source: System.ServiceModel
Event Category: WebHost
Event ID: 3
Date: 30/06/2006
Time: 14:39:07
User: HOST\ASPNET
Computer: HOST
Description:
WebHost failed to process request
Sender Information: System.ServiceModel.Activation.HostedHttpModuleRequestAsyncResult/20670010
Exception: System.ServiceModel.ServiceActivationException: The type 'Microsoft.ServiceModel.Samples.CalculatorService', provided as the Service attribute value in the ServiceHost directive could not be found. ---> System.InvalidOperationException: The type 'Microsoft.ServiceModel.Samples.CalculatorService', provided as the Service attribute value in the ServiceHost directive could not be found.
at System.ServiceModel.Activation.ServiceHostFactory.System.ServiceModel.Activation.IServiceHostFactory.CreateServiceHost(String constructorString, Uri[] baseAddresses)
at System.ServiceModel.ServiceHostingEnvironment.HostingManager.CreateService(String processedVirtualPath)
at System.ServiceModel.ServiceHostingEnvironment.HostingManager.ActivateService(String processedVirtualPath)
at System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String processedVirtualPath)
--- End of inner exception stack trace ---
at System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String processedVirtualPath)
at System.ServiceModel.Activation.HostedHttpRequestAsyncResult.HandleRequest()
at System.ServiceModel.Activation.HostedHttpRequestAsyncResult.BeginRequest()
Process Name: aspnet_wp
Process ID: 28948

-------------------

Files are in C:\Inetpub\wwwroot\servicemodelsamples,

service itself is in C:\Inetpub\wwwroot\servicemodelsamples\bin\service.dll

Platform : IIS 5.1, XP SP2

Any ideas

Thanks.



Re: Windows Communication Foundation (Indigo) WCF sample hosted in IIS - error

Madhu Ponduru -MSFT

assembly should be in bin folder (can you please check assembly is in bin folder or not,by default it will be in debug\bin or release\bin folder)

please check .svc file syntax is right or not

http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=514443&SiteID=1

-Thank you

Madhu






Re: Windows Communication Foundation (Indigo) WCF sample hosted in IIS - error

AlexAr

Somehow virtual directory got associated with .Net 1.1

After running "once-step" installation procedure batch files (clean-up and reinstall) everything works.





Re: Windows Communication Foundation (Indigo) WCF sample hosted in IIS - error

Paul Ericksen

I had the same issue, I first downloaded and ran the fix it, which got rid of the 405 error, but then also had issue of it not activating the service (ServiceActivationException -- for anyone doing a search on this error I hope you found this post and it helped!)

The cleanup / setup batch files referenced above are found in...

<WCFSamplesDirectory>\TechnologySamples\Setup\CS






Re: Windows Communication Foundation (Indigo) WCF sample hosted in IIS - error

Alienka

I had exactly the same problem. And at the bottom of the error page it said it was using ASP.NET 2.0 so I thought the problem was with Web.config. I also performed all the steps exactly as the instruction said... Arrgh! It took me 3 hours to find your solution that simply running clean scripts and then setup scripts help... But it works now. Thanks a lot!



Re: Windows Communication Foundation (Indigo) WCF sample hosted in IIS - error

Paul B M

This worked for me also. After installing the samples and attempting to run the solution I had the same error. Running:

...\TechnologySamples\Setup\CS\cleanupvroot.bat

and then:

...\TechnologySamples\Setup\CS\setupvroot.bat

has fixed it.

Thanks.