Hallo!
First, the configuration data:
- LLBLGen Pro v3.5 Final (December 11th, 2012) on .NET 4.0 or 4.5, Any CPU
- Template Group is SD.Presets.Adapter.General2010 (no modifications)
- Windows Server 2008 R2 SP1
- Visual Studio 2010 .NET 4.0
- WCF RIA Services Toolkit (September 2011)
- WCF RIA Services V1.0 SP1
- C#
- All Library References are set to CopyLocal = true. Project to which the code is generated has references to the following libs:
SD.LLBLGen.Pro.DQE.SqlServer.NET20 (GAC)
SD.LLBLGen.Pro.LinqSupportClasses.NET35 (Installation Folder)
SD.LLBLGen.Pro.ORMSupportClasses.NET20 (GAC)
SD.LLBLGen.Pro.QuerySpec (Installation Folder)
SD.LLBLGen.Pro.RiaSupportClasses (Installation Folder)
I habe been using LLBLGen with this project starting with 3.1, and now finally had the time to upgrade to 3.5. The model was migrated by the designer. C# code was frozen for the purpose of this migration.
The build of the project fails with the following error message
Exception has been thrown by the target of an invocation.
C:\Program Files (x86)\MSBuild\Microsoft\Silverlight\v5.0\Microsoft.Ria.Client.targets 303
Looking into the build file, I found the task
CreateRiaClientFilesTask
I turned the diagnostic output-mode in VS on and here is the part where the error message is made:
C:\Dev\trunk\GeoMan\src\SlRia\Wk.Server\Wk.Data\Output\StringOutput.shared.cs
C:\Dev\trunk\GeoMan\src\SlRia\Wk.Server\Wk.Data\SearchAttribute.shared.cs
C:\Dev\trunk\GeoMan\src\SlRia\CommonAssemblyInfo.cs (TaskId:356)
C:\Program Files (x86)\MSBuild\Microsoft\Silverlight\v5.0\Microsoft.Ria.Client.targets(303,5): error : Exception has been thrown by the target of an invocation.
Assembly 'Telerik.Windows.Controls, Version=2012.1.430.1050, Culture=neutral, PublicKeyToken=5803cfa389c90ce7' could not be loaded and will be ignored.
Could not load file or assembly 'Telerik.Windows.Controls, Version=2012.1.430.1050, Culture=neutral, PublicKeyToken=5803cfa389c90ce7' or one of its dependencies. The system cannot find the file specified. (TaskId:356)
Assembly 'Microsoft.Practices.Unity.Silverlight, Version=2.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' could not be loaded and will be ignored.
So no error message is being output that can be used to track down the cause of the error.
I have been trying to narrow down the cause by removing files from the web project to no avail. I recreated the Silverlight project and it still fails.
Reverting the changes to LLBLGen Pro 3.1 causes the error to disappear and build runs without errors. LLBLGen 3.5 has many features that would enhance our product like OData, SQL Server 2012 support, Entity Instances Projections (this alone makes the upgrade worth it!), Rule based .NET Attribute definitions (we have VERY wide tables).
Thank you very much for your assistance on this!
Best regards
Nasser