Asp .net fix

Store data in WCF Operation Context.Is ThreadStatic safe?

WCF infrastructure allows you to store context sensitive data in InstanceContext of the service instance similarly like we do in HttpContext of MVC. For that you should implement from IExtension and plug that class into WCF’s infrastructure. public class WcfOperationContext : IExtension<OperationContext> { private readonly IDictionary<string, object> items; private WcfOperationContext() { items = new Dictionary<string, …

Store data in WCF Operation Context.Is ThreadStatic safe? Read More »

The located assembly’s manifest definition does not match the assembly reference

Looking for the solution. Yes you are at the right place. Once I also faced the same issue when I was working on a MVC project, I got the error states that “The located assembly’s manifest definition does not match the assembly reference” . When I ran the solution I saw the YSD (yellow screen of …

The located assembly’s manifest definition does not match the assembly reference Read More »

Avoid multiple call to AuthorizeCore in MVC

AuthorizeCore in MVC In MVC AuthorizeAttribute Class is another cool feature that makes it easy to add authentication at the Controller level. In AuthorizeAttribute class we have AuthorizeCore function, it specifies that access to a controller or action method is restricted to users who meet the authorization requirement. We can override AuthorizeCore  function as per our authorization logic. …

Avoid multiple call to AuthorizeCore in MVC Read More »

Must Haves Visual Studio Extensions

Web development is easier when you’ve got the right tools/extensions. There are various tools and extensions available for visual studio that will make your programming more efficient by saving your lots of time and make your life as a developer easier and more productive. The Visual Studio Gallery is the best place to find tools, controls, …

Must Haves Visual Studio Extensions Read More »

How to sign third party assemblies

How to sign third party assemblies You need to sign assemblies if you want to put them in the GAC. If you sign an executable, then any class libraries it links to also needs to be signed. This can be difficult if you’re using a third-party library.A very important reason to sign an assembly is …

How to sign third party assemblies Read More »

Microsoft CacheManager Contains vs Getdata

Microsoft CacheManager Contains vs Getdata In Microsoft.Practices.EnterpriseLibrary.Caching, GetData is used to get data from the cache and Contains checks whether the key exists in the cache. Ideally if Contains(key) returns true than GetData(key) should returns data from the cache associated with the key.  But somehow it works in the different condition. In the below code block Contains(key) returns true but the block returns null.     …

Microsoft CacheManager Contains vs Getdata Read More »

%d bloggers like this: