473,382 Members | 1,165 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Enterprise library: The current build operation failed

It looks like that there is very little resource about the Enterprise
Library on the Web. I know it is documented at msdn, but I haven't
found a whole lot sample codes.

I was trying out the ExceptionHandling block. So I followed the
example at

http://www.codersource.net/csharp_ex...e_library.aspx

When I debug it, I get this:

Microsoft.Practices.EnterpriseLibrary.ExceptionHan dling.ExceptionHandlingException
was unhandled by user code
Message="The current build operation (build key Build
Key[Microsoft.Practices.EnterpriseLibrary.ExceptionHan dling.ExceptionPolicyImpl,
General Exception]) failed: Object reference not set to an instance of
an object. (Strategy type
Microsoft.Practices.EnterpriseLibrary.Common.Confi guration.ObjectBuilder.ConfiguredObjectStrategy,
index 2)"
Source="Microsoft.Practices.EnterpriseLibrary.Exce ptionHandling"

I googled and found this:

http://groups.google.com/group/micro...PolicyImpl%2C#

Where Jeff Win, who also seems to be active in this csharp group, says
that the problems is that

Microsoft.Practices.EnterpriseLibrary.ExceptionHan dling.WCF,
Version=4.0.0.0,

was not included in the bin folder.

But, I do have it in my bin folder. However, I do notice that the
version says 1 [Neutral], instead of 4. I don't know why though, I
did install Enterprise Library 4.0 and added those dll's into my bin
folder of my website.

Any idea how to combat this error?

Sep 18 '08 #1
1 6672
On Sep 18, 3:02*pm, Author <gnewsgr...@gmail.comwrote:
It looks like that there is very little resource about the Enterprise
Library on the Web. *I know it is documented at msdn, but I haven't
found a whole lot sample codes.

I was trying out the ExceptionHandling block. *So I followed the
example at

http://www.codersource.net/csharp_ex...terprise_libra...

When I debug it, I get this:

Microsoft.Practices.EnterpriseLibrary.ExceptionHan dling.ExceptionHandlingException
was unhandled by user code
* Message="The current build operation (build key Build
Key[Microsoft.Practices.EnterpriseLibrary.ExceptionHan dling.ExceptionPolicyImpl,
General Exception]) failed: Object reference not set to an instance of
an object. (Strategy type
Microsoft.Practices.EnterpriseLibrary.Common.Confi guration.ObjectBuilder.ConfiguredObjectStrategy,
index 2)"
* Source="Microsoft.Practices.EnterpriseLibrary.Exce ptionHandling"

I googled and found this:

http://groups.google.com/group/micro...general/browse...

Where Jeff Win, who also seems to be active in this csharp group, says
that the problems is that

Microsoft.Practices.EnterpriseLibrary.ExceptionHan dling.WCF,
Version=4.0.0.0,

was not included in the bin folder.

But, I do have it in my bin folder. *However, I do notice that the
version says 1 [Neutral], instead of 4. *I don't know why though, I
did install Enterprise Library 4.0 and added those dll's into my bin
folder of my website.

Any idea how to combat this error?
BTW, the exception occurs at the following line:

bool rethrow = ExceptionPolicy.HandleException(exception, "Divide By
Zero");
Sep 18 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: John Morgan | last post by:
I have Enterprise Manager on my local machine. For the last twelve months it has been connecting without problem to my online SQL Server database provided by my ISP. Three weeks ago the ISP...
4
by: JV | last post by:
I added enterprise library logging to an application using a custom event log. It works but it generates error entries in the Application log as well. Apparently it's trying to create some sort...
4
by: P.Kienzle | last post by:
When I try to run the Build for the Enterprise Library, I get several messages referring to the .csproj files... stating that they are not installed (see below). They are located at the directory...
0
by: ritesh.singhal | last post by:
Hi, I am trying to do server side office automation. I have a word template which I am trying to populate with data from SQL server but when I try to generate the Word document I get following...
13
by: Alan Silver | last post by:
Hello, MSDN (amongst other places) is full of helpful advice on ways to do data access, but they all seem geared to wards enterprise applications. Maybe I'm in a minority, but I don't have those...
7
by: rockdale | last post by:
hi, I just downloaded Microsoft Enterprise Library Jan 2006 and try to integrate it into my asp.net application. As i am going to connect to mySQL database, I need to include the source code in my...
3
by: bungle | last post by:
Hi, I have started using MS Enterprise Library for the data access layer and found it great. I have changed to coding on another machine though and didn't think it necessary to a full install of...
0
by: xieml2007 | last post by:
Dear Madam or Sir, I encountered one problem which is quite similiar to the discussions launched at the web site: http://www.thescripts.com/forum/thread280324.html
0
by: =?Utf-8?B?UG9sbHkgQW5uYQ==?= | last post by:
Hi, I have previously used EL v 3.1 Exception Handling application block successfully. I thought I would now try to do the same with EL v 4.0. My first experiment was to replace an exception....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.