The type 'Csla.Server.Hosts.WcfPortal', provided as the Service attribute value in the ServiceHost directive could not be found
The type 'Csla.Server.Hosts.WcfPortal', provided as the Service attribute value in the ServiceHost directive could not be found Old forum URL: forums.lhotka.net/forums/t/8433.aspx
jmcphers posted on Thursday, January 28, 2010I have seen one other post on this topic but the resoulition there did not resolve my issue.
When I display the web page on my development Windows XP machine running IIS 6 using http://localhost/wcfhost/wcfportal.svc the page displays as expected.
After moving the inforamtion to my windows 2008 server running IIS 7 and executing the http://localhost/wcfhost/wcfportal.svc statement I receive the error message listed in the subject message.
I have double checked that the CSLA.dll is in th bin directory. The CSLA version is 3.6. Is there any known issue with 3.6 not executing under server 2008?
RockfordLhotka replied on Thursday, January 28, 2010
3.6 should work fine on Win2k8.
Assuming ASP.NET and IIS are properly configured, ASP.NET will simply look through the loaded assemblies (from the \bin directory) to find the matching full type name specified in the svc file.
Have you put an aspx page into the virtual root (with a little code in it) to establish that your virtual root is properly configured for ASP.NET?
Basically, make sure ASP.NET, IIS and your virtual root are properly configured, and that ASP.NET can read the \bin directory, etc.
jmcphers replied on Friday, January 29, 2010After continueing to work on this I came across the following post:
This message is often due to an IIS 7 config problem. If you are used to creating a virtual directory pointing to the folder where your service resides, that no longer works. Now, you need to use the "Create Application..." option instead. (http://stackoverflow.com/questions/720807/wcf-service-attribute-value-in-the-servicehost-directive-could-not-be-found)
I made this configuration change and the page for http://localhost/WcfHost/wcfportal.svc now displays as expected.
Thought I would pass this on.
Copyright (c) Marimer LLC