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 death) that simply gave me the assembly name which is causing the issue.
Could not load file or assembly ‘System.Web.Optimization, Version=18.104.22.168, Culture=neutral, PublicKeyToken=31BF3856AD364E35’ or one of its dependencies. The located assembly’s manifest definition does not match the assembly reference. HRESULT: 0x80131040
In my case I have several MVC projects referring to “System.Web.Optimization” , but I’m getting this issue only in newly added project. When I investigated the issue I found that the project referring to the higher version of “System.Web.Optimization”. This is because the dll has been included using nuget and nuget always downloads the latest version of dll.
FYI: The Microsoft.Web.Optimization package is now obsolete. With ASP.NET (MVC) 4 and higher you should install the Microsoft ASP.NET Web Optimization Framework.
Continue reading “The located assembly’s manifest definition does not match the assembly reference”
DLL Hell Problem
DLL Hell is a problem in which two different Application share a common assembly and If one Application changes the common assembly, the changes which are not backward compatible will cause another Application to crash. Let us understand this with an example.
Let say you have two Applications, we can call it as Application1 and Application2 and both Applications shares a common Assembly we can call it as Shared. Both Application consumes GetOperation().
Continue reading “DLL Hell Problem and Solution”
Want to export the data to excel, but don’t want to hit server again and again ?? So here is the simple way out for you.
In the following steps you will understand how simply we can export the data to excel sheet by using jquery.
Continue reading “Export to excel table without hitting server using Jquery”
How to change the icon of a Console App in Visual Studio
Compiling a console application will create an executable for your application, but with the default icon. You can change that icon and apply any ICO to your application which you want . In this article I’II show you in few simple steps.
- Right Click on your project and Click on Properties. (This will open a Properties Window for you)
- In bottom section you will find Resources as mention in the screenshot below.
- Check Icon and manifest option.
- Select and ICO file you want it as your application icon.
If you don’t have an ICO file than I found an Online tool that will convert an image into ICO file for you.
Happy Coding.. !!
C# Coding Standards
General Naming Conventions
Following a consistent set of naming conventions can be a major contribution to readability. Beyond consistency of form, names of application and framework elements must be easily understood and must convey the functions of each element.
It is important that the names of identifiers make sense on the first reading. Identifier names should clearly state what each member does and what each type and parameter represents. To this end, it is more important that the name be clear than that it be short. Names should correspond to scenarios, logical or physical parts of the system, and well-known concepts rather than to technologies or architecture.
Do choose easily readable identifier names. For example, a property named HorizontalAlignment is more readable in English than AlignmentHorizontal.
Do favour readability over brevity. The property name CanScrollHorizontally is better than ScrollableX (an obscure reference to the X-axis).
Continue reading “C# Coding Standards”