yasser777 / nettiers

Automatically exported from code.google.com/p/nettiers
0 stars 0 forks source link

“The type attribute does not exist in the element name.” entlib.config #281

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Open EntLib.config
2. Navigate to the add element in the cacheManger element
3. Observe that the type attribute is missing

What is the expected output? What do you see instead?
Exception handling in admin screens does not work.
Enterprise Library configuration tool reports the error.

What version of .netTiers and CodeSmith are you using?
NetTier - v2.3
CodeSmith - v5.2

Please provide any additional information below.
Not knowing what the value of the type attribute should be, our fix was to 
add an empty type attribute.  That appears to fix the issue but it doesn't 
feel like the correct thing to do.  See examples below:

Before Fix
<cacheManagers>
    <add expirationPollFrequencyInSeconds="60" 
maximumElementsInCacheBeforeScavenging="1000"
      numberToRemoveWhenScavenging="10" backingStoreName="Null Storage"
      name="Gavilon.GeneralMaintenance.CTGAgrisGL.Entities.EntityCache" 
/>
</cacheManagers>

After Fix
<cacheManagers>
    <add expirationPollFrequencyInSeconds="60" 
maximumElementsInCacheBeforeScavenging="1000"
      numberToRemoveWhenScavenging="10" backingStoreName="Null Storage"
      name="Gavilon.GeneralMaintenance.CTGAgrisGL.Entities.EntityCache" 
type="" />
</cacheManagers>

Original issue reported on code.google.com by wtlinne...@gmail.com on 12 Feb 2010 at 9:29

GoogleCodeExporter commented 9 years ago
Hello,

What version of EntLib are you targeting?

Thanks
-Blake Niemyjski

Original comment by bniemyjski on 21 Sep 2010 at 8:35