Print Page | Close Window

First Try with WinClient

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2009
Forum Discription: For .NET 3.5
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=1672
Printed Date: 21-Sep-2025 at 2:12am


Topic: First Try with WinClient
Posted By: orcities
Subject: First Try with WinClient
Date Posted: 04-Mar-2010 at 4:29pm
I have been using Classic for some time. I am now building my first WinClient version model.
I get the following error:
 
Unable to obtain a valid configuration file.
 
Possible cause: Object reference not set to an instance of an object. (File: C:\\Development\\CEMS2.0\\AMP\\Shell\\Shell\\bin\\Debug\\LOC.AMP.Shell.exe.config)\n\nProbing path:
 
1) File: C:\\Development\\CEMS2.0\\AMP\\Shell\\Shell\\bin\\Debug\\LOC.AMP.Shell.exe.config - found but failed to load: Object reference not set to an instance of an object.
2) File: C:\\Development\\CEMS2.0\\AMP\\Shell\\Shell\\bin\\Debug\\LOC.AMP.Shell.vshost.exe.config - found but failed to load: Object reference not set to an instance of an object.
3) app.config embedded in Assembly: LOC.AMP.Shell, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null - not found
4) app.config fallthru - Default app.config used
5) Logging file:
 
I tried this two ways got the same error:
1. Created new project and added the ADO stuff there. Then created the WinForms from there.
2. Added ADO to the Shell then created the winforms from there.
 
Both DomainModel projects were created in a new project. I am trying to consume the DomainModel from a third project.
The third project is a project that will have controls to be viewed in the Shell window.
 
 



Replies:
Posted By: orcities
Date Posted: 04-Mar-2010 at 5:19pm
I found that the app.config in the shell did not get the ideablade information written in it. I copied it from the DomainModel.app.config file and it worked ok.
 
The odd thing is that I rebuilt this piece many time and each time it didn't get loaded into the app.config.


Posted By: GregD
Date Posted: 05-Mar-2010 at 12:34pm
Does the shell project have a reference to the domain model project?



Print Page | Close Window