4
голосов
1ответов
2124 просмотров

Log files with strange names (Enterprise Library)

I'm using Enterprise Library 3.1 for logging exceptions for some web application. All exceptions should be written to a single XML file (say Errors.xml) on the same server the application run. The problem that sometime in addition to Errors.xml I see files with names like this: 7b53e14b-4b92-43b5...

0
голосов
2ответов
4507 просмотров

Enterprise Library Data Access Block Transaction Management Best Practice

What is the best practice for processing a batched series of CRUD operations in a single transaction with the Enterprise Library Data Access Block that it won't be esclated to a distributed transaction? Edit Full Source: public void BatchInsertEvents(IList<EventItem> events) { _dataAc...

0
голосов
1ответов
552 просмотров

Set maximum life of entity in Enterprise library's cache block?

In my application I want to add some items to my cache, but these items should be at most one day old. Is there an OOTB way to set the maximum life for certain objects?

3
голосов
3ответов
41051 просмотров

Implementing Log file using Enterprise Library in asp.net

I m using Microsoft Enterprise Library 3.1 for Exception Handling in asp.net, the erors are stored in Event Viewer of the system . Instead of Event Viewer I need to store these errors in a log File using Enterprise Library.

1
голосов
1ответов
739 просмотров

How to clear parameters from a Microsoft.Practices.EnterpriseLibrary.Data.Sql.SqlDatabase object?

I know you can add parameters , but how do you clear the parameters?

2
голосов
3ответов
4054 просмотров

C# DbCommand in a loop

I have a collection of files, for each file I am going to call an SP using Dbcommand in a transaction. for example: DbCommand insert = db.GetStoredProcCommand("Insert"); db.AddInParameter(insert, "FileName", System.Data.DbType.String, ID + ".xml"); db.ExecuteNonQuery(insert, trans...

1
голосов
2ответов
124 просмотров

Enterprise Application Datablocks transaction

Having a bit of trouble with the application block, trying to figure out a logical way to execute 3 SP's in a transaction. So far I have : SqlDatabase db = new SqlDatabase(this.ConnectionString ); DbCommand insertMessageDetailCommand = db.GetStoredProcCommand("InsertMessageDetail"); Looking ...

1
голосов
1ответов
435 просмотров

C# Enterprise Application Datablocks error

Can someone post a "working" example of the Enterprise Application Data block, to call a SP. All the sample code I find starts with // Create DataBase Instance Database db = DatabaseFactory.CreateDatabase(); But my code throws an object reference not set to an instance....

3
голосов
1ответов
1514 просмотров

Set default isolation level for Microsoft.Practices.EnterpriseLibrary

I've got a .net 3.5 website that calls thousands of different stored procs using Microsoft.Practices.EnterpriseLibrary. We have been getting alot of timeouts and after some playing and testing the use of (nolock) on the end of the table join in stored procs works real well and reduces the timeo...

1
голосов
1ответов
180 просмотров

What replaces Configuration Application Block(of 1.0) in Enterprise Library 4.0 or 4.1?

I remember using Configuration Application Block in Enterprise Library 1.0. What is the equivalent of it in 4.0 or 4.1 version?

4
голосов
5ответов
8931 просмотров

ERP Framework to use in development?

We are about to start developing an ERP for small companies, and the question is if there is some free framework for ERP that I can use? Is something done to accelerate the process?

0
голосов
2ответов
391 просмотров

Event Log written as Warning instead of Error

I'm using EntLib 4.1 for logging. When I have an exception handled in the Application_Error of Global.asax.cs, I log the error with a category of 'Error'. I assumed that the event log type would be 'Error', but instead the event log entry is written with a type of 'Warning' and category of 'Web E...

11
голосов
2ответов
6116 просмотров

Is there a log4net version for Silverlight?

Is there a log4net version built against Silverlight somewhere? Failing that, can someone suggest an alternative logging framework to use in Silverlight?

3
голосов
1ответов
947 просмотров

Can MS Enterprise Library Logging be used for multiple applications?

I'm wondering if its - a) possible; b) good practice - to log multiple applications to single log instance? I have several ASP.NET apps and I would like to aggregate all exceptions to a centralized location that can be queried as part of an Enterprise Dashboard app. I'm using both the EL loggin...

1
голосов
2ответов
452 просмотров

How to identify in which record the validation failed using WCF and EntLib Validation Block?

Problem: I have a WCF Webservice which can be used by customers to upload multiple datarecords. To validate the data I use Enterprise Library Validation Block. The records can be nested several layers deep. Question: How to identify in which record the validation failed? Example: Consider the fol...

1
голосов
1ответов
514 просмотров

Programmatically configure an EntLib CAB CacheManager

Currently I'm having to include a significant chunk of XML in the app.config to get the CAB CacheManager going and I'd rather hide the configuration away in my code. Is there any way to programmatically configure an Enterprise Library Caching Application Block's CacheManager?

0
голосов
2ответов
292 просмотров

Count(*) using Enterprise Library

Does anyone have any idea how to use count(*) in a dynamic query with the Enterprise Library Data Access Application Block? I am using: Public Shared Function selectCount(ByVal code As String) As Integer Dim query As String = "SELECT COUNT(*) " & _ "FROM " &amp...

0
голосов
1ответов
3960 просмотров

Enterprise Library ExceptionManager: "Log entry string is too long."

We use Microsoft's Enterprise Library (4.1) and frequently have the following problem: [ArgumentException: Log entry string is too long. A string written to the event log cannot exceed 32766 characters.] System.Diagnostics.EventLog.InternalWriteEvent(UInt32 eventID, UInt16 category, EventLogE...

5
голосов
3ответов
6375 просмотров

Compare Logging Application Block in Enterprise Library versus Log4net?

Can somebody please compare these two logging mechanism?

1
голосов
2ответов
355 просмотров

How to separate Enterprise Logging file in EventType?

I have a log Mysite.log Is possible to automatically separate in Mysite.error.log, Mysite.debug.log, Mysite.warning.log? Depending of TraceEventType?

1
голосов
1ответов
232 просмотров

Strange dll behavior (Question overhaul)

I have a dll project that references Microsoft.Practices.EnterpriseLibrary.Common.dll (="the dll") from my install dir of the Microsoft Enterprise Library 3.1. It has a public key that starts with "b03f". I have another project that references Miner.Geodatabase.dll version 9.30.2.5168 (It shows 9...

1
голосов
2ответов
342 просмотров

Validate Property With Attribute (Alternative to Enterprise Lib Validation Block)

Are there any alternative to Enterprise Library Validation Block? I want to be able to add validation attributes to my properties. Thanks

2
голосов
3ответов
1843 просмотров

WCF using Enterprise Library Validation Application Block - how to get hold of invalid messages?

I've got some WCF services (hosted in IIS 6) which use the Enterprise Library (4.0) Validation Application Block. If a client submits a message which fails validation (i.e. gets thrown back in a ValidationFault exception), I'd quite like to be able to log the message XML somewhere (using code, no...

4
голосов
6ответов
15982 просмотров

Microsoft Enterprise Library Caching Application Block not thread safe?

I created a super simple console app to test out the Enterprise Library Caching Application Block, and the behavior is baffling. I'm hoping I screwed something that's easy to fix in the setup. I have each item expire after 5 seconds for testing purposes. Basic setup -- "Every second pick a numbe...

0
голосов
1ответов
680 просмотров

Using Enterprise Library Data Access Application Block with strongly typed data sets

I want my strongly typed data sets to be database agnostic. Is it possible to use Enterprise Library Data Access Application Block with strongly typed data sets?

6
голосов
1ответов
2413 просмотров

Exception.Data info is missing in EntLib log

How do I get the Exception Handling Application Block (EHAB) to write the values from the Exception.Data property in the log? try { // ... } catch (Exception ex) { ex.Data.Add("Hello", "World"); throw ex; } The exception is logged correctly, but I can’t find the added ...

2
голосов
1ответов
4175 просмотров

Logging Application Block

I'm using the Logging Application Block in my ASP.NET application and want to convert the application to a Sharepoint WebPart. It all works fine as long as I change: <trust level="WSS_Minimal" originUrl="" /> to <trust level="Full" originUrl="" /> If not I get an exception in t...

5
голосов
4ответов
26877 просмотров

Where is App.config?

I'm trying to set up logging with Microsoft's Enterprise Library (log4net seems to be a dead project). I'm using VB .NET 2008 and VS 2008. I've searched all over the MSDN documentation, CodePlex docs (including the Hands-On labs that installed and then vanished), and online tutorials to no avail....

2
голосов
2ответов
947 просмотров

EntLib IDisposable conversion

I am using Enterprise Library 4.1. While I am executing the code by using : using ( _db = DatabaseFactory.CreateDatabase("NLayerDB") ) { DbCommand dbCommand = _db.GetStoredProcCommand("someSPName"); _db.AddInParameter(dbCommand, "Id", DbType.Int32, id); result= _db.ExecuteNonQue...

2
голосов
2ответов
1656 просмотров

EntLib Way to Bind "Null" Value to Parameter

I wish to pass Null Value to the parameter as follow: _db.AddInParameter(dbCommand, "Id", DBNull.Value, myContactPerson.Id); I am receiving the following error : "can not convert "System.DBNull to System.Data.DbType". I know the meaning of this error. But i need to supply null value to myC...