enterprise-library

How to force Visual Studio to reference local Enterprise Library DLL file instead of installed dir file

半城伤御伤魂 提交于 2019-12-04 05:03:24
问题 I've got a asp.net project that references Enterprise Library DLL's. I can build and deploy my project but the deployment build fails because it can't find the DLL's. I peeked at the properties for Microsoft.Practices.EnterpriseLibrary.Common, for example, and I notice that the file path is where it was installed in \Program Files\yada yada... I've attempted Add Reference to my project and specifically choose the dll from my /lib folder which gets deployed with my project. VS just seems to

where enterprise library 4.1 logger, logs?

旧街凉风 提交于 2019-12-04 04:44:25
问题 I have done its configurations using configuration wizard but I couldn't understand where it is logging messages. I even see app.config file but couldn't find any logging source. Please guide me where it does logs and how I can check that log. Here is my config file: <?xml version="1.0" encoding="utf-8"?> <configuration> <configSections> <section name="loggingConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.LoggingSettings, Microsoft.Practices.EnterpriseLibrary

A Cause for HRESULT 0X80131468 when accessing IsolatedStorageBackingStore

三世轮回 提交于 2019-12-04 03:48:19
问题 The scenario I am facing is that I have an ASP.NET web service (.NET 3.5) running on an W2k3 server which is using the CacheManager/IsolatedStorage store to store a persisted state variable. This configuration has been working fine for quite sometime until we changed the physical machine. Now whenver the code that accesses that value runs it throws an IsolatedStorageException (Posted below). As I understand it the user/assembly store is what is being accessed and the executing user is a

BackgroundWorker exception handling

无人久伴 提交于 2019-12-04 02:16:58
I'm working with the following components: a Library (which throws an exception) a test-console to test my logging the enterprise library exception handling application blocks the enterprise library logging application blocks I'm invoking the library method by using a backgroundworker. The library throws the exception but the RunWorkerCompleted handler is never called. The only way to catch the exception is to surround my DoWork handler code with a try/catch block. Did is misunderstand the RunWorkerCompletedEventArgs.Error Property? Isn't it for getting exceptions which got caught by the

Connecting Oracle using ODP.NET with Enterprise Library DAAB

蓝咒 提交于 2019-12-04 02:13:08
问题 Our application is using Enterprise Library DAAB to support both oracle and sql databases. One of the Stored Procedure is for uploading Image to Table. It's a BLOB field and the parameter is set to DbType.Binary. This functionality works without any problem for SQL, But when comes to Oracle I hit the 32K parameter size limit issue. As suggested in SO, I moved the code to ODP.NET, but I am still facing the same problem. My App.config file setting: <configuration> <configSections> <section name

Enterprise Library Logging not logging to Event Log from ASP.NET

你离开我真会死。 提交于 2019-12-04 00:55:28
I spent a day trying to make Ent Lib Logging work and log anything into database or event log. I have a web application and console application with the same Ent Lib config but only the console application is capable to log into the Event Log. I tried everything with permissions but I don't know what exactly I am doing — which services should have what. It does not work! I read articles like this http://imar.spaanjaars.com/275/logging-errors-to-the-event-log-in-aspnet-applications and I want to try to give the ASPNET account those permissions. I am using Windows 7 and I cannot find ASPNET user

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

倾然丶 夕夏残阳落幕 提交于 2019-12-03 20:10:50
public void updateSkills(DataTable candidateSkillSets) { string sqlCommand = "Sp_Candidate"; DbCommand dbCommand = db.GetStoredProcCommand(sqlCommand); db.AddInParameter(dbCommand, "candidateSkillSets",DbType.Object, candidateSkillSets); db.ExecuteNonQuery(dbCommand); } I have a method like the above, here i am passing the datatable to the stored procedure by adding the parameter."DbType.Object" is not taking the datatable type. I know in ADO we can use "SqlDbType.Structured", but for enterprise libray it is not working. What i have to use instead? I am getting the following error while

Database Logging with Enterprise Library 5

南笙酒味 提交于 2019-12-03 16:23:28
Anybody knows how to implement database exception logging using EL 5.0? Thanks! You will need to run a script against the database so that it creates a specific table structure for you. Also, there will be a stored procedure that will be created that you will have to reference in the Trace Listener's configuration section. You should be able to find this script file here: C:\EntLib41Src\Blocks\Logging\Src\DatabaseTraceListener\Scripts folder. I know this is for version 4 of the library, but looking into the version 5, I realized that the folder structure has taken a change and the script

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

 ̄綄美尐妖づ 提交于 2019-12-03 16:03:16
I have integrated my project with another one (MVC3 application). Then I'm getting below error. Both the projects are working fine with the Microsoft Enterprise Library version 5.2.414.0 . After integrating only some of the pages are working and remaining pages throwing below exception. Could not load file or assembly 'Microsoft.Practices.EnterpriseLibrary.Data, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. This usually happens if the reference does not have "CopyLocal" flag set to true. To solve:

Logging from multiple processes to same file using Enterprise Library 4.1

主宰稳场 提交于 2019-12-03 13:00:42
I have several processes running concurrently that I want to log to the same file. We have been using Enterprise Library 4.1 Logging Application Block (with a RollingFlatFileTraceListener ), and it works fine, apart from the fact that it prepends a GUID to the log file name when two processes try to write to the log file at the same time (a quirk of System.Diagnostics.TextWriterTraceListener I believe). I've tried various things, including calling Logger.Writer.Dispose() after writing to the log file, but it's not ideal to do a blocking call each time a log entry is being written. The EntLib