Open RIA Services User Support Build Errors and warnings  Viewed 64328 time(s), 9 post(s)., 6/18/2014 7:01:51 PM - by PilotBob

PilotBob
PilotBob 6/18/2014 7:01:52 PM

I am getting the following build error after following the blog directions on moving from WCF Ria to Open Ria.


Error 1 The "OpenRiaServices.DomainServices.Tools.ValidateDomainServicesTask" task could not be loaded from the assembly OpenRiaServices.DomainServices.Tools. Could not load file or assembly 'OpenRiaServices.DomainServices.Tools' or one of its dependencies. The system cannot find the file specified. Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask. AmsiWeb

I'm not sure what to do here. The .Tools dll is in the package folder, but it isn't referenced in the projects. Should it be?

I am also getting the following warning:

Warning 2 "C:\Program Files (x86)\MSBuild\Microsoft\Silverlight\v5.0\Microsoft.VisualStudio.ServiceModel.targets" cannot be imported again. It was already imported at "C:\Program Files (x86)\MSBuild\Microsoft\Silverlight\v5.0\Microsoft.Ria.Client.targets (338,3)". This is most likely a build authoring error. This subsequent import will be ignored. [C:\Users\rarch\Development\Amsi-v8.0.0\Product\Production\AmsiSL\AmsiSL.csproj] AmsiSL

Once again, not sure why, because the MS stuff shouldn't be running afaict. 




This content has not been rated yet. 
70 Reputation 10 Total posts
1
ColinBlair
ColinBlair 6/19/2014 2:49:28 PM

From your other question, it sounds like you already got past the above error. The tools dll is referenced by the targets file, not by the project. In the newer prerelease Nuget package we changed how the targets file is referenced so upgrading to the newer NuGet package may help.

The Microsoft.Ria.Client.targets file is referenced by the main Silverlight targets file so it is always referenced when you are using Silverlight.

This content has not been rated yet. 
1539 Reputation 130 Total posts
2
PilotBob
PilotBob 6/19/2014 3:08:38 PM

No I haven't. Still getting the errors. Is there a nuget feed with the pre-release packages?

This content has not been rated yet. 
70 Reputation 10 Total posts
3
ColinBlair
ColinBlair 6/19/2014 5:20:03 PM

They are on Nuget. When you are on the Update screen in the Package Manager there is a drop down box that probably says Stable Only at the top. Change that to Include Prerelease.

This content has not been rated yet. 
1539 Reputation 130 Total posts
4
PilotBob
PilotBob 6/19/2014 5:34:17 PM

thanks.

This content has not been rated yet. 
70 Reputation 10 Total posts
5
PilotBob
PilotBob 6/19/2014 7:25:47 PM

Updated to pre-release (beta2) and still getting same warnings/errors.

This content has not been rated yet. 
70 Reputation 10 Total posts
6
ColinBlair
ColinBlair 6/19/2014 8:01:17 PM

Can you send me a copy of the project file from the Silverlight side? mail at colinblair.com

Just copy the text out of the project file, obfuscate anything you need to obfuscate, and send it to me. I am guessing that something is wrong in there.

This content has not been rated yet. 
1539 Reputation 130 Total posts
7
PilotBob
PilotBob 6/19/2014 9:22:22 PM

Thanks. Sent.

This content has not been rated yet. 
70 Reputation 10 Total posts
8
PilotBob
PilotBob 6/25/2014 6:39:38 PM

Many thanks to Colin for all his help with this.

I now have my project updated. I noticed that I hadn't removed the System.ServiceModel.DomainServices* from the Silverlight project. 

I still get a warning about the MS RIA target already being loaded. But I am told that is because I still have it on my machine. Perhaps in a future release that can somehow be resolved.

This content has not been rated yet. 
70 Reputation 10 Total posts
9