Skip to main content

All Questions

Filter by
Sorted by
Tagged with
0 votes
0 answers
14 views

Enterprise logging 5.0 file rename

I am new to Microsoft enterprise library logging and i am using one in my current project. I see it is creating new files on the first logging entry renaming old by adding todays time stamp. How can i ...
Ashwini Kolekar's user avatar
1 vote
1 answer
576 views

C# EnterpriseLibrary trouble obtaining an Output Parameter

I'm writing a Stored Procedure that captures certain notes a user does in a Web Application. The procedures stores the notes, and I need the output parameter to notify the user if his/her notes have ...
Ivanovich's user avatar
0 votes
0 answers
350 views

Replacing connection string with a method in factory pattern

I am planning to replace the factory created connection string which is from web.config with a function generated connection string. I am confused where to make this change? Connection String in Web ...
SmartestVEGA's user avatar
  • 8,849
0 votes
0 answers
842 views

Enterprise library 6 logging to database and email not working on server

I have configured email and database logging using Enterprise Library 6, on a .NET 4.5 MVC application. It all works well when run in Visual Studio. However, when deployed to the server it does not ...
AAV's user avatar
  • 423
0 votes
0 answers
75 views

Enterprise Library recent version or related

I'm looking for an application block for data access, logging and exception management like Enterprise Library but i saw than the lastest version of MEL are a little obsolete (2013) Did someone know ...
Gustavo Andrés Cadavid Gomez's user avatar
0 votes
0 answers
96 views

Error on instance DataBase - Enterprise Library

I trying compile one program legacy on my company, but on instance the database ... get this error : This is my code Activation error occured while trying to get instance of type Database, key "" ...
SantiagoVictorinoC's user avatar
0 votes
1 answer
631 views

Microsoft Enterprise Library- ExecuteReader returns closed Datarow

I am facing problem with a common function that uses Execute reader that is part of Microsoft Enterprise Library. The overall code is as simple as: using (IDataReader dataReader = db.ExecuteReader(...
Riddler's user avatar
  • 566
0 votes
3 answers
12k views

Could not load file or assembly 'Microsoft.Practices.EnterpriseLibrary.Common, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or

I tried to use Logging in Enterprise Library 6.0 in VS2015 and the following exception pops up. The reference Microsoft.Practices.EnterpriseLibray.Common is already added in the references of VS2015. ...
Tarakeshwar Raju's user avatar
1 vote
1 answer
242 views

Trying to use hangfire with enterprise library fails with "could not loat ITypeRegistrationsProvider type" exception

I have an ASP.NET application which uses Enterprise Library. When I install the Hangfire nuget pacakge, the application refuses to start by throwing this exception: TypeLoadException: Could not ...
JotaBe's user avatar
  • 39k
0 votes
1 answer
330 views

Including Microsoft.Owin.Host.SystemWeb with enterpise library fails to load ITypeRegistrationsProvider

I have an ASP.NET application which uses Enterprise Library and is working fine. I'm trying to include some OWIN middleware, for which I install the Microsoft.Owin.Host.SystemWeb Nuget package. I've ...
JotaBe's user avatar
  • 39k
0 votes
0 answers
571 views

multiple user with multiple database connections at the same time

Requirement : Multiple user can work on different database at the same. User-1 connected to DB-X User-2 connected to DB-Y - What I Did : I have added a parameter of dbName with Api request. ...
Ghazni's user avatar
  • 836
1 vote
1 answer
1k views

How to use microsoft enterprise library in asp.net c# application for MySQL

I am use Database MySQL in ASP.NET c# application.When I use simple Steps for connect the MySQL database and create ADO.NET connections working fine. But I want to use Microsoft Enterprise Library for ...
kinjal's user avatar
  • 33
1 vote
1 answer
2k views

Why can't I find the Enterprise assemblies that I need to reference?

I am working on an Visual Studio application and I want to use the Data Access Application Block, which is a part of the Microsoft Enterprise library 5.0. I have been following the steps in this guide ...
Gabe Steffe's user avatar
-1 votes
1 answer
347 views

Entity framework 6 or Microsoft enterprise library for mvc project [closed]

I'm looking for better architecture for my project which huge data (many stored procedures,views, tables). Could anyone suggest which one is better - EF6 or Enterprise library to interact with data ...
omkar patade's user avatar
  • 1,591
0 votes
1 answer
160 views

Enterprise Library 5 Hybrid Configuration

We are using Enterprise Library 5.0 and would like to use the Logging application block to write log/trace messages to the Database. Doing all of the configuration in the web.config file works like a ...
KyKo's user avatar
  • 392
0 votes
1 answer
116 views

Enterprise Library reference error when opening a legacy project in vs2015

I have a legacy project that has the following references: Microsoft.Practices.EnterpriseLibrary.Common Microsoft.Practices.EnterpriseLibrary.Data When I build the project in vs2013 everything works ...
JTunney's user avatar
  • 904
3 votes
2 answers
2k views

EnterpriseLibrary 6 error: Cannot access a disposed object (Object name: 'Microsoft.Practices.EnterpriseLibrary.Logging.LogWriter')

I have an ASP.NET MVC 5 application The app uses Logging Application Block and Exception Application Block In the production environment I found the following error message happening multiple times: ...
Dragos's user avatar
  • 101
0 votes
0 answers
736 views

Semantic Logging with Enterprise Library 6 out-of-process

I've migrated to Enterprise Library 6 with semantic logging. It works fine with in process logging, but I could not get out-of-process logging working. SemanticLogging SVC is started as Windows ...
K232's user avatar
  • 1,069
0 votes
1 answer
641 views

databasefactory.cs not found error

I am using Microsoft.Practices.EnterpriseLibrary in my application. I have added Microsoft.Practices.EnterpriseLibrary.Data.dll as reference and I can see DatabaseFactory if I object browse Microsoft....
user2186239's user avatar
0 votes
1 answer
1k views

Enterprise Library Logging isn't log on SQL

I'm using EntLib 6 in order to log one webapp. Because I'm using n-layers, I wanted to put the logging in one library, accessible from all layers. I'm trying to run the logging but nothing happens, ...
clement's user avatar
  • 4,246
3 votes
3 answers
6k views

Pass (Data Table) to SQL Server From ASP.NET using Enterprise Library

public void updateSkills(DataTable candidateSkillSets) { string sqlCommand = "Sp_Candidate"; DbCommand dbCommand = db.GetStoredProcCommand(sqlCommand); db....
ch123's user avatar
  • 31
0 votes
0 answers
220 views

Enterprise Library Exception Handling Block Change between VS 2008 and VS2012

I have migrated my asp.net web application from Visual Studio 2008 to Visual Studio 2012. It is working except one case. Some place they capture exception and throw it which is captured in Global....
user3497702's user avatar
0 votes
0 answers
251 views

Converting .Net 1.0 to 2.0 causes System.TypeInitializationException error

I have converted my .Net 1.0 project to .Net 2.0 and fixed all the bugs related to conversion. My project build succeeded and loaded good in the browser, but when the code tries to access the database,...
user833011's user avatar
0 votes
1 answer
513 views

Activation error occured while trying to get instance of type AttributeValidatorFactory, key ""

I'm using Visual Studio 2010 and Enterprise Library Validation 5.0.505.0 in my class library. But I'm facing error like Activation error occured while trying to get instance of type ...
Kuntal Ghosh's user avatar
  • 3,698
1 vote
2 answers
6k views

The Enterprise Library Logging Application Block - System.InvalidOperationException: The LogWriter is already set

I'm trying to use the the Logging Exception Handler from The Enterprise Library, but once in a while when I refresh the page (obviously), I get this error: Description: An unhandled exception ...
Gerald Hughes's user avatar
1 vote
1 answer
1k views

Using SQL Server CONTEXT_INFO feature in ASP.Net + Enterprise Library (v5 & above)

I have a ASP.Net 3.5 web application with SQL 2008 as the back-end. I used ADO.Net's enterprise library Data Helper classes (Entlib 4.1) to access the DB and its stored procedures. I initially set ...
anand suryavanshi's user avatar
1 vote
0 answers
92 views

Accessing database in our Data Access Layer by invoking Stored Procedure with parameters but without Writing database.AddInParameter()

Can we have a common way of accessing database in our Data Access layer, in a way that we just pass stored procedure name (we already have access to the database i.e. connection is already made) and ...
Sharad's user avatar
  • 433
1 vote
0 answers
78 views

Enterprise Library exception logging

Is it possible to configure Enterprise library to actually log the actual sql statement which is causing the exception? We have an application which randomly throws a timeout exception in the ...
user18620's user avatar
  • 120
0 votes
1 answer
117 views

Insert into a newly created table using enterprise library without refreshing the existing edmx

Here is the case: I have an existing project created using entity framework. Now I have to create a new form and save its data to a new table using enterprise library. But the catch is that I have to ...
Mahatma Aladdin's user avatar
4 votes
1 answer
2k views

Enterprise Library issue

We are using Enterprise Library 6.0 and the following code to create database instance and execute a stored procedure? Any help highly appreciated. Thanks in Advance. DatabaseProviderFactory ...
kishore's user avatar
  • 104
5 votes
2 answers
2k views

Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. Enterprise Library

My ASP.NET 4.0 production application is experiencing re-occurring issues that cause the site to become unresponsive due to timeout errors. Here is a brief overview of the application. The ...
Yury Prime's user avatar
6 votes
1 answer
2k views

Azure Web Role with Transient Fault Handling Block exception: The path is too long after being fully qualified

We applied Transient Fault Handling Block for our web role of cloud service, we even didn't write one single line code. When we try to debug our cloud service locally, the exception would show on ...
Jerry Bian's user avatar
  • 4,228
-7 votes
1 answer
539 views

Memory leak in Data Access layer using enterprise library

namespace DAL { public class DatabaseService { Database dal; string query; DataSet ds = new DataSet(); DbCommand cmd; public DateTime GetCurrentDateTime(...
user2532037's user avatar
5 votes
2 answers
4k views

Data Access Application Block for .NET 4.5 using MVC 4

I'm trying to develop an application using MVC 4. Earlier I was using Generic repository for accessing my database . But later I was suggested to use Data Access Application Block to access Data Base ...
Mahima Gandhe's user avatar
0 votes
2 answers
9k views

Microsoft.Practices.ServiceLocation.ActivationException was unhandled by user code

I am working on migrating the current ASP.NET application from 2.0 to 4.0 and also trying to migrate the enterprise library to 5.0 from 4.0 I have made all the necessary changes in the configuration ...
user2407315's user avatar
2 votes
0 answers
98 views

Is it thread safe to store Enterprise Library’s ExceptionManager in a static variable?

I am using EL 6 with ASP.NET 4.5. I have a static constructor that uses ExceptionPolicyFactory to instantiate an instance of ExceptionManager and stores it in in a static variable. The rest of ASP....
Allan Xu's user avatar
  • 9,228
0 votes
0 answers
164 views

TFS "always" keep asking me for check-out using visual studio online

For enterprise library .edmx file. When I added new table or modified table it keep asking me for check-out which is already checked-out. I am using VS Express 2012 , Visual Stuido online (TFS). EL 5....
James123's user avatar
  • 11.6k
1 vote
1 answer
1k views

Alternatives for Enterprise Library Authorization Provider

I have a ASP.NET project in which the Authorization rules are defined by extending the AuthorizationProvider abstract class which comes under Microsoft Enterprise Library. When I go to its ...
Nipuna's user avatar
  • 6,996
0 votes
1 answer
815 views

Invalid character in a Base-64 string for connection string

I have a Sql Server 2008 R2 connection string that looks like <add name="DBConnectionString" providerName="System.Data.SqlClient" connectionString="Data Source=AYZ;Initial Catalog=AYZ;User ID=...
zen2012's user avatar
  • 27
1 vote
2 answers
918 views

Invalid Character in Base-64 String” using ASP.NET

I have a Sql Server 2008 R2 connection string that looks like <add name="DBConnectionString" providerName="System.Data.SqlClient" connectionString="Data Source=AYZ;Initial Catalog=AYZ;User ID=...
zen2012's user avatar
  • 27
1 vote
0 answers
49 views

Any gotchas when upgrading Unity v2.1 to v3.0?

I have a legacy ASP.NET WebForms 3.5 application suite which extensively uses EnterpriseLibrary v5; big chunks of the core libraries are also used in console apps and Windows services. We use Unity v2....
David Keaveny's user avatar
0 votes
1 answer
127 views

What are Trace Sources?

I'm reading about the Logging application block in EntLib 5.0. This article proved useful to understanding the concepts but I still don't get the trace sources. I'm mainly a Java guy and more used to ...
JohnDoDo's user avatar
  • 4,900
4 votes
2 answers
2k views

ASP.NET Dependency Injection HTTP Module (MS Enterprise Library)

I've been following the steps in the 'Microsoft Enterprise Library 5.0' documentation to create a HTTP module to inject a reference to the Enterprise Library container into the pages of ASP.NET web ...
Ciaran Gallagher's user avatar
0 votes
1 answer
635 views

Enterprise Library Cache Manager "Index was outside the bounds of the array" error

I have an intermittent issue with caching using the Microsoft Enterprise Library’s caching block in that when retrieving items from the cache I am getting an Index was outside the bounds of the array ...
Mark Erasmus's user avatar
  • 2,385
2 votes
0 answers
571 views

empty output parameter from parameter arraylist (enterprise library 6)

Trying to implement Enterprise Library v.6 Data Access Blocks. Former code (using Sqlhelper from MS Application Blocks) made use of SqlParameter array, but that's causing a lot of issues. Instead ...
Survey Project Coördinator's user avatar
0 votes
1 answer
386 views

EnterpriseLibrary issue on live server

After configuring my application in client's System, I am facing following issue. Could not load file or assembly 'Microsoft.Practices.EnterpriseLibrary.Common, Version=5.0.414.0, Culture=neutral, ...
Hardik's user avatar
  • 1,764
0 votes
1 answer
472 views

Enterprise Pattern and Practise: configure Sql Azure transient fault Configuration

I am trying to implement SQL Azure Transient Fault Configuration in my ASP.NET application. I am trying to following: http://msdn.microsoft.com/en-us/library/hh680899(v=pandp.50).aspx Though I didn'...
Sumit Gupta's user avatar
  • 2,202
0 votes
1 answer
519 views

Web Client Software Factory 2008 ASP.NET project migration to dotNET 4.5 64 bit possible?

I have old Web Client Software Factory project built with VS2008, WCSF 2008 and MS Enterprise Library 3.1 I have to make changes to the project so I migrated the solution to Visual Studio 2012. It ...
mitaka's user avatar
  • 2,189
1 vote
1 answer
798 views

Categorizing the logging in enterprise logging c#

In my application I am logging the exceptions and warnings into a log file. Now I want to log these exceptions and warnings in to categories. There should be four methods corresponding to Critical, ...
Srikanth's user avatar
  • 129
1 vote
1 answer
2k views

Log messages going to previously created log file

I am using enterprise library 5.0 logging in my asp.net site, My web.config file is as follows: <?xml version="1.0"?> <configuration> <configSections> <section name="...
Bender's user avatar
  • 7,562