enterprise-library

MSMQ: Enterprise library msmq listener and private remote queues - cannot send message

Hi all, I have following problem: I am trying to log messages to the remote private message queue. To do this I am using Enterprise library 5.0 and msmq trace listener in my application. Unfortunately, I always end up with the following error: Exception Type: System.Messaging.MessageQueueException MessageQueueErrorCode: IllegalFo...

Is EntLib considered a plugin?

Is entlib considered a plugin (specifically the designer via right click on app/web.config)? I'm downloading/installing VS 2010 Express and I use EntLib 4 already with VS 2008 STD and I'm hoping that I'll still be able to use it with VS 2010 Express. I'd hate to have to go to manually editing the entlib config files. ...

spring Net vs enterprise library

Hi, I've been searching the web for information about a Net Framework I can use to "take it and keep it" from now on in my projects, and I've almost made a decision, but I would like some reference about what direction the market is moving on. I can't find anything in google about which is the most used, which one have the most future, e...

Microsoft Unity- Issue With Resolve

Hello, I am looking to do this: container.Resolve(); When it does this, its going to inject a IDependency into the underlying entity object. However, the dependency stored within the container requires an object of type DependencyValue, which is supplied a value from a DependencyFactory. So long story short, the issue I'm having is ...

How to maintain a Unity container reference in WCF

I'm configuring validation application block from Enterprise Library 5 to use validation rules from the web.config file over a WCF call. The problem is as new calls to the WCF service occur, validation application block is spending a considerable amount of time reading the validation configuration before validating. So my first call to...

How can you get the first validation error on a property only using Validation Application Block?

If I have two validators, a NotNullValidator and a StringLengthValidator, is there a way to get only a Null Validation Error and not both. For example: public class Test { [NotNullValidator(MessageTemplate="Name is required"), StringLengthValidator(1,50, MessageTemplate="Name must be between 1 and 50 characters")] public str...

EntLib Logger is not able to write LogEntry with a large message

Hi! I`m using EntLib 3.1 for logging in my application. Sometimes EntLib Logger is not able to log a message. XmlTraceListener is used. Especially, it happens when a message is relatively large, more than 1000 characters - exception stack trace. This very irritative when a customer sends you a log-file, that does not contain any inform...

DataAnnotations MetadataType Class Ignores Base Class Properties

I've run into a bit of a wall in trying to use the .NET DataAnnotations feature to provide simple validations in a derived class. I am marking up my class with the standard annotations included in .NET 4 (from the System.ComponentModel.DataAnnotations namespace), then using the MS Enterprise Library v5 Validation Block to process the rul...

Varbinary always is null at WCF service

my DAL is something like this: Database db = EnterpriseLibraryContainer.Current.GetInstance<Database>(); mylist = db.ExecuteSprocAccessor<EMyClass>("spMySP", param1, param2).ToList(); my SP in SQL-SEVER returns 4 normal fields plus a varbinary field that is an image my EMyClass is: public class EMyClass { public int aaa { get; ...

Retrieving parameter values using Microsoft Enterprise Library Exception Handler

We are using Enterprise Library for all our logging and exception handling needs in our app. We have added an email listener to send all the caught exceptions in email to the administrator. One requirement is that when an exception occurs in a method we need to retrieve the parameter values of the method if any and attach it to the excep...

Mapping Application Blocks in Enterprise Library 5.0 (Data Access Application Block)?

I have been dabbling at Enterprise Library 5 Data Access blocks and it is pretty neat that you can return objects using IRowMapper (with and without creating accessors) http://msdn.microsoft.com/en-us/library/ff664533%28v=PandP.50%29.aspx I have been trying to do the reverse. Save objects to DB using some sort of Mapper, but could not ...

Unity Container Memory Leaks

Hi I´m working on a project that uses Enterprice Libraries´s Unity container to resolve dependencies for exception handling, cache, logging and db access but we keep getting a lot of leaked objects into memory. We are using property injection like this: [Dependency] public Database DB { get { return db; } set { db = value; } } [De...

EntLib Caching and SQLite

Hi there I'm trying to get the Microsoft EntLib Caching Block (5.0) working with a SQLite Database and are facing some problems: When I configured the Caching Block for the MS SQL Database I had to run a sql script which created the db and some stored procedures. But I can not find any information on how to create those procedures and ...

Using Sqlite Data Provider from EntLibContrib and DAAB EntLib 5.0

Hello, is it possible to use SQLite Data Provider from EntLibContrib 4.1 in with EntLib 5.0? I'm not familiar with EntLib 4.x, I just started using EntLib 5.0 and don't know whether differences between them are severe or not to use data provider from EntLib 4.1 for EntLib 5.0. ...

Prism for .NET 3.5 and EntLib 5 (or Unity 2)

Hello, is it possible to develop with Prism under .NET 3.5 using EntLib 5? According to documentation, Prism 2.1 targets .NET 3.5, but it works with EntLib 4. And Prism 4 works with EntLib 5, but in requirements section of documentation said that .NET 4 is required. The question is: can I develop with Prism using EntLib 5? I already use...

Encypting Configuration Strings for specific Build Config

This is a follow up to the my previous post http://stackoverflow.com/questions/3684878/different-configuaration-string-for-specific-build-configuration on figuring out on how to create different configuarions for different build configurations in VS2010 (ex. "Debug", "Relese", "Myconfig") After doing so, I have 3 files, with a differenc...

Microsft Enterprise Library - How to create database based on Type

Hi, I'm using Enterprise Library 4.1. I have a new feature to implement and it requires the use of mysql. I have found Enterprise Library Contrib, which adds functionalities to use MySQL with Enterprise Lib. Works great. To get it to work, you need to call the method 'DatabaseFactory.CreateDatabase(connectionStringName);' like you w...

Unity application block 2.0 - The given assembly name or codebase was invalid.

Interfaces (In the assembly named "Interfaces". In project :- Interfaces) namespace Interfaces { public interface IDoSomeWork1 { string DoSomeWork1(); } } namespace Interfaces { public interface IDoSomeWork2 { string DoSomeWork2(); } } Dependencies (In the assembly named "Entities". In project ...

UIP Application Block in .NET 4

Hi guys, I am involved in migrating a legacy application built in .NET 1.1 to .NET 4. Is UIP (User Interface Process) still available in the latest released of EnLib 5? If no, what are my options? Regards, Karan Misra ...

I am getting This Error in Entib Library 5.0 using asp.net mvc

Hello Friends, I am getting this Error.. Here is my Web Config file looks like.. <?xml version="1.0" encoding="utf-8"?> <!-- For more information on how to configure your ASP.NET application, please visit http://go.microsoft.com/fwlink/?LinkId=152368 --> <configuration> <configSections> <!--<section name="spark" type="Spark...