Print Page | Close Window

N-Tier configurator

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=1871
Printed Date: 10-Jun-2026 at 7:09pm


Topic: N-Tier configurator
Posted By: sky40627
Subject: N-Tier configurator
Date Posted: 08-Jun-2010 at 1:57pm
When loading the source path I always receive the error :
 
The domain model was not found in any DLL.
N-Tier deplayment requires that the model be defined in a class library
which can be deployed on both client and server.
 
I am working on a Windows 7 Pro X64.
 
When I deploy manually to two maps and start the serverconsole I receive an error of the domain model.dll not being able to load, with a BadFormatException.
 
What could be the problem here ?



Replies:
Posted By: ting
Date Posted: 08-Jun-2010 at 7:30pm
You can get that exception when you have a .NET CLR conflict with the assembly (.NET version conflicts or 32/64-bit issues).  Can you check the build settings on the assembly in Visual Studio?  I believe the platform target should by AnyCPU, unless you are using any of the libraries that require interop to unmanaged code.


Posted By: sky40627
Date Posted: 11-Jun-2010 at 3:04am
I tried everything
 
Even made a little test application in which the server-side only needed the domainmodel dll
 
On my development pc everything works fine, i execute the serverconsole and it runs
 
I copy the server map to my server with the ideablade.core and ideablade.entitmodel.server and keeps getting the error
 
 


Posted By: sky40627
Date Posted: 11-Jun-2010 at 9:14am
I made a real small console application
 
which only references :
 
IdeaBlade.Core
IdeaBlade.EntityModel
IdeaBlade.Validation
SKN.FIX.EF - domainmodel
System
System.ComponentModel.DataAnnotations.dll
 
and the domainmodel references :
 
IdeaBlade.Core
IdeaBlade.EntityModel
IdeaBlade.Validation
System
System.ComponentModel.DataAnnotations.dll
System.Data
System.Data.Entity
System.Runtime.Serialization
 
in the properties cpu is set to any
 
and i get the following error :
 
Description:
  Stopped working
Problem signature:
  Problem Event Name: CLR20r3
  Problem Signature 01: testserverconsole.exe
  Problem Signature 02: 1.0.0.0
  Problem Signature 03: 4c125e4b
  Problem Signature 04: mscorlib
  Problem Signature 05: 4.0.0.0
  Problem Signature 06: 4ba22001
  Problem Signature 07: 23eb
  Problem Signature 08: 26
  Problem Signature 09: 5O2O3I2ORVH4ZJ0NRQ1HQUEQ4B3YAU4U
  OS Version: 6.0.6002.2.2.0.272.7
  Locale ID: 2067
Read our privacy statement:
  http://go.microsoft.com/fwlink/?linkid=50163&clcid=0x0409 - http://go.microsoft.com/fwlink/?linkid=50163&clcid=0x0409


Posted By: kimj
Date Posted: 11-Jun-2010 at 10:13am
Is the problem now in the N-tier Deployment tool or in the test application?
 
If the testserverconsole.exe application is failing when trying to communicate with the ServerConsole.exe on a remote server there are a few things to check. 
1) Make sure the ServerConsole.exe was started,
2) Check the debuglog.xml generated by the ServerConsole, it may have diagnostics which help explain the problem, and
3) add error handling to your testserverconsole.exe to trap and display errors.


Posted By: sky40627
Date Posted: 13-Jun-2010 at 1:14am
at first it thought it was a problem with the n-tier deployment tool now I think it is a problem with the serverconsole because the servconsole wont start giving me the error i mentioned earlier.
 
The domain model is only using references tho the system or ideablade assemblies.
 
So I tried to run the testserverconsole directly on the server putting it in the same map and with isDistributed="false" in app.config
 
The error I get there is Cannot load one or more of the requested types which is also the error I get when starting the serverconsole,
 
I am working on a w7 x64 pc all assemblies were build with target platform any cpu
 
All working fine on my w7 I copy the the server map to my server 2008 pc and there it fails
 
 
 
 


Posted By: sky40627
Date Posted: 17-Jun-2010 at 7:49am
nobody has had this problem ?
 
I am going to try build a new application from scratch and see if i can make it work on my w2008 x64 server
 
i will post the results


Posted By: kimj
Date Posted: 17-Jun-2010 at 10:52am
On your server, and on any machine where DevForce was not explicitly installed and DF assemblies are therefore not in the GAC, you need to supply a few more assemblies.  These are documented in the Deployment section of the Learning Resources, but are:
 
Server (or 2-tier application) -
IdeaBlade.EntityModel
IdeaBlade.EntityModel.Edm
IdeaBlade.EntityModel.Server
IdeaBlade.Linq
IdeaBlade.Core
IdeaBlade.Validation
optional -  IdeaBlade.EntityModel.Web
 
Client -
IdeaBlade.EntityModel
IdeaBlade.Linq
IdeaBlade.Core
IdeaBlade.Validation


Posted By: btitular
Date Posted: 10-Sep-2010 at 9:15am
I just installed v6.0.5.0 and when I run the N-Tier configurator, I get the same message:
 
The domain model was not found in any DLL.
N-tier deployment requires that the model be defined in a class library which can be deployed on both client and server.
 
I'm selecting my silverlight project as my source path.
 
I'm able to publish my SL app with BOS on my remote IIS server and it's working correctly. I just want to know why I get this error and how do I correct it so I can attempt to use the N-Tier Configuration Starter tool.
 


Posted By: davidklitzke
Date Posted: 10-Sep-2010 at 10:25am
Have you looked at the example in the DevForce Resource Center?

http://drc.ideablade.com/xwiki/bin/view/Documentation/Code_Pt02_QueryExplorerRunningSimulatedNTier


Posted By: btitular
Date Posted: 10-Sep-2010 at 11:34am
David,
 
Thanks for the link. I think the documentation still refers to DevForce v5.x. Part one of the tutorial is using the Object Mapper to create the domain model file.
 
I've created a small test DevForce Silverlight Application. Here are the files in my solution:
 
 
It simply retrieves rows from a table and displays them in a data grid.
 
It works on my dev workstation. I've deployed it to my remote IIS server and it works there as well.
 
I'm not sure what's causing the error message:
 
The domain model was not found in any DLL...
 
when running the N-Tier Configuration. Is that because the Model1.IB.Designer.cs (which contains the domain model - right?) ends up in a XAP file and not in a DLL?
 
 
 


Posted By: kimj
Date Posted: 10-Sep-2010 at 6:00pm
The N-tier configurator utility is not intended for Silverlight applications, and as you've found does not work correctly with them. 
 
The utility is intended for use in 2-tier WinClient applications to show how to "easily" partition the application into client and server tiers, and run the BOS hosted by the ServerConsole.  There is no reason to use the utility with a Silverlight application because an SL application is inherently n-tier, and is already partitioned into client and server.


Posted By: btitular
Date Posted: 13-Sep-2010 at 2:53pm

Thanks - just wanted to confirm this.




Print Page | Close Window