I got an email from a customer that reported a bugin the Web Deployment Tool 2010. Maybe it saves you some time if you ever encounter this. This is the translated text:
When we deploy our webapplication, we precompile it first using the Web Deployment Tool 2010. While testing, we found out that the service could not be located. After some digging it turned out the problem was in the .compiled file of the service.
See this post fromTom Fuller : http://social.msdn.microsoft.com/forums/en-US/wcf/thread/8c897f8e-2143-450e-a9f4-97d1f8702da7
We solved it by using MSBuildTasks in the Web Deployment project (http://msbuildtasks.tigris.org/
With that, we replacing the absolute location of the file with the “~” sign.
<FileUpdate Files="..\..\Output\Web\Deployment\bin\documentservice.svc.989dc2fb.compiled" Regex="/Donau Web.csproj" ReplacementText="~" />
We also remove all references to the ASP.NET folders like “App_”:
<FileUpdate Files="..\..\Output\Web\Deployment\bin\documentservice.svc.989dc2fb.compiled" Regex="\|App_global.asax, Version=0\.0\.0\.0, Culture=neutral, PublicKeyToken=417399dd0d17e25b\|" ReplacementText="|" />
<FileUpdate Files="..\..\Output\Web\Deployment\bin\documentservice.svc.989dc2fb.compiled" Regex="\|App_GlobalResources, Version=0\.0\.0\.0, Culture=neutral, PublicKeyToken=417399dd0d17e25b\|" ReplacementText="|" />