Exception from HRESULT: 0x8004D024

Last post 06-14-2009 4:17 AM by Zulya. 2 replies.

Sort Posts:

  • Exception from HRESULT: 0x8004D024

    06-13-2009, 3:37 AM
    • Member
      point Member
    • Zulya
    • Member since 06-13-2009, 3:31 AM
    • Russia
    • Posts 4
    Help please.
     

    Server Error in '/' Application.

    The transaction manager has disabled its support for remote/network transactions. (Exception from HRESULT: 0x8004D024)

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.Runtime.InteropServices.COMException: The transaction manager has disabled its support for remote/network transactions. (Exception from HRESULT: 0x8004D024)

    Source Error:

    Line 658:            cmd.Parameters.Add("@Quantity", SqlDbType.Int).Value = orderItem.Quantity;
    Line 659:            cmd.Parameters.Add("@OrderItemID", SqlDbType.Int).Direction = ParameterDirection.Output;
    Line 660:            cn.Open();
    Line 661:            int ret = ExecuteNonQuery(cmd);
    Line 662:            return (int)cmd.Parameters["@OrderItemID"].Value;

    Source File: d:\hst\ae-infosev_c\http\App_Code\DAL\SqlClient\SqlStoreProvider.cs    Line: 660
  • Re: Exception from HRESULT: 0x8004D024

    06-13-2009, 11:39 PM
    • Participant
      834 point Participant
    • abinashpatra
    • Member since 02-23-2009, 7:06 AM
    • Bangalore
    • Posts 243

    Zulya:
    cn.Open();

     

    I think (looking at the exception), the problem is with the connectivity to the DB server. Please try and ping the DB server from the web server(Or from where you are executing this application). This would give a fair idea on the problem.

    I think connection string is correct. Else the error would be connection could not be opened. 

     

    Best Regards,
    Abinash Patra

    Please mark the post as answer, if you find this useful.

  • Re: Exception from HRESULT: 0x8004D024

    06-14-2009, 4:17 AM
    • Member
      point Member
    • Zulya
    • Member since 06-13-2009, 3:31 AM
    • Russia
    • Posts 4
    Thank you, problem solved.  Replaced by the transaction

    TransactionScope scope = new TransactionScope()

    on these lines

    ServiceConfig svcConfig = new ServiceConfig();

    svcConfig.TrackingEnabled = true;

    svcConfig.TrackingAppName = "TheBeerHouse";

    svcConfig.TrackingComponentName = "MB.TheBeerHouse.BLL.Store";

    //svcConfig.Transaction = TransactionOptions.RequiresNew;

    svcConfig.IsolationLevel = TransactionIsolationLevel.ReadCommitted;

    ServiceDomain.Enter(svcConfig);

    now everything works fine

    sorry for my english

Page 1 of 1 (3 items)