Visual studio feeds

All Visual Studio blogs in one place


Enter your email address:

Delivered by FeedBurner

Increase your website traffic with



Anti-spam: How many eyes has a typical person?

Follow us on FB


Could not load file or assembly… NuGet Assembly Redirects

AddThis Social Bookmark Button
When working in larger projects, you will sometimes encounter errors similar to this one: “Could not load file or assembly 'Newtonsoft.Json, Version=, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The system cannot find the file specified.” Or how about this one? “System.IO.FileLoadException : Could not load file or assembly 'Moq, Version=3.1.416.3, Culture=neutral, PublicKeyToken=69f491c39445e920' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)” Search all you want, most things you find on the Internet are from the pre-NuGet era and don’t really help. What now? In this post, let’s go
over why this error sometimes happens. And I’ll end with a beautiful little trick that fixes this issue when you encounter it. Let’s go! Redirecting Assembly Versions In 90% of the cases, the errors mentioned earlier are caused by faulty assembly redirects. What are those, you ask? A long answer is on MSDN, a short answer is that assembly redirects let us trick .NET into believing that assembly A is actually assembly B. Or in other words, we can tell .NET to work with Newtonsoft.Json whenever any other reference requires an older version of Newtonsoft.Json. Assembly redirects are...(Read whole news on source site)

Lesser-Known NHibernate Features: Proxy Generation

AddThis Social Bookmark Button
Did you know that you can leverage NHibernate’s built-in proxy generator to inject custom behavior in your classes? It is called NHibernate.Proxy.DynamicProxy.ProxyFactory and there’s an interface, NHibernate.Proxy.DynamicProxy.IInterceptor, that you can use to extend it, by intercepting method and property calls.First, you inject an NHibernate interceptor, inheriting from EmptyInterceptor, in the configuration instance, before building the session factory:
color: black; line-height: 12pt; overflow: visible; font-family: "Courier New", courier, monospace; font-size: 8pt; direction: ltr; background-color: rgb(244, 244, 244);"> 1: public sealed class NotifyPropertyChangedInterceptor : EmptyInterceptor 2: {

NHibernate Pitfalls: HQL Queries With Joins

AddThis Social Bookmark Button
This is part of a series of posts about NHibernate Pitfalls. See the entire collection here.Normally, in an HQL query, you can omit the select clause, that is, the two queries are identical:
width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: "Courier New", courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"> 1: var q1 = session.CreateQuery("from Product"); //both return IList 2: var q2 = session.CreateQuery("select p from Product p");
However, if you add joins, then it’s a whole different matter:

Beyond RavenDB 3.0: The future road map for RavenDB

AddThis Social Bookmark Button
We are pretty much done with RavenDB 3.0, we are waiting for fixes to internal apps we use to process orders and support customers, and then we can actually make a release. In the meantime, that means that we need to start looking beyond the 3.0 release. We had a few people internally focus on post 3.0 work for the past few months, and we have a rough outline for what we done there. Primarily we are talking about better distribution and storage models. Storage models – the polyglot database Under this umbrella we put dedicated database engines to
support specific needs. We are talking about distributed counters (high scale out, rapid throughput), time series and event store as the primary areas that we are focused on. For example, the counters stuff is pretty much complete, but we didn’t have time to actually make that into a fully mature product. I talked about this several times in the past, so I’ll not get into too many details here. Distribution models We have been working on a Raft implementation for the past few months, and it is now in the stage where we are starting to integrate it into the...(Read whole news on source site)

The Morning Brew #1746

AddThis Social Bookmark Button
Happy Thanksgiving to my US based readers Information Basic Micro-Optimizations – Karl Seguin discusses the basics behind optimisation of code, looking at some of the considerations you should be making when performing optimisation work. Make Any Framework Suck Less With These 10 Insightful Lessons – High Scalability Blog highlights a piece from Alexey Migutsky on […]

New Horizons reaches 31 Au from our Sun

AddThis Social Bookmark Button
Originally posted on: of 19:00 UTC 26/November/2014, the New Horizons space probe to the planet Pluto reached 31 Au from the Sun. The New Horizons spacecraft is currently hibernating December 6th 2014 when it will be woken up in preparation for the fly past of the Plutonian system on 14 July 2015. Congratulations to Dr Alan Stern and his team of scientists, engineers and computer programmers – well done all!

Puppet–Managing Permissions on Windows with Access Control Lists

AddThis Social Bookmark Button
Originally published at, reposted with permission and with adjustments. I wrote the original post and am also the author of the ACL module. While there is a simple interface for setting permissions on Windows, managing and maintaining permissions has … Continue reading →

Lesser-Known NHibernate Features: Serializable Values

AddThis Social Bookmark Button
If you want to store anything in a property of an entity, you can declare it as Object or dynamic; as long as you set it to a value of a serializable type, as supported by BinaryFormatter, you’re good! You can even change the value afterwards to a different type, and it will be saved.You map it like this, in mapping by code:
text; direction: ltr; max-height: 200px; background-color: rgb(244, 244, 244);"> 1: ca.Property(x => x.Payload, x => 2: {