3

Closed

Could not load file or assembly 'x' or one of its dependencies. The module was expected to contain an assembly manifest.

description

Hi.

Thank you for Open RIA Services.

Visual Studio 2013 Premium Update 2
Windows 7 Enterprise SP1 x64
Open RIA Services (Entity Framework, Server, Silverlight.Core, and Silverlight.DomainDataSource 4.3.0.0, and Silverlight.CodeGen 4.3.0.1)
Entity Framework 6.1
Silverlight 5
Entity Framework Code-First

When generating the silverlight proxy class, I am getting the following compilation error:

C:\Solution\Third Party\Microsoft\Open RIA Services\Silverlight.CodeGen\4.3.0.1\build\OpenRiaServices.Silverlight.CodeGen.targets(302,5): error : The code generator 'OpenRiaServices.DomainServices.Tools.CSharpCodeDomClientCodeGenerator' encountered a fatal exception and could not generate code for project 'C:\Solution\Silverlight5Project\Silverlight5Project.csproj':
C:\Solution\Third Party\Microsoft\Open RIA Services\Silverlight.CodeGen\4.3.0.1\build\OpenRiaServices.Silverlight.CodeGen.targets(302,5): error : Could not load file or assembly 'x' or one of its dependencies. The module was expected to contain an assembly manifest.

In this case, the assembly 'x', is an unmanaged assembly (c++).
'x' in this case is the name of the assembly but without an extension (ex. if the assembly file name is "Legacy.dll", the error message only indicates 'Legacy').

That file exists in the web project's bin directory.

I expected Silverlight.CodeGen to not even attempt to load that assembly.

I have a couple of projects in my solution:

Legacy: C++ Dll

Silverlight5Project: C# Silverlight 5 application, References Silverlight5Project.RIAServices, LinkedOpenRIAServices points to "Web"

Silverlight5Project.RIAServices: C# Silverlight 5 Class Library, LinkedOpenRIAServices points to "Silverlight5Project.RIAServices.Web"

Silverlight5Project.RIAServices.Web: C# .NET 4 Class Library which contains the DbDomainService

Web: C# .NET 4 Class Library ASP.NET MVC web application, contains a DomainService for UserRegistration

The assembly exists in the bin directory of the "Web" project.

Any ideas/workarounds?

This wasn't happening when using Entity Framework 4.1 and WCF RIA Services 1.0 SP2.

Thank you.
Closed Jun 14 at 1:01 PM by danneesset
Closing old inactive issues

comments