App Fabric Visual Studio 2013 Issue
Asked Answered
R

1

1

I've upgraded my solution to work with VS2013. All builds fine.

However it seems to an issue with initialising AppFabric and it appears to be hanging on the line:

new DataCacheFactory();

The exact same code is working fine in VS2010 so it's completely thrown me!

Rakes answered 7/1, 2014 at 9:24 Comment(12)
@mcolegro did you ever rectify your similar issue? (https://mcmap.net/q/1851745/-appfabric-datacachefactory-initialization-hangs-in-vs2013-works-fine-in-vs2010-and-vs2012/2220455)Rakes
What version of AppFabric? We have a VS2013 solution targeting AppFabric Cumulative Update 4 for AppFabric 1.1 and it works just fine.Opener
@Opener Exactly the same as you. The same solution works for everyone else in my company apart from me!Rakes
@Rakes I think I have the same problem, any solutions?Palermo
Hi @TamimSalem - unfortunately not. I have to use VS2010. Please let me know if you find a solution.Rakes
couldn't fix yet, I added a bounty to @mcolegro's question, hope someone has a solution.Palermo
@TamimSalem are you using a remote AppFabric server or a local one? I'm using a remote one but I do have some remains from having previously ran it locally but could not completely uninstall it. I don't think this should affect it if it's set up as a remote server anyway...Rakes
@dhardy, i'm using a local one, in my personal case, i'm using the azure emulator to run a web and cache roles.Palermo
@TamimSalem - I have managed to resolve my issue. It was a strange but simple one. VS2013 switched my localhost port from 51725 to 2345. When I inspected IIS Express, it was using 51725. I then switched my web app to use port 51725 and now it all works.Rakes
@Rakes awesome! will try it out now.Palermo
Also note that I had to run VS2013 as administrator (right click > run as administrator) tooRakes
@Rakes - I have not been able to resolve this on my machine. I was hoping the port fix would resolve it, but the port is not the issue in my case.Quadruplet
I
0

Can you take a hang dump of your client application when it is in a HUNG state using the Debug Diagnostic 2.0 tool (http://www.microsoft.com/en-us/download/details.aspx?id=40336) and then analyze the dump file by just double clicking the .dmp file and see the callstack of the thread that is hung while trying to create the DataCacheFactory ?

That will give an idea of where the thread is currently stuck at and should help in finding out the cause of the problem.

To collect a hang dump of the process you can just install the tool and open the tool and then click cancel on the "Rule Wizard" and go to the processes tab , find your client process and then choose Create Full User Dump

Inland answered 17/1, 2014 at 8:35 Comment(1)
I created the dump and looked at it. The only thing I could get from it was that one thread was waiting for another to finish. I couldn't tell what the thread was waiting for.Quadruplet

© 2022 - 2024 — McMap. All rights reserved.