Click here to Skip to main content
14,420,679 members
   

ASP.NET

 
QuestionRe: oData request to REST server Pin
Richard MacCutchan17-Nov-18 22:09
communityengineerRichard MacCutchan17-Nov-18 22:09 
AnswerRe: oData request to REST server Pin
RVMRVM18-Nov-18 0:01
MemberRVMRVM18-Nov-18 0:01 
QuestionNeed some suggestion - please Pin
simpledeveloper16-Nov-18 14:14
Membersimpledeveloper16-Nov-18 14:14 
QuestionAutomatic update db on regular intervals mvc Pin
Member 1402506315-Nov-18 19:10
MemberMember 1402506315-Nov-18 19:10 
AnswerRe: Automatic update db on regular intervals mvc Pin
Member 1405668819-Nov-18 19:18
MemberMember 1405668819-Nov-18 19:18 
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 
Hi,

I am getting the following Exception, when I am trying to run my report on the Server, locally it is working fine, need some help please any help would be very helpful, thanks in advance my friends.

Error Message: Value cannot be null.
Parameter name: reportViewer
Error Source: ReportViewerForMvc
Error InnerException Message: 
Error TargetSite: System.Web.HtmlString GetIframe(Microsoft.Reporting.WebForms.ReportViewer, System.Object)
Error StackTrace:    at ReportViewerForMvc.ReportViewerForMvc.GetIframe(ReportViewer reportViewer, Object htmlAttributes)
   at ASP._Page_Views_Report_ShowLegalEntityReport_cshtml.Execute() in c:\PIMS\Views\Report\ShowLegalEntityReport.cshtml:line 7
   at System.Web.WebPages.WebPageBase.ExecutePageHierarchy()
   at System.Web.Mvc.WebViewPage.ExecutePageHierarchy()
   at System.Web.WebPages.StartPage.ExecutePageHierarchy()
   at System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage)
   at System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context)
   at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult)
   at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult)
   at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult)
   at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult)
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass3_1.<BeginInvokeAction>b__5(IAsyncResult asyncResult)
Error Controller: Report
Error Action: ShowLegalEntityReport

My code to generate report is as below:
 ReportViewer reportViewer = new ReportViewer();
                reportViewer.ProcessingMode = ProcessingMode.Local;
                reportViewer.SizeToReportContent = true;
                reportViewer.Width = Unit.Percentage(900);
                reportViewer.Height = Unit.Percentage(900);

                DataRetrieveServiceClient drsc = new DataRetrieveServiceClient();

                DataTable dt = CommonFunctions.ToDataTable(drsc.GetLegalEntityReport(legalEntityNumber, lENumOperator, legalEntityName, lENameOperator, taxId, taxIdOperator
                    , submittingCounty, submCountyOperator, legalEntityCity, lECityOperator));

                //reportViewer.LocalReport.ReportPath = Request.MapPath(Request.ApplicationPath) + @"\Reports\LegalEntityReport.rdlc";
                //reportViewer.LocalReport.ReportPath = "~/" + Request.ApplicationPath + @"/Reports/LegalEntityReport.rdlc";
                reportViewer.LocalReport.ReportPath = Request.MapPath("~/Reports/LegalEntityReport.rdlc");
                reportViewer.LocalReport.DataSources.Add(new ReportDataSource("LegalEntityDataSet", dt));
                reportViewer.LocalReport.Refresh();

                ViewBag.ReportViewer = reportViewer;
return View();

Please let me know if I am doing any mistake, please help thanks my friends.

modified 15-Nov-18 13:36pm.

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 
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 

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.