How to remove error about glyphicons-halflings-regular.woff2 not found

This problem happens because IIS does not know about woff and woff2 file mime types. Solution 1: Add these lines in your web.config project: Solution 2: On IIS project page: Step 1: Go to your project IIS home page and double click on MIME Types button: Step 2: Click on Add button from Actions menu:  Step 3: In the middle of the screen appears a window and in … Read more

Differences between Html.TextboxFor and Html.EditorFor in MVC and Razor

The advantages of EditorFor is that your code is not tied to an <input type=”text”. So if you decide to change something to the aspect of how your textboxes are rendered like wrapping them in a div you could simply write a custom editor template (~/Views/Shared/EditorTemplates/string.cshtml) and all your textboxes in your application will automatically benefit from this change whereas … Read more

System.web.mvc missing

We have an old ASP.NET MVC 3 Web Application, building in VS2010, that fails to compile, since last week’s security update. The problem is that the reference to System.Web.Mvc.dll is broken. When I open the solution file on our build machine, where the security update has not run, and open the properties dialog for References->System.Web.MVC, … Read more

Why is this code throwing an InvalidOperationException?

As you can see here, the First method throws an InvalidOperationException when the sequence on which it is called is empty. Since no element of the result of the split equals Hello5, the result is an empty list. Using First on that list will throw the exception. Consider using FirstOrDefault, instead (documented here), which, instead of throwing an exception when the sequence is empty, returns … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)