Quantcast
Channel: patterns & practices: Enterprise Library Contrib
Viewing all 140 articles
Browse latest View live

New Post: Silverlight 5 support

$
0
0

Hi,

We are currently migrating our LOB application from Silverlight 4 to Silverlight 5. We currently use EntLib 5.0.505, but it seems to be a version for Silverlight 4. Is there a version available for Silverlight 5 or can we just get the latest sources and build it with target Silverlight 5?

Kind Regards,

Hans


Created Issue: Migrate PostgreSql provider to v5 [22480]

$
0
0
The first release of EntlibContrib v5 is missing the PostgreSql provided. Please can this be included as soon as possible? It is preventing me from utilising other great blocks like DAAB and Query. Thanks.

New Post: PostgreSQL support

$
0
0

Is there any plan to support in this new release PostgreSQL? and, if it does, When?

Thanks.

Created Issue: Entlibcontrib 5.0.5 : Activation error occured while trying to get instance of type Database, key "" [22522]

$
0
0
i downloaded Entlibcontrib 5.0.5 and running the unit tests and i get this error, Not sure why?
I have the config setup and the default database defined and the Microsoft.Practices.EnterpriseLibrary.Common and Microsoft.Practices.EnterpriseLibrary.Data are version 5.0.505.0.

The code is breaking at db = factory.CreateDefault()
[TestInitialize]
public void SetUp()
{
DatabaseProviderFactory factory = new DatabaseProviderFactory(TestConfigurationSource.GenerateConfiguration());
db = factory.CreateDefault();
baseFixture = new DataAccessTestsFixture(db);
}

This is the config file i am using on the tests project

<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<section name="dataConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSettings, Microsoft.Practices.EnterpriseLibrary.Data, Version=5.0.505.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
<section name="oracleConnectionSettings" type="EntLibContrib.Data.OdpNet.Configuration.OracleConnectionSettings, EntLibContrib.Data.OdpNet" />
<section name="typeRegistrationProvidersConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Common.Configuration.TypeRegistrationProvidersConfigurationSection, Microsoft.Practices.EnterpriseLibrary.Common, Version=5.0.505.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
</configSections>
<typeRegistrationProvidersConfiguration>

<remove name="Data Access" />

<add name="Data Access" providerType="Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSyntheticConfigSettings, Microsoft.Practices.EnterpriseLibrary.Data, Version=5.0.505.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />

</typeRegistrationProvidersConfiguration>
<dataConfiguration defaultDatabase="Service_Dflt">
<providerMappings>
<add databaseType="EntLibContrib.Data.OdpNet.OracleDatabase, EntLibContrib.Data.OdpNet, Version=5.0.505.0, Culture=neutral, PublicKeyToken=null"
name="Oracle.DataAccess.Client" />
</providerMappings>
</dataConfiguration>
<oracleConnectionSettings>
<add name="OracleTest">
<packages>
<add name="PKGNORTHWIND" prefix="NWND_" />
<add name="PKGENTLIB" prefix="RegionSelect" />
</packages>
</add>
</oracleConnectionSettings>
<connectionStrings>
<add name="Service_Dflt"
providerName="Oracle.DataAccess.Client"
connectionString="Data Source=xxx;User id=Northwind;Password=Northwind;" />
<add name="NewDatabase"
providerName="Oracle.DataAccess.Client"
connectionString="Data Source=xxx;User id=Northwind;Password=Northwind;" />
<add name="DbWithOracleAuthn"
providerName="Oracle.DataAccess.Client"
connectionString="Data Source=xxx;User id=Northwind;Password=Northwind"/>
<add name="NwindPersistFalse"
providerName="Oracle.DataAccess.Client"
connectionString="Data Source=xxx;User id=Northwind;Password=Northwind;Persist Security Info=false"/>
</connectionStrings>
</configuration>

Thank you.
Venkat

New Post: Mapping Application Block 4.1

$
0
0

Hi,

I've downloaded entlibcontrib latest source version 5.0.505, but didnt get MAB source as well as dll's, kindly advice..

Thanks in advance..

New Post: Mapping Application Block 4.1

$
0
0

Hi,

I am very sorry but QAB and MAB have not yet been upgraded to v5

Cheers… Steve Phillips

From: ramasami_k [email removed]
Sent: 17 May 2012 06:37
To: sp@ewdev.com
Subject: Re: Mapping Application Block 4.1 [entlibcontrib:304619]

From: ramasami_k

Hi,

I've downloaded entlibcontrib latest source version 5.0.505, but didnt get MAB source as well as dll's, kindly advice..

Thanks in advance..


No virus found in this message.
Checked by AVG - www.avg.com
Version: 2012.0.2176 / Virus Database: 2425/5010 - Release Date: 05/19/12

Created Issue: Exception thrown as:Object synchronization method was called from an unsynchronized block of code. [22831]

$
0
0
Hi All,

I am get exception "Object synchronization method was called from an unsynchronized block of code." while doing logging in database. I am using following library

Microsoft.Practices.EnterpriseLibrary.Logging
Microsoft.Practices.EnterpriseLibrary.Data
Microsoft.Practices.EnterpriseLibrary.Logging.Database
Microsoft.Practices.EnterpriseLibrary.Common
And my config file setting is as below:



<configuration>
<configSections>
<section name="loggingConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.LoggingSettings, Microsoft.Practices.EnterpriseLibrary.Logging, Version=5.0.505.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="true" />
</configSections>
<loggingConfiguration name="" tracingEnabled="true" defaultCategory="General">
<listeners>
<add name="Database Trace Listener" type="Microsoft.Practices.EnterpriseLibrary.Logging.Database.FormattedDatabaseTraceListener, Microsoft.Practices.EnterpriseLibrary.Logging.Database, Version=5.0.505.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
listenerDataType="Microsoft.Practices.EnterpriseLibrary.Logging.Database.Configuration.FormattedDatabaseTraceListenerData, Microsoft.Practices.EnterpriseLibrary.Logging.Database, Version=5.0.505.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
databaseInstanceName="Logging Database" writeLogStoredProcName="WriteLog"
addCategoryStoredProcName="AddCategory" formatter="Text Formatter"
traceOutputOptions="LogicalOperationStack, DateTime, Timestamp, ProcessId, ThreadId, Callstack" />
<add name="Event Log Trace Listener" type="Microsoft.Practices.EnterpriseLibrary.Logging.TraceListeners.FormattedEventLogTraceListener, Microsoft.Practices.EnterpriseLibrary.Logging, Version=5.0.505.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
listenerDataType="Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.FormattedEventLogTraceListenerData, Microsoft.Practices.EnterpriseLibrary.Logging, Version=5.0.505.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
source="Enterprise Library Logging" formatter="Text Formatter"
log="some" traceOutputOptions="LogicalOperationStack, DateTime, Timestamp, ProcessId, ThreadId, Callstack" />
</listeners>
<formatters>
<add type="Microsoft.Practices.EnterpriseLibrary.Logging.Formatters.TextFormatter, Microsoft.Practices.EnterpriseLibrary.Logging, Version=5.0.505.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
template="Timestamp: {timestamp}{newline}&#xA;Message: {message}{newline}&#xA;Category: {category}{newline}&#xA;Priority: {priority}{newline}&#xA;EventId: {eventid}{newline}&#xA;Severity: {severity}{newline}&#xA;Title:{title}{newline}&#xA;Machine: {localMachine}{newline}&#xA;App Domain: {localAppDomain}{newline}&#xA;ProcessId: {localProcessId}{newline}&#xA;Process Name: {localProcessName}{newline}&#xA;Thread Name: {threadName}{newline}&#xA;Win32 ThreadId:{win32ThreadId}{newline}&#xA;Extended Properties: {dictionary({key} - {value}{newline})}"
name="Text Formatter" />
</formatters>
<categorySources>
<add switchValue="All" name="General">
<listeners>
<add name="Database Trace Listener" />
</listeners>
</add>
</categorySources>
<specialSources>
<allEvents switchValue="All" name="All Events">
<listeners>
<add name="Database Trace Listener" />
</listeners>
</allEvents>
<notProcessed switchValue="All" name="Unprocessed Category">
<listeners>
<add name="Database Trace Listener" />
</listeners>
</notProcessed>
<errors switchValue="All" name="Logging Errors &amp; Warnings">
<listeners>
<add name="Event Log Trace Listener" />
</listeners>
</errors>
</specialSources>
</loggingConfiguration>
<connectionStrings>
<add name="Logging Database" connectionString="Password=*******;Persist Security Info=True;User ID=*******;initial catalog=*******;Data Source=******"
providerName="System.Data.SqlClient" />
</connectionStrings>
</configuration>


Can anyone help me in this regard.

Thanks and Regards

Mohammed Haroon

(Technology Enthusiast, Active learner and decent developer.)

Commented Issue: Exception thrown as:Object synchronization method was called from an unsynchronized block of code. [22831]

$
0
0
Hi All,

I am get exception "Object synchronization method was called from an unsynchronized block of code." while doing logging in database. I am using following library

Microsoft.Practices.EnterpriseLibrary.Logging
Microsoft.Practices.EnterpriseLibrary.Data
Microsoft.Practices.EnterpriseLibrary.Logging.Database
Microsoft.Practices.EnterpriseLibrary.Common
And my config file setting is as below:



<configuration>
<configSections>
<section name="loggingConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.LoggingSettings, Microsoft.Practices.EnterpriseLibrary.Logging, Version=5.0.505.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="true" />
</configSections>
<loggingConfiguration name="" tracingEnabled="true" defaultCategory="General">
<listeners>
<add name="Database Trace Listener" type="Microsoft.Practices.EnterpriseLibrary.Logging.Database.FormattedDatabaseTraceListener, Microsoft.Practices.EnterpriseLibrary.Logging.Database, Version=5.0.505.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
listenerDataType="Microsoft.Practices.EnterpriseLibrary.Logging.Database.Configuration.FormattedDatabaseTraceListenerData, Microsoft.Practices.EnterpriseLibrary.Logging.Database, Version=5.0.505.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
databaseInstanceName="Logging Database" writeLogStoredProcName="WriteLog"
addCategoryStoredProcName="AddCategory" formatter="Text Formatter"
traceOutputOptions="LogicalOperationStack, DateTime, Timestamp, ProcessId, ThreadId, Callstack" />
<add name="Event Log Trace Listener" type="Microsoft.Practices.EnterpriseLibrary.Logging.TraceListeners.FormattedEventLogTraceListener, Microsoft.Practices.EnterpriseLibrary.Logging, Version=5.0.505.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
listenerDataType="Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.FormattedEventLogTraceListenerData, Microsoft.Practices.EnterpriseLibrary.Logging, Version=5.0.505.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
source="Enterprise Library Logging" formatter="Text Formatter"
log="some" traceOutputOptions="LogicalOperationStack, DateTime, Timestamp, ProcessId, ThreadId, Callstack" />
</listeners>
<formatters>
<add type="Microsoft.Practices.EnterpriseLibrary.Logging.Formatters.TextFormatter, Microsoft.Practices.EnterpriseLibrary.Logging, Version=5.0.505.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
template="Timestamp: {timestamp}{newline}&#xA;Message: {message}{newline}&#xA;Category: {category}{newline}&#xA;Priority: {priority}{newline}&#xA;EventId: {eventid}{newline}&#xA;Severity: {severity}{newline}&#xA;Title:{title}{newline}&#xA;Machine: {localMachine}{newline}&#xA;App Domain: {localAppDomain}{newline}&#xA;ProcessId: {localProcessId}{newline}&#xA;Process Name: {localProcessName}{newline}&#xA;Thread Name: {threadName}{newline}&#xA;Win32 ThreadId:{win32ThreadId}{newline}&#xA;Extended Properties: {dictionary({key} - {value}{newline})}"
name="Text Formatter" />
</formatters>
<categorySources>
<add switchValue="All" name="General">
<listeners>
<add name="Database Trace Listener" />
</listeners>
</add>
</categorySources>
<specialSources>
<allEvents switchValue="All" name="All Events">
<listeners>
<add name="Database Trace Listener" />
</listeners>
</allEvents>
<notProcessed switchValue="All" name="Unprocessed Category">
<listeners>
<add name="Database Trace Listener" />
</listeners>
</notProcessed>
<errors switchValue="All" name="Logging Errors &amp; Warnings">
<listeners>
<add name="Event Log Trace Listener" />
</listeners>
</errors>
</specialSources>
</loggingConfiguration>
<connectionStrings>
<add name="Logging Database" connectionString="Password=*******;Persist Security Info=True;User ID=*******;initial catalog=*******;Data Source=******"
providerName="System.Data.SqlClient" />
</connectionStrings>
</configuration>


Can anyone help me in this regard.

Thanks and Regards

Mohammed Haroon

(Technology Enthusiast, Active learner and decent developer.)
Comments: ** Comment from web user: jbourgault **

This issue is related to Unity.

See http://unity.codeplex.com/workitem/7019 for more details.

Cheers,

Jeremi


Closed Issue: Exception thrown as:Object synchronization method was called from an unsynchronized block of code. [22831]

$
0
0
Hi All,

I am get exception "Object synchronization method was called from an unsynchronized block of code." while doing logging in database. I am using following library

Microsoft.Practices.EnterpriseLibrary.Logging
Microsoft.Practices.EnterpriseLibrary.Data
Microsoft.Practices.EnterpriseLibrary.Logging.Database
Microsoft.Practices.EnterpriseLibrary.Common
And my config file setting is as below:



<configuration>
<configSections>
<section name="loggingConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.LoggingSettings, Microsoft.Practices.EnterpriseLibrary.Logging, Version=5.0.505.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="true" />
</configSections>
<loggingConfiguration name="" tracingEnabled="true" defaultCategory="General">
<listeners>
<add name="Database Trace Listener" type="Microsoft.Practices.EnterpriseLibrary.Logging.Database.FormattedDatabaseTraceListener, Microsoft.Practices.EnterpriseLibrary.Logging.Database, Version=5.0.505.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
listenerDataType="Microsoft.Practices.EnterpriseLibrary.Logging.Database.Configuration.FormattedDatabaseTraceListenerData, Microsoft.Practices.EnterpriseLibrary.Logging.Database, Version=5.0.505.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
databaseInstanceName="Logging Database" writeLogStoredProcName="WriteLog"
addCategoryStoredProcName="AddCategory" formatter="Text Formatter"
traceOutputOptions="LogicalOperationStack, DateTime, Timestamp, ProcessId, ThreadId, Callstack" />
<add name="Event Log Trace Listener" type="Microsoft.Practices.EnterpriseLibrary.Logging.TraceListeners.FormattedEventLogTraceListener, Microsoft.Practices.EnterpriseLibrary.Logging, Version=5.0.505.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
listenerDataType="Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.FormattedEventLogTraceListenerData, Microsoft.Practices.EnterpriseLibrary.Logging, Version=5.0.505.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
source="Enterprise Library Logging" formatter="Text Formatter"
log="some" traceOutputOptions="LogicalOperationStack, DateTime, Timestamp, ProcessId, ThreadId, Callstack" />
</listeners>
<formatters>
<add type="Microsoft.Practices.EnterpriseLibrary.Logging.Formatters.TextFormatter, Microsoft.Practices.EnterpriseLibrary.Logging, Version=5.0.505.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
template="Timestamp: {timestamp}{newline}&#xA;Message: {message}{newline}&#xA;Category: {category}{newline}&#xA;Priority: {priority}{newline}&#xA;EventId: {eventid}{newline}&#xA;Severity: {severity}{newline}&#xA;Title:{title}{newline}&#xA;Machine: {localMachine}{newline}&#xA;App Domain: {localAppDomain}{newline}&#xA;ProcessId: {localProcessId}{newline}&#xA;Process Name: {localProcessName}{newline}&#xA;Thread Name: {threadName}{newline}&#xA;Win32 ThreadId:{win32ThreadId}{newline}&#xA;Extended Properties: {dictionary({key} - {value}{newline})}"
name="Text Formatter" />
</formatters>
<categorySources>
<add switchValue="All" name="General">
<listeners>
<add name="Database Trace Listener" />
</listeners>
</add>
</categorySources>
<specialSources>
<allEvents switchValue="All" name="All Events">
<listeners>
<add name="Database Trace Listener" />
</listeners>
</allEvents>
<notProcessed switchValue="All" name="Unprocessed Category">
<listeners>
<add name="Database Trace Listener" />
</listeners>
</notProcessed>
<errors switchValue="All" name="Logging Errors &amp; Warnings">
<listeners>
<add name="Event Log Trace Listener" />
</listeners>
</errors>
</specialSources>
</loggingConfiguration>
<connectionStrings>
<add name="Logging Database" connectionString="Password=*******;Persist Security Info=True;User ID=*******;initial catalog=*******;Data Source=******"
providerName="System.Data.SqlClient" />
</connectionStrings>
</configuration>


Can anyone help me in this regard.

Thanks and Regards

Mohammed Haroon

(Technology Enthusiast, Active learner and decent developer.)
Comments:

Related to EntLib/Unity.

More details @ http://unity.codeplex.com/workitem/7019

New Post: How to use Query Application Block in .NET project

$
0
0

Hi,

    I have installed all the required EntLibContrib 5.0 application blocks in my solution. I have given all the necessary query settings in the Enterprise library configuration console and it got saved successfully. I am able to see all the given data in config file.

When I tried to use QueryFactory in my code to execute the data query, I could not find any corresponding namespace for that QueryFactory. I tried with all possible namespaces of referred dlls of entlibcontrib.

Please help me out of this. I would appreciate if any sample code is provided.

Thanks,

Sowjanya

 

New Post: Activation error occured while trying to get instance of type IQuery

$
0
0

Hi,

   I am using Query Application Block and my code is successfully compiled.

   I am getting the following error "Activation error occured while trying to get instance of type IQuery, key "Sample Data Query" in below line at run time.

IQuery query = EnterpriseLibraryContainer.Current.GetInstance<IQuery>("Sample Data Query");

Sample Data Query is my data query name.

I am able to connect to database by below line.

Database db = EnterpriseLibraryContainer.Current.GetInstance<Database>("OracleConnectionString");

Please help me out of this problem.

Thanks,

Sowjanya

New Post: How to get the ODP.NET provider to show up in the configuration tool

$
0
0

I download the following items through NuGet:

  • Enterprise Library 5.0 - Common Infrastructure
  • Enterprise Library 5.0 - Data Access Application Block
  • Enterprise Library 5.0 - Unity
  • Enterprise Library 5.0 - Unity Interception Extension
  • EntLibContrib 5.0 - Oracle ODP.NET Data Provider

Is there a way to get the Oracle.DataAccess.Client to show up in Database Provider dropdown in the configuration tool. I know I can manually change it in the config file itself, but I was hoping to use this tool for managing the config files.

Thanks.

New Post: Rolling and Flat file : Redirecting based on the category (or) severity

$
0
0

Guys,

My first post and im very new to this Implementation,

The below is my config file :

  <loggingConfiguration name="loggingConfiguration" tracingEnabled="true" defaultCategory="Error" logWarningsWhenNoCategoriesMatch="true">
    <listeners>
      <add name="Rolling Flat File Trace Listener" type="Microsoft.Practices.EnterpriseLibrary.Logging.TraceListeners.RollingFlatFileTraceListener, Microsoft.Practices.EnterpriseLibrary.Logging, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
        listenerDataType="Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.RollingFlatFileTraceListenerData, Microsoft.Practices.EnterpriseLibrary.Logging,Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
        fileName="c:\Logs\TraceLog.txt" footer="----------------------------------------"
        formatter="Text Formatter" header="&quot;######################################&quot;"
        rollFileExistsBehavior="Overwrite" rollInterval="Day" timeStampPattern="mmddyy"
        traceOutputOptions="None" filter="Verbose" />
     
      <add name="Flat File Trace Listener" type="Microsoft.Practices.EnterpriseLibrary.Logging.TraceListeners.FlatFileTraceListener, Microsoft.Practices.EnterpriseLibrary.Logging,Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
        listenerDataType="Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.FlatFileTraceListenerData, Microsoft.Practices.EnterpriseLibrary.Logging,Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
        fileName="c:\Logs\ErrrorLog.txt" formatter="Text Formatter"
        traceOutputOptions="None" />
    </listeners>
    <formatters>
      <add type="Microsoft.Practices.EnterpriseLibrary.Logging.Formatters.TextFormatter, Microsoft.Practices.EnterpriseLibrary.Logging, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
        template="Timestamp: {timestamp(local)}{newline}Message: {message}{newline}"
        name="Text Formatter" />
    </formatters>
    <logFilters>
      <add type="Microsoft.Practices.EnterpriseLibrary.Logging.Filters.LogEnabledFilter, Microsoft.Practices.EnterpriseLibrary.Logging, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
        enabled="true" name="Rolling Flat File Trace Listener" />
    </logFilters>
    <categorySources>
      <add switchValue="All" name="Information">
        <listeners>
          <add name="Flat File Trace Listener" />
        </listeners>
      </add>
      <add switchValue="All" name="Verbose">
        <listeners>
          <add name="Rolling Flat File Trace Listener" />
        </listeners>
      </add>
    </categorySources>
    <specialSources>
      <allEvents switchValue="All" name="All Events" />
      <notProcessed switchValue="All" name="Unprocessed Category" />
      <errors switchValue="All" name="Logging Errors &amp; Warnings">
        <listeners>        
          <add name="Rolling Flat File Trace Listener" />
        </listeners>
      </errors>
    </specialSources>
  </loggingConfiguration>


im able to write into "Flat file" and "Rolling file" issue im facing is im unable to write in to differnt logs based on the category (or) severity.

ex: right now im logging into only "Rolling file" i want only "Severity as Error" to be written into my "Rolling flat file" but every thg is getting logged..

if i use both "Flat and Rollling" how can i redirect them to different files ::


the below are the errors written..


"######################################"
Timestamp: 7/5/2012 12:02:52 PM
Message: There is no explicit mapping for the categories 'Trace'. The log entry was:
Timestamp: 7/5/2012 12:02:51 PM
Message: Trace Start
Category: Trace
Priority: 5
EventId: 100
Severity: Verbose
Title:RetrieveClaimsSummaryInfo
Machine: VAMSEZ218
App Domain: TestAppDomain: cf5ddc2b-9dd6-447b-824e-889dc0d53cb5
ProcessId: 6508
Process Name: C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\QTAgent32.exe
Thread Name: Agent: adapter run thread for test 'RetrieveClaimsSummaryInfoTest' with id '15890cf7-a1a2-4ed1-b66a-1e8703015c29'
Win32 ThreadId:6544
Extended Properties:

----------------------------------------
"######################################"
Timestamp: 7/5/2012 12:02:55 PM
Message: There is no explicit mapping for the categories 'Error'. The log entry was:
Timestamp: 7/5/2012 12:02:55 PM
Message: System.NullReferenceException: Object reference not set to an instance of an object.
   at Cig.Ums.Epas.Service.ServiceImplementation.PolicyService.RetrieveClaimsSummaryInfo(String policyId) in D:\Project\SourceCode-TFS\CIG.UMS.ePAS.Service.ServiceImplementation\PolicyService.cs:line 3516
Category: Error
Priority: -1
EventId: 100
Severity: Error
Title:RetrieveClaimsSummaryInfo
Machine: VAMSEZ218
App Domain: TestAppDomain: cf5ddc2b-9dd6-447b-824e-889dc0d53cb5
ProcessId: 6508
Process Name: C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\QTAgent32.exe
Thread Name: Agent: adapter run thread for test 'RetrieveClaimsSummaryInfoTest' with id '15890cf7-a1a2-4ed1-b66a-1e8703015c29'
Win32 ThreadId:6544
Extended Properties:

----------------------------------------

please help me in achieving the same..

Created Issue: DAAB: UpdateDataSet method Error while Insert [22995]

$
0
0
Hi,

I have written INSERT and UPDATE queries on a table. I am using UpdateDataSet() method for the inserts/updates to happen. I am using UpdateBehavior.Standard. It works fine when I write just provide DbCommand as Update. But, when I provide UpdateDataSet with Insert DbCommand; it throws following error:
concurrency violation the updatecommand affected 0 of the expected 1 records. dataset

But, still the observation is that Updates are happening in the database but NO INSERTS. NOTE: I tried applying both by applying primary key and with No primary key for the table. But, I get the same result.

Kindly suggest,
Thanks,
Alex

New Comment on "LogParser41"

$
0
0
I believe the parser is having an issue with catastrophic backtracking. My tiny little log can not be parsed in any reasonable amount of time. http://www.regular-expressions.info/catastrophic.html

Commented Feature: Logging No GUID Rolling Flat File Trace Listener [7472]

$
0
0
If the Rolling Flat File Trace Listener cannot overwrite a file because it is in use by another instance of the application, the file name is prefixed with a GUID. This contradicts the Enterprise Library 3.0 - April 2007 Documentation for the Logging Application Block, which states: If you select Overwrite for the RoleFileExistsBehavior, the application block creates a new file when the current file rolls over. The name of the file includes the current timestamp. If a file with that name already exists, the application block overwrites the file. If, for some reason, it cannot overwrite the file, it will generate a name according to the same process that is used with the Increment value. If you select Increment for the RoleFileExistsBehavior, the application block creates a new file when the existing file rolls over. The file’s name includes the current timestamp. If a file with this name already exists, the application block adds an integer to the end of the timestamp and increments it until it cannot find a file with that name. For example, assume there is a file named mylog2007-01-1.8.log and the file rolls over while that timestamp is still valid. The application block will then look for a file named mylog2007-01-18.1.log. If no such file exists, it will use that file name for the new file. If that file also exists, it will then attempt to locate the log with the next sequence number mylog2007-01-18.2.log. The during a rollover, debugger showed the GUID file name is obtained in the function PerformRoll in RollingFlatFileTraceListener.cs: string actualFileName = ((FileStream)((StreamWriter)this.owner.Writer).BaseStream).Name;

The GUID in the log file name is due to the TextWriterTraceListener (in System.Diagnostic not EnterpriseLibrary), which has a internal method called EnsureWriter which creates the file if it has not already been created for the current object. This method is called every time Write or WriteLine is called. When EnsureWriter is called it attempts to open the log, and for a second process this call fails because the file is already open. An exception is thrown by the StreamWriter class and this exception is caught and handled by generating a new name using a random GUID.

A solution to this problem would be to override the affected classes, i.e. create a NoGuidTextWriterTraceListener, NoGuidRollingFlatFileTraceListener, etc.
Comments: ** Comment from web user: DotNetCoder54 **

Is this Bug fixed ? We are using Ent LIb 4.1 and still face the same issue. Is there a work around ? Pls let me know.

New Post: Is EntLibContrib.Data.OdpNet.dll (5.0.505.0) compatible with Oracle.DataAccess.dll (4.112.2.0)

$
0
0
Hello,
EntLibContrib.Data.OdpNet.dll (5.0.505.0) is built with Oracle.DataAccess.dll (2.111.7.10), therefore, I had to put the following assembly binding redirect in the application config.It works like charm for my present use case. However for future needs, I would like to know whether the current version of EntLibContrib.Data.OdpNet.dll (5.0.505.0) is compatible with the current version of Oracle.DataAccess.dll (4.112.2.0)
<runtime><assemblyBindingxmlns="urn:schemas-microsoft-com:asm.v1"><dependentAssembly><assemblyIdentityname="Oracle.DataAccess"publicKeyToken="89B483F429C47342"/><bindingRedirectoldVersion="2.111.7.10"newVersion="4.112.2.0"/></dependentAssembly></assemblyBinding></runtime>
Thanks!
Nelson

New Comment on "InstallingEntLibContrib"

$
0
0
Please provide more up-to-date documentation, like the person before me, following these instructions with latest Enterprise Library results in failure to launch config tools even

New Post: "Activation error occured while trying to get instance of type Database, key \"\""

$
0
0

I am trying to run the sample application described here:

http://devstuffs.wordpress.com/2012/03/13/enterprise-library-5-with-odp-net/

and downloaded here:

http://dl.dropbox.com/u/6963935/samples/EntLib5_ODP.NET/EntLib5ODP.NET.zip

I have modified the DefaultConnectionString to use our remote oracle database which is defined in the 'tnsnames.ora'.  We are running Oracle9i Release 2 Provider for OLE DB Version 9.2.0.7.0 (including ODAC) from

http://www.oracle.com/technetwork/database/windows/utilsoft-088126.html

It is installed C:\Oracle\ora92.  The 'tnsnames.ora' and 'sqlnet.ora' files were copied into C:\ORACLE\ora92\network\ADMIN.  We would like to upgrade our ASP.NET web application from MS Enterprise Library 1.1 to 5.0.

Q. Do I need to change the reference in the EntLib5Oracle console sample soln to use C:\ORACLE\ora92\bin\Oracle.DataAccess.dll?

When I run I get exception: "Activation error occured while trying to get instance of type Database, key \"\"".

Inner exception:

{"Resolution of the dependency failed, type = \"Microsoft.Practices.EnterpriseLibrary.Data.Database\", name = \"(none)\".\r\nException occurred while: Calling constructor EntLibContrib.Data.OdpNet.OracleDatabase(System.String connectionString, System.Collections.Generic.IEnumerable`1[[EntLibContrib.Data.OdpNet.IOraclePackage, EntLibContrib.Data.OdpNet, Version=5.0.505.0, Culture=neutral, PublicKeyToken=null]] packages, Microsoft.Practices.EnterpriseLibrary.Data.Instrumentation.IDataInstrumentationProvider instrumentationProvider).\r\nException is: TypeInitializationException - The type initializer for 'EntLibContrib.Data.OdpNet.OracleDatabase' threw an exception.\r\n-----------------------------------------------\r\nAt the time of the exception, the container was:\r\n\r\n  Resolving EntLibContrib.Data.OdpNet.OracleDatabase,DefaultConnectionString (mapped from Microsoft.Practices.EnterpriseLibrary.Data.Database, (none))\r\n  Calling constructor EntLibContrib.Data.OdpNet.OracleDatabase(System.String connectionString, System.Collections.Generic.IEnumerable`1[[EntLibContrib.Data.OdpNet.IOraclePackage, EntLibContrib.Data.OdpNet, Version=5.0.505.0, Culture=neutral, PublicKeyToken=null]] packages, Microsoft.Practices.EnterpriseLibrary.Data.Instrumentation.IDataInstrumentationProvider instrumentationProvider)\r\n"}

Failing line: UserData(),  line 17,database = EnterpriseLibraryContainer.Current.GetInstance<Database>();

Since the inner exception is EntLibContrib.Data.OdpNet.OracleDatabase I'm directing this question to you.  Please advise.. Thank you...

 

Source code checked in, #69708

Viewing all 140 articles
Browse latest View live