Print Page | Close Window

Don't use fully qualified assembly names in your Web.config

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=1338
Printed Date: 01-Sep-2025 at 1:41am


Topic: Don't use fully qualified assembly names in your Web.config
Posted By: davidklitzke
Subject: Don't use fully qualified assembly names in your Web.config
Date Posted: 20-Jun-2009 at 7:46am
For Silverlight, you do have to use fully qualified assembly names for the probe assembly names in the ProbeAssemblyNames section of the app.config file.  For example:
 
  <ideablade.configuration version="5.00" updateFromDomainModelConfig="Ask" clientApplicationType="Silverlight">
    <probeAssemblyNames>
      <probeAssemblyName name="DevForceSilverlightApp, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" />
    </probeAssemblyNames>
    <objectServer isDistributed="true" remoteBaseURL=" http://localhost - http://localhost " serverPort="9009" serviceName="EntityService.svc" />
    <edmKeys>
      <edmKey name="Default">
        <probeAssemblyNames>
          <probeAssemblyName name="DevForceSilverlightApp, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" />
        </probeAssemblyNames>
      </edmKey>
    </edmKeys>
  </ideablade.configuration>
 
However, don't make the mistake of using fully qualified names in the probe assembly names in the ProbeAssemblyNames section of the Web.config file.  If you do so, you will receive innumerable "Update Configuration File" prompts, and if you are unfortunate enough to say "Yes", the ProbeAssemblyNames section will grow and grow in both app.config and Web.Config until the ProbeAssemblyNames section in your app.config file will begin to look something like this:
 
  <ideablade.configuration version="5.00" updateFromDomainModelConfig="Ask" clientApplicationType="Silverlight">
    <logging logFile="log\DebugLog.xml" />
    <edmKeys>
      <edmKey name="Default" connection="metadata=res://DevForceSilverlightApp/ServerModelNorthwindIB.csdl|res://DevForceSilverlightApp/ServerModelNorthwindIB.ssdl|res://DevForceSilverlightApp/ServerModelNorthwindIB.msl;provider=System.Data.SqlClient;provider connection string=&quot;Data Source=.;Initial Catalog=NorthwindIB;Integrated Security=True;MultipleActiveResultSets=True&quot;" containerName="DevForceSilverlightApp.ServerModelNorthwindIBContext">
        <probeAssemblyNames>
          <probeAssemblyName name="DevForceSilverlightApp, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" />
          <probeAssemblyName name="DevForceSilverlightApp, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" />
          <probeAssemblyName name="DevForceSilverlightApp, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" />
          <probeAssemblyName name="DevForceSilverlightApp, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" />
        </probeAssemblyNames>
      </edmKey>
    </edmKeys>
  </ideablade.configuration>
 
As this happens your application may fail or take forever to come up.
 



Replies:
Posted By: eileenv
Date Posted: 19-Aug-2009 at 5:31pm
This will be fixed in version 5.2.2. Fully-qualified names will now be accepted in the ProbeAssemblyNames of the web.config file without causing excessive synchronization between config files.



Print Page | Close Window