Click here to Skip to main content
14,427,540 members
   

ASP.NET

 
GeneralRe: Automatic update db on regular intervals mvc Pin
Member 1402506319-Nov-18 19:37
MemberMember 1402506319-Nov-18 19:37 
AnswerRe: Automatic update db on regular intervals mvc Pin
Nathan Minier20-Nov-18 2:37
professionalNathan Minier20-Nov-18 2:37 
QuestionI am using ReportViewerForMVC tool for my rdlc reports, I am getting the following exception on server but not locally, am I missing reference or something Pin
simpledeveloper15-Nov-18 7:30
Membersimpledeveloper15-Nov-18 7:30 
AnswerRe: I am using ReportViewerForMVC tool for my rdlc reports, I am getting the following exception on server but not locally, am I missing reference or something Pin
Richard Deeming15-Nov-18 9:05
communityengineerRichard Deeming15-Nov-18 9:05 
GeneralRe: I am using ReportViewerForMVC tool for my rdlc reports, I am getting the following exception on server but not locally, am I missing reference or something Pin
simpledeveloper15-Nov-18 9:52
Membersimpledeveloper15-Nov-18 9:52 
GeneralRe: I am using ReportViewerForMVC tool for my rdlc reports, I am getting the following exception on server but not locally, am I missing reference or something Pin
Richard Deeming16-Nov-18 2:08
communityengineerRichard Deeming16-Nov-18 2:08 
GeneralRe: I am using ReportViewerForMVC tool for my rdlc reports, I am getting the following exception on server but not locally, am I missing reference or something Pin
simpledeveloper16-Nov-18 8:17
Membersimpledeveloper16-Nov-18 8:17 
GeneralRe: I am using ReportViewerForMVC tool for my rdlc reports, I am getting the following exception on server but not locally, am I missing reference or something Pin
Richard Deeming16-Nov-18 8:37
communityengineerRichard Deeming16-Nov-18 8:37 
You're getting a NullReferenceException for the reportViewew parameter.

Either ViewBag.ReportViewer is null, or it is not an instance of the Microsoft.Reporting.WebForms.ReportViewer class.

If you can't work out how to debug it, then temporarily change your view to output the type of the value:
@using ReportViewerForMvc; 
@{
    ViewBag.Title = "Show Legal Entity Report";
    Layout = "~/Views/Shared/_LayoutFinal.cshtml";
}

@* Comment out this line: *@
@* @Html.ReportViewer(ViewBag.ReportViewer as Microsoft.Reporting.WebForms.ReportViewer) *@

@if (ViewBag.ReportViewer == null)
{
    <p>ReportViewer is not set!</p>
}
else if ((ViewBag.ReportViewer as Microsoft.Reporting.WebForms.ReportViewer) is null)
{
    <p>ReportViewer is the wrong type: @ViewBag.ReportViewer.GetType()</p>
}
else
{
    <p>Everything looks OK...</p>
}




"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer

GeneralRe: I am using ReportViewerForMVC tool for my rdlc reports, I am getting the following exception on server but not locally, am I missing reference or something Pin
simpledeveloper16-Nov-18 8:50
Membersimpledeveloper16-Nov-18 8:50 
GeneralRe: I am using ReportViewerForMVC tool for my rdlc reports, I am getting the following exception on server but not locally, am I missing reference or something Pin
Richard Deeming16-Nov-18 9:11
communityengineerRichard Deeming16-Nov-18 9:11 
GeneralRe: I am using ReportViewerForMVC tool for my rdlc reports, I am getting the following exception on server but not locally, am I missing reference or something Pin
simpledeveloper16-Nov-18 10:02
Membersimpledeveloper16-Nov-18 10:02 
GeneralRe: I am using ReportViewerForMVC tool for my rdlc reports, I am getting the following exception on server but not locally, am I missing reference or something Pin
Richard Deeming16-Nov-18 10:11
communityengineerRichard Deeming16-Nov-18 10:11 
GeneralRe: I am using ReportViewerForMVC tool for my rdlc reports, I am getting the following exception on server but not locally, am I missing reference or something Pin
simpledeveloper16-Nov-18 10:30
Membersimpledeveloper16-Nov-18 10:30 
GeneralRe: I am using ReportViewerForMVC tool for my rdlc reports, I am getting the following exception on server but not locally, am I missing reference or something Pin
simpledeveloper16-Nov-18 12:46
Membersimpledeveloper16-Nov-18 12:46 
GeneralRe: I am using ReportViewerForMVC tool for my rdlc reports, I am getting the following exception on server but not locally, am I missing reference or something Pin
Richard Deeming19-Nov-18 3:01
communityengineerRichard Deeming19-Nov-18 3:01 
GeneralRe: I am using ReportViewerForMVC tool for my rdlc reports, I am getting the following exception on server but not locally, am I missing reference or something Pin
simpledeveloper19-Nov-18 7:29
Membersimpledeveloper19-Nov-18 7:29 
GeneralRe: I am using ReportViewerForMVC tool for my rdlc reports, I am getting the following exception on server but not locally, am I missing reference or something Pin
Richard Deeming19-Nov-18 8:50
communityengineerRichard Deeming19-Nov-18 8:50 
GeneralRe: I am using ReportViewerForMVC tool for my rdlc reports, I am getting the following exception on server but not locally, am I missing reference or something Pin
simpledeveloper20-Nov-18 11:18
Membersimpledeveloper20-Nov-18 11:18 
QuestionWhat technique can be used for printing ALL PAGES from crystal report? Pin
Member 1405550515-Nov-18 0:09
MemberMember 1405550515-Nov-18 0:09 
AnswerRe: What technique can be used for printing ALL PAGES from crystal report? Pin
Member 1405668818-Nov-18 18:27
MemberMember 1405668818-Nov-18 18:27 
QuestionWCF Service is giving faulted Exception Pin
simpledeveloper13-Nov-18 8:10
Membersimpledeveloper13-Nov-18 8:10 
AnswerRe: WCF Service is giving faulted Exception Pin
Ali Al Omairi(Abu AlHassan)14-Nov-18 7:05
professionalAli Al Omairi(Abu AlHassan)14-Nov-18 7:05 
GeneralRe: WCF Service is giving faulted Exception Pin
simpledeveloper14-Nov-18 9:56
Membersimpledeveloper14-Nov-18 9:56 
QuestionGenerating Reports using ReportViewerForMVC tool Pin
simpledeveloper6-Nov-18 8:49
Membersimpledeveloper6-Nov-18 8:49 
AnswerRe: Generating Reports using ReportViewerForMVC tool Pin
Richard Deeming6-Nov-18 9:13
communityengineerRichard Deeming6-Nov-18 9:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.