Print Page | Close Window

Unable to locate default version of the 'app.config' file - Please contact IdeaBlade tech support

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=1279
Printed Date: 14-May-2025 at 9:24pm


Topic: Unable to locate default version of the 'app.config' file - Please contact IdeaBlade tech support
Posted By: julio perez
Subject: Unable to locate default version of the 'app.config' file - Please contact IdeaBlade tech support
Date Posted: 25-May-2009 at 4:43pm
When I run this Winform: Unable to locate default version of the 'app.config' file - Please contact IdeaBlade tech support

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

       Dim EM As New IronDomainModel.EM

End Sub

But the app.config is there in the project !!!

What i do ?




Replies:
Posted By: davidklitzke
Date Posted: 26-May-2009 at 10:04am
I would start by reading the Developer's Guide.  On about Page 89, there is a section called "Understanding the App.Configs".  Also, read the Release Notes.  There is a breaking change in the App.Config file.


Posted By: julio perez
Date Posted: 27-May-2009 at 5:06am
i think that the my app.config is ok, and the error continue
 
 
thank you
 
 
 
<?xml version="1.0" encoding="utf-8"?>

<configuration>

<ideablade.configuration version="5.00" updateFromDomainModelConfig="Ask">

<logging logFile="DebugLog.xml" />

<objectServer isDistributed="false" remoteBaseURL="http://localhost" serverPort="9009" serviceName="EntityService" />

<edmKeys>

<edmKey name="Default" connection="metadata=res://IronEntityModelV1.0/IronEntityModel01.csdl|res://IronEntityModelV1.0/IronEntityModel01.ssdl|res://IronEntityModelV1.0/IronEntityModel01.msl;provider=System.Data.SqlClient;provider connection string=&quot;Data Source=VAIOJULIO;Initial Catalog=Iron;Integrated Security=True;MultipleActiveResultSets=True&quot;" containerName="IronEntityModel.Entities">

<probeAssemblyNames>

<probeAssemblyName name="IronDomainModelV1.0" />

<probeAssemblyName name="IronEntityModelV1.0" />

</probeAssemblyNames>

</edmKey>

</edmKeys>

</ideablade.configuration>

<configSections>

<section name="ideablade.configuration" type="IdeaBlade.Core.Configuration.IdeaBladeSection, IdeaBlade.Core, Version=5.1.0.0, Culture=neutral, PublicKeyToken=287b5094865421c0" />

</configSections>

</configuration>



Posted By: GregD
Date Posted: 27-May-2009 at 12:02pm
Where is the app.config?

a. in the UI project,
b. in the DomainModel project
c. both



Posted By: julio perez
Date Posted: 27-May-2009 at 2:56pm
both


Posted By: GregD
Date Posted: 28-May-2009 at 1:08pm
< ="-" ="text/; =utf-8">< name="ProgId" ="Word.">< name="Generator" ="Microsoft Word 12">< name="Originator" ="Microsoft Word 12">

Julio, we're not sure why your app.config isn't being found.


For reference, here's material from the Reference Help that delineates the search sequence for the app.config:


The probing sequence for this file is as follows:

1) Look for a loose .config file located in the same directory as the application executable.

 

2) If not found then the framework attempts to locate an embedded app.config file in the entry assembly.

 

3) If not found then an attempt is made to locate an embedded version of the app.config in the 'AppHelper' assembly.

 

4) If the file can still not be found then a generic default is supplied by the framework. This usually results in an error, since the default configuration will not have sufficient information for your application.

 

This search can be short-circuited by specifying either the ConfigFileLocation or the ConfigFileAssembly property, which will cause the search to start at the specified directory location or assembly.




Print Page | Close Window