MVC

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 »

Render Pdf bytes array within browser in MVC

Render Pdf within browser There are different ways to render Pdf in a browser. In this I’m explaining to render Pdf by fileContent/byte array. In a below example I’m using Index Action which returns the FileContentResult. public ActionResult Index() { Response.Clear(); Response.AddHeader(“Content-Disposition”,“inline; filename=sample.pdf”); Response.AddHeader(“Content-Type”,“application/pdf”); Response.ClearHeaders(); Response.AddHeader(“Content-Length”, byteArray.Length.ToString()); FileContentResult result = new FileContentResult(byteArray, “application/pdf”); return result; } …

Render Pdf bytes array within browser in MVC Read More »

MVC Simple Model In ASP.NET

In our previous article we have learnt basics of MVC , now in this article we will learn how to make simple model In MVC. Create New ASP.NET MVC 4 Web Application . Select Internet Website as template. Select ASP.NET as  View Engine Right Click on the model -> Add New Item ->Class -> Movies.cs