Sonntag, 20. Mai 2012 01:14
I am trying to test Azure cache from a development machine on-premises. My dev machine is Windows 7 64 bit, with .NET Framework 4.0 installed. I don't have VS2011 or .NET 4.5 installed.
Situation: If I use the AppFabric v1.5 SDK caching assemblies, I am able to connect to the Azure cache, and use both Cache and Session State features.
If I use the Azure SDK v1.6 Caching assemblies, I get the following error:
Type 'Microsoft.ApplicationServer.Caching.HostNodeDomainConfigurationElementCollection' is an invalid collection type since it does not have a valid Add method with parameter of type 'System.Object'.How do I get v1.6 running on my machine? I have tried the usual methods:
- Verified the Framework runtime is v4.0
- Removing every trace of Azure SDKs, and installing v1.6 afresh
- Try adding a reference to the specific version of caching assemblies
- Use fuslogvw to ensure the correct assembly is getting bound.
Montag, 21. Mai 2012 08:08Moderator
Do you have installed VS2010 SP1? If not, try to install it. And can you make sure that you load the correct cache DLL refernece in Azure application, such as DLL path, version number, etc.
And if convenient, can you provide a test application to us, and we can help to give further debugging result to you.
- Als Antwort markiert balakk Dienstag, 22. Mai 2012 00:19
Dienstag, 22. Mai 2012 00:19
Okay, it turns out I had the 4.5 framework dev preview installed after all. Mea culpa. I didn't think it was there, since both IIS and VS shows it as only 4.0.
Uninstalling 4.5 is another pain. However, things are working now, thanks.