Print Page | Close Window

Linking Domain Model to Silverlight Domain Model

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2010
Forum Discription: For .NET 4.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=2011
Printed Date: 21-Apr-2026 at 8:41pm


Topic: Linking Domain Model to Silverlight Domain Model
Posted By: bstearns
Subject: Linking Domain Model to Silverlight Domain Model
Date Posted: 27-Jul-2010 at 12:44pm

Hi Everyone

I just upgraded to the 6.0.4 because of the linking issue where the Design tools lost their mind if you named the assemblies the same when you are creating a linked silverlight domain model. 

So I tried in the new tools to get this setup so I now have a domain model that has assembly name such as something.DomainModel that lives in the namespace something.DomainModel and then I created the silverlight domain model that has assemblyName such as something.SLDomainModel that lives in the something.DomainModel. 
 
At this point I add the entity model to the domain model and in the output I get this.
 
Attempting to locate and handle any CSDL/SSDL mismatches in: Entities.edmx

*** Unable to locate an assembly in which to create a Silverlight link file.

*** Unable to locate a Silverlight client assembly with an assembly name starting with: 'something.DomainModel'

Seems to me that it is still looking for the assemblies to be named the same, or am I doing something wrong here?

 




Replies:
Posted By: ting
Date Posted: 27-Jul-2010 at 7:04pm

Can you try this starting with the DevForce Silverlight Template?  The model should have the same namespace on the client and server, but I have serveral projects that have different assembly names and had no problems adding the model.



Posted By: bstearns
Date Posted: 28-Jul-2010 at 7:20am

Hi Ting

 
I did start this project with the devforce silverlight template 6.0.4. 
I maybe didn't make this clear in my last post but I have created seperate model projects away from the web and the app project.  Now what I did try was going back and renaming the assemblies so that they matched and then the model generated fine.  At that point I went back into the projects and renamed the assemblies so that they differed again, cleaned the project, deleted the bin directories from the project and rebuilt and all went fine that time.  I now have two differently named assemblies being compiled.
 
So does it work... yes.  Did I have to hack it ... yes :)
 
Not sure what the problem was but as we all know unfortunately that will have to do
 
Thanks
Blaine



Print Page | Close Window