Click here to Skip to main content
15,917,176 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I've created a new data service using the new Wcf Data Services CTP2 release. The data service runs fine on my local IIS and in VS2010 dev environment. However, when I try and publish the service to a test server, I get the error:

CSS
The type 'Marshalls.CustomerContactsService.DataService.CustomersContactsDataService', provided as the Service attribute value in the ServiceHost directive, or provided in the configuration element system.serviceModel/serviceHostingEnvironment/serviceActivations could not be found.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.InvalidOperationException: The type 'Marshalls.CustomerContactsService.DataService.CustomersContactsDataService', provided as the Service attribute value in the ServiceHost directive, or provided in the configuration element system.serviceModel/serviceHostingEnvironment/serviceActivations could not be found.


I've set the DataServiceProtocolVersion to v3, and all the required dlls are present in the bin folder of the service. I've tweaked every settin I can think of in IIS but nothing seems to work. I've published several WCF Data services previously without issue, but this is the first one I've created that uses the new CTP2 dlls.

Has anyone else has a similar issue?

Thanks in advance

Ryan
Posted

1 solution

After much toil I've finally found the problem. The underlaying Entity Model is built using EF4.1, which wasn't installed on the web server. Installing EF4.1 resolved the issue.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900