New Posts New Posts RSS Feed: First Try with WinClient
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

First Try with WinClient

 Post Reply Post Reply
Author
orcities View Drop Down
Senior Member
Senior Member
Avatar

Joined: 28-Aug-2007
Location: United States
Posts: 454
Post Options Post Options   Quote orcities Quote  Post ReplyReply Direct Link To This Post Topic: First Try with WinClient
    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.
 
 


Edited by orcities - 04-Mar-2010 at 4:51pm
Back to Top
orcities View Drop Down
Senior Member
Senior Member
Avatar

Joined: 28-Aug-2007
Location: United States
Posts: 454
Post Options Post Options   Quote orcities Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
GregD View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 09-May-2007
Posts: 374
Post Options Post Options   Quote GregD Quote  Post ReplyReply Direct Link To This Post Posted: 05-Mar-2010 at 12:34pm
Does the shell project have a reference to the domain model project?
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down