Monthly Archives: July 2012

Exception message: Server cannot set status after HTTP headers have been sent. when generate pdf file in ASP.NET MVC3

I resolved this issue by changing my code as below: Add below code to the return statement of your action in the controller. return null; Happy Coding

Posted in Uncategorized | 1 Comment

ASP.NET MVC 3: Save .pdf file to database and download pdf file from databse.

The article previous I was introduce about Using Microsoft Report Viewer in ASP.NET MVC3. In this article I will introduce about how to save .pdf file to database in ASP.NET MVC 3. 1. Create a new database to store pdf … Continue reading

Posted in ASP.NET MVC | 3 Comments

Using Partial View to implement Search Bar in ASP.NET MVC3

In this article previous I was introduce about Using Partial View in ASP.NET MVC 3. To day I will introduce step by step how to use Partial View to implement Search Bar in ASP.NET MVC3. 1. Create a new project … Continue reading

Posted in ASP.NET MVC | 2 Comments

Using MS Report Viewer in ASP.NET MVC3

This article I  will introduce step by step how to use Microsoft Report Viewer in ASP.NET MVC3 1. Create a new project with View engine is ASPX and set named MvcApplications.MSReportViewer 2. Add references Microsoft.ReprotViewer.Common and Microsoft.ReportViewer.WebForms to project. You … Continue reading

Posted in ASP.NET MVC | 6 Comments

Error: “The report definition has an invalid target namespace ‘http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition’ which cannot be upgraded.” when run MS Reportviewer and ASP MVC3.

Solution to fix this problem: Turns out the issue was my “C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\ReportingServices\Microsoft.ReportingServices.targets” file had somehow changed. The top of my file was: <Project xmlns=”http://schemas.microsoft.com/developer/msbuild/2003″&gt; <UsingTask TaskName=”Microsoft.Reporting.RdlCompile” AssemblyName=”Microsoft.ReportViewer.Common, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a”/> And it should have been: <Project xmlns=”http://schemas.microsoft.com/developer/msbuild/2003″&gt; <UsingTask … Continue reading

Posted in ASP.NET MVC | 5 Comments

Error: Server Error in Application "DEFAULT WEB SITE" when run asp.net MVC 3 in IIS 7.5 and Windows 7 64bit

When I run website in IIS 7.5 with Windows 7 64bit I have receive error message: Solutions: To fix this problem you implement by steps: 1. Open IIS 2. Click Application Pools/Right click ASP.NET v4.0 in the list of Application … Continue reading

Posted in ASP.NET MVC | 3 Comments