Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

404 page not fount #104

Open
Shoogn opened this issue Jun 30, 2021 · 1 comment
Open

404 page not fount #104

Shoogn opened this issue Jun 30, 2021 · 1 comment

Comments

@Shoogn
Copy link

Shoogn commented Jun 30, 2021

Hi Alan
I face the issue with this project, when fire the ( Report/ProcessReport ) it return 404 page not found
I work with .NET 5, my report work normally from SSRS portal.

protected override string ReportServerUrl { get { //You don't want to put the full API path here, just the path to the report server's ReportServer directory that it creates (you should be able to access this path from your browser: https://YourReportServerUrl.com/ReportServer/ReportExecution2005.asmx ) //return null; return "http://" + Environment.MachineName + "/reportserver"; } }

` public IActionResult ProcessReport()
{
var model = this.GetReportViewerModel(Request);
model.ReportPath = "/ReportWithASPNETCore/FirstReport";

		return RedirectToAction("ReportViewer", model);
	}`

Capture1

@Shoogn
Copy link
Author

Shoogn commented Jun 30, 2021

Thanks I fixed It should return View instead of RediretToAction

        `	        public IActionResult ProcessReport()
	{
		var model = this.GetReportViewerModel(Request);
		model.ReportPath = "/ReportWithASPNETCore/FirstReport";

		
		return View("~/Views/Report/ReportViewer.cshtml", model);
	}`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant