AppFabric DataCacheFactory () freezes in VS2013, works fine in VS2010 and VS2012

I have an application that has been working for a while. I tried to run it with VS2013, and it freezes in the line where it is trying to initialize the DataCacheFactory object. The same code works fine with VS2010 and VS2012.

private static DataCacheFactory GetDataCacheFactory() { if (factory == null) { lock (lockObject) { if (factory == null) { factory = new DataCacheFactory(); //VS2013 hangs on this line } } } return factory; } 

No errors are generated. The code just hangs on the line factory = new DataCacheFactory() .

AppFabric DLLs are current versions.

I welcome any suggestions for determining the reasons why the code hangs on this line.

+6
source share
2 answers

I solved this problem, but I do not know what caused it. I tried using DebugDiag to take a dump and parse it. The analysis showed that the process was expecting something in the compatibility module in some Microsoft code.

I noticed that IIS 8 has two compatibility databases installed. I deleted both elements and tried to run the application again. This time, the application successfully executed the line that was hanging.

Although this resolved the problem on this machine, I still don't know what causes the problem. I have a colleague with a similar configuration, and he has no problems with the application hanging on the above line, even with the installed compatibility databases.

0
source

As you develop an application on VS, it may be a .net application. check the target version of the .net infrastructure from the project properties when working on VS13.

0
source

Source: https://habr.com/ru/post/957052/


All Articles