Enterprise library: The current build operation failed

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Author

    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 ExceptionHandli ng block. So I followed the
    example at



    When I debug it, I get this:

    Microsoft.Pract ices.Enterprise Library.Excepti onHandling.Exce ptionHandlingEx ception
    was unhandled by user code
    Message="The current build operation (build key Build
    Key[Microsoft.Pract ices.Enterprise Library.Excepti onHandling.Exce ptionPolicyImpl ,
    General Exception]) failed: Object reference not set to an instance of
    an object. (Strategy type
    Microsoft.Pract ices.Enterprise Library.Common. Configuration.O bjectBuilder.Co nfiguredObjectS trategy,
    index 2)"
    Source="Microso ft.Practices.En terpriseLibrary .ExceptionHandl ing"

    I googled and found this:



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

    Microsoft.Pract ices.Enterprise Library.Excepti onHandling.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?

  • Author

    #2
    Re: Enterprise library: The current build operation failed

    On Sep 18, 3:02 pm, Author <gnewsgr...@gma il.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 ExceptionHandli ng block.  So I followed the
    example at
    >
    http://www.codersource.net/csharp_ex...terprise_libra...
    >
    When I debug it, I get this:
    >
    Microsoft.Pract ices.Enterprise Library.Excepti onHandling.Exce ptionHandlingEx ception
    was unhandled by user code
      Message="The current build operation (build key Build
    Key[Microsoft.Pract ices.Enterprise Library.Excepti onHandling.Exce ptionPolicyImpl ,
    General Exception]) failed: Object reference not set to an instance of
    an object. (Strategy type
    Microsoft.Pract ices.Enterprise Library.Common. Configuration.O bjectBuilder.Co nfiguredObjectS trategy,
    index 2)"
      Source="Microso ft.Practices.En terpriseLibrary .ExceptionHandl ing"
    >
    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.Pract ices.Enterprise Library.Excepti onHandling.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 .HandleExceptio n(exception, "Divide By
    Zero");

    Comment

    Working...