none
dfloadbalancer.exe crashes with Windows Azure Tools 1.3

    Question

  • Hello everyone, I've just installed the Windows Azure Tools 1.3. Now I'm not able to run a project that worked absolutely fine with the previous SDK. Immediately after starting my WebRole, the applications login form appears and dfloadbalancer.exe crashes.

     

    Here's the stacktrace:

     

       bei System.Net.Sockets.Socket.Shutdown(SocketShutdown how)

       bei Microsoft.ServiceHosting.Tools.DevelopmentFabric.LoadBalancer.ConnectionInfo.Release()

       bei Microsoft.ServiceHosting.Tools.DevelopmentFabric.LoadBalancer.ServerConnector.Stop()

       bei Microsoft.ServiceHosting.Tools.DevelopmentFabric.LoadBalancer.PacketForwarder.ProcessReceive(IAsyncResult result)

       bei System.Net.LazyAsyncResult.Complete(IntPtr userToken)

       bei System.Threading.ExecutionContext.runTryCode(Object userData)

       bei System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)

       bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)

       bei System.Net.ContextAwareResult.Complete(IntPtr userToken)

       bei System.Net.LazyAsyncResult.ProtectedInvokeCallback(Object result, IntPtr userToken)

       bei System.Net.Sockets.BaseOverlappedAsyncResult.CompletionPortCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* nativeOverlapped)

       bei System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)

     

    Any idea why this happens and how to get around this problem?

     

     

    Regards,
    Daniel

    Friday, December 03, 2010 4:10 PM

Answers

  • Workaround

    1. Disable the checkbox "Launch browser for HTTP endpoint" in your WebRoles configuration
    2. Start a new debug session
    3. Browse to http://localhost:5100 (address can be found in IIS manager)
    4. Everything should work as expected

    • Marked as answer by Mog Liang Friday, December 10, 2010 10:07 AM
    Saturday, December 04, 2010 8:39 PM

All replies

  • Is web.config readonly?

    If it is readn only, the project will not start... I don't remember the exact exception..

    Hope this can help.

    Friday, December 03, 2010 5:12 PM
  • There're no readonly files in my project.

    Anyway, I've found the line of code that lets the dfloadbalancer.exe crash:

     

    if (authCookie == null)
    {
     filterContext.HttpContext.Response.Redirect(loginUrl, true); // dfloadbalancer.exe crashes here
    }
    

     

    The problem does not occur when the following code is executed:

     

    if (authCookie == null)
    {
     filterContext.HttpContext.Response.Redirect(loginUrl); // works fine
    }
    
    

    However, this is not a solution, just an ugly workaround.

    I was wrong. It was just by fluke that dfloadbalancer didn't crash in my last debug session. In a few more test runs it crashed at every redirect.

     

    Friday, December 03, 2010 6:30 PM
  • Workaround

    1. Disable the checkbox "Launch browser for HTTP endpoint" in your WebRoles configuration
    2. Start a new debug session
    3. Browse to http://localhost:5100 (address can be found in IIS manager)
    4. Everything should work as expected

    • Marked as answer by Mog Liang Friday, December 10, 2010 10:07 AM
    Saturday, December 04, 2010 8:39 PM
  • Hi Daniel,

    I am using the Azure Emulator in the way you describe, and I am encountering the same error - dfloadbalancer.exe crashes too.

    So the workaround is not working for me

    Regards,
    Miroslav Sekera
    NineBytes s.r.o.
    developing www.glueo.com

    Wednesday, February 09, 2011 5:33 PM
  • I have the same problem and I'm running the Windows Azure 1.4 SDK with the August 2011 Update. The error happens randomly while browsing locally. Here's the event viewer

    Fault bucket , type 0 Event Name: CLR20r3 Response: Not available Cab Id: 0 Problem signature: P1: dfloadbalancer.exe P2: 1.0.0.0 P3: 4d6ac6a8 P4: System P5: 2.0.0.0 P6: 4db90c9f P7: 2d15 P8: 81 P9: System.Net.Sockets.Socket P10: Attached files: C:\Users\jstawski\AppData\Local\Temp\WER5571.tmp.WERInternalMetadata.xml These files may be available here: C:\ProgramData\Microsoft\Windows\WER\ReportArchive\AppCrash_dfloadbalancer.e_6aa5d5896c7e593c0ba76f41e57286138a2621e_245d5d2e Analysis symbol: Rechecking for solution: 0 Report Id: 81c496f7-cff4-11e0-97cb-00125a5e4e5a Report Status: 1

    Here's the Report.wer file

    Version=1
    EventType=CLR20r3
    EventTime=129588445887239303
    ReportType=2
    Consent=1
    UploadTime=129588445888119354
    ReportIdentifier=81c496f7-cff4-11e0-97cb-00125a5e4e5a
    Response.type=4
    Sig[0].Name=Problem Signature 01
    Sig[0].Value=dfloadbalancer.exe
    Sig[1].Name=Problem Signature 02
    Sig[1].Value=1.0.0.0
    Sig[2].Name=Problem Signature 03
    Sig[2].Value=4d6ac6a8
    Sig[3].Name=Problem Signature 04
    Sig[3].Value=System
    Sig[4].Name=Problem Signature 05
    Sig[4].Value=2.0.0.0
    Sig[5].Name=Problem Signature 06
    Sig[5].Value=4db90c9f
    Sig[6].Name=Problem Signature 07
    Sig[6].Value=2d15
    Sig[7].Name=Problem Signature 08
    Sig[7].Value=81
    Sig[8].Name=Problem Signature 09
    Sig[8].Value=System.Net.Sockets.Socket
    DynamicSig[1].Name=OS Version
    DynamicSig[1].Value=6.1.7601.2.1.0.256.1
    DynamicSig[2].Name=Locale ID
    DynamicSig[2].Value=1033
    UI[2]=C:\Program Files\Windows Azure SDK\v1.4\Bin\devfabric\dfloadbalancer.exe
    UI[3]=dfloadbalancer.exe has stopped working
    UI[4]=Windows can check online for a solution to the problem.
    UI[5]=Check online for a solution and close the program
    UI[6]=Check online for a solution later and close the program
    UI[7]=Close the program
    LoadedModule[0]=C:\Program Files\Windows Azure SDK\v1.4\Bin\devfabric\dfloadbalancer.exe
    LoadedModule[1]=C:\Windows\SYSTEM32\ntdll.dll
    LoadedModule[2]=C:\Windows\SYSTEM32\MSCOREE.DLL
    LoadedModule[3]=C:\Windows\system32\KERNEL32.dll
    LoadedModule[4]=C:\Windows\system32\KERNELBASE.dll
    LoadedModule[5]=C:\Windows\system32\ADVAPI32.dll
    LoadedModule[6]=C:\Windows\system32\msvcrt.dll
    LoadedModule[7]=C:\Windows\SYSTEM32\sechost.dll
    LoadedModule[8]=C:\Windows\system32\RPCRT4.dll
    LoadedModule[9]=C:\Windows\Microsoft.NET\Framework64\v4.0.30319\mscoreei.dll
    LoadedModule[10]=C:\Windows\system32\SHLWAPI.dll
    LoadedModule[11]=C:\Windows\system32\GDI32.dll
    LoadedModule[12]=C:\Windows\system32\USER32.dll
    LoadedModule[13]=C:\Windows\system32\LPK.dll
    LoadedModule[14]=C:\Windows\system32\USP10.dll
    LoadedModule[15]=C:\Windows\system32\IMM32.DLL
    LoadedModule[16]=C:\Windows\system32\MSCTF.dll
    LoadedModule[17]=C:\Windows\Microsoft.NET\Framework64\v2.0.50727\mscorwks.dll
    LoadedModule[18]=C:\Windows\WinSxS\amd64_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.4940_none_88df89932faf0bf6\MSVCR80.dll
    LoadedModule[19]=C:\Windows\system32\shell32.dll
    LoadedModule[20]=C:\Windows\system32\ole32.dll
    LoadedModule[21]=C:\Windows\system32\profapi.dll
    LoadedModule[22]=C:\Windows\assembly\NativeImages_v2.0.50727_64\mscorlib\8f7abb6f7384aad8fc43659820726eab\mscorlib.ni.dll
    LoadedModule[23]=C:\Windows\Microsoft.NET\Framework64\v2.0.50727\mscorsec.dll
    LoadedModule[24]=C:\Windows\system32\WINTRUST.dll
    LoadedModule[25]=C:\Windows\system32\CRYPT32.dll
    LoadedModule[26]=C:\Windows\system32\MSASN1.dll
    LoadedModule[27]=C:\Windows\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_5.82.7601.17514_none_a4d6a923711520a9\COMCTL32.dll
    LoadedModule[28]=C:\Windows\system32\CRYPTSP.dll
    LoadedModule[29]=C:\Windows\system32\rsaenh.dll
    LoadedModule[30]=C:\Windows\system32\CRYPTBASE.dll
    LoadedModule[31]=C:\Windows\system32\imagehlp.dll
    LoadedModule[32]=C:\Windows\system32\ncrypt.dll
    LoadedModule[33]=C:\Windows\system32\bcrypt.dll
    LoadedModule[34]=C:\Windows\system32\bcryptprimitives.dll
    LoadedModule[35]=C:\Windows\system32\USERENV.dll
    LoadedModule[36]=C:\Windows\system32\GPAPI.dll
    LoadedModule[37]=C:\Windows\system32\cryptnet.dll
    LoadedModule[38]=C:\Windows\system32\WLDAP32.dll
    LoadedModule[39]=C:\Windows\system32\SensApi.dll
    LoadedModule[40]=C:\Windows\system32\Cabinet.dll
    LoadedModule[41]=C:\Windows\system32\DEVRTL.dll
    LoadedModule[42]=C:\Windows\Microsoft.NET\Framework64\v2.0.50727\mscorjit.dll
    LoadedModule[43]=C:\Windows\assembly\NativeImages_v2.0.50727_64\System\3e6eefab37b44e147db80a3c34f0ac05\System.ni.dll
    LoadedModule[44]=C:\Windows\assembly\NativeImages_v2.0.50727_64\System.ServiceModel\962330ba0685ac1176b611bc052d0ca7\System.ServiceModel.ni.dll
    LoadedModule[45]=C:\Program Files\Windows Azure SDK\v1.4\Bin\devfabric\Microsoft.ServiceHosting.Tools.DevelopmentFabric.LoadBalancer.dll
    LoadedModule[46]=C:\Windows\assembly\NativeImages_v2.0.50727_64\SMDiagnostics\c268879bbddc814fadfe497300c03752\SMDiagnostics.ni.dll
    LoadedModule[47]=C:\Windows\assembly\NativeImages_v2.0.50727_64\System.Configuration\df2bfb30ffdbfbb49d2c5ef6fc763578\System.Configuration.ni.dll
    LoadedModule[48]=C:\Windows\assembly\NativeImages_v2.0.50727_64\System.Xml\318b11a6b944c9ef2998d374c9d5bda8\System.Xml.ni.dll
    LoadedModule[49]=C:\Windows\assembly\NativeImages_v2.0.50727_64\System.Runtime.Seri#\50faf7f472bfc6d562696341df45b3c9\System.Runtime.Serialization.ni.dll
    LoadedModule[50]=C:\Windows\assembly\NativeImages_v2.0.50727_64\System.WorkflowServ#\394711b95ef17f6a7314eca2aba756e7\System.WorkflowServices.ni.dll
    LoadedModule[51]=C:\Windows\assembly\NativeImages_v2.0.50727_64\System.ServiceModel#\667a561422e2ccf10daef0a5dc6c8043\System.ServiceModel.Web.ni.dll
    LoadedModule[52]=C:\Windows\assembly\GAC_MSIL\Microsoft.VisualStudio.Diagnostics.ServiceModelSink\3.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.Diagnostics.ServiceModelSink.dll
    LoadedModule[53]=C:\Windows\system32\VERSION.dll
    LoadedModule[54]=C:\Windows\assembly\GAC_MSIL\Microsoft.ServiceBus\1.0.0.0__31bf3856ad364e35\Microsoft.ServiceBus.dll
    LoadedModule[55]=C:\Windows\assembly\NativeImages_v2.0.50727_64\System.IdentityModel\df0cb96e6d087500c9210b33be2c91c9\System.IdentityModel.ni.dll
    LoadedModule[56]=C:\Windows\system32\security.dll
    LoadedModule[57]=C:\Windows\system32\SECUR32.DLL
    LoadedModule[58]=C:\Windows\system32\SSPICLI.DLL
    LoadedModule[59]=C:\Windows\system32\credssp.dll
    LoadedModule[60]=C:\Windows\system32\msv1_0.DLL
    LoadedModule[61]=C:\Windows\system32\cryptdll.dll
    LoadedModule[62]=C:\Windows\assembly\NativeImages_v2.0.50727_64\System.Transactions\5fbe4fcbb4259d38e57006802c957e23\System.Transactions.ni.dll
    LoadedModule[63]=C:\Windows\assembly\GAC_64\System.Transactions\2.0.0.0__b77a5c561934e089\System.Transactions.dll
    LoadedModule[64]=C:\Windows\assembly\NativeImages_v2.0.50727_64\System.Core\5f7c48b31971fee1af48dd20c7dd7033\System.Core.ni.dll
    LoadedModule[65]=C:\Windows\assembly\NativeImages_v2.0.50727_64\System.Web\01e1dddd3684f57d19699eeb1fad3892\System.Web.ni.dll
    LoadedModule[66]=C:\Windows\system32\ws2_32.dll
    LoadedModule[67]=C:\Windows\system32\NSI.dll
    LoadedModule[68]=C:\Windows\system32\mswsock.dll
    LoadedModule[69]=C:\Windows\System32\wshtcpip.dll
    LoadedModule[70]=C:\Windows\System32\wship6.dll
    LoadedModule[71]=C:\Windows\system32\apphelp.dll
    FriendlyEventName=Stopped working
    ConsentKey=CLR20r3
    AppName=dfloadbalancer.exe
    AppPath=C:\Program Files\Windows Azure SDK\v1.4\bin\devfabric\DFloadbalancer.exe
    ReportDescription=Stopped working
    Friday, August 26, 2011 3:12 PM
  • Hi Jonas,

    I had a very similar issue (with Azure SDK 1.4 installed) to this and the cause turned out to be a malformed connection string. Also, I saw many more of these errors when we were experiencing network connectivity issues and were deveoping against an Azure database in the cloud. It may be worth reviewing any connection strings, and network connectivity of the app to ensure that all of that is ok - especially as the namespace System.Net.Sockets.Socket  is mentioned.

    Hope this helps,

    Nick

    Friday, September 02, 2011 2:24 PM