Last post Oct 08, 2012 12:12 PM by Ruchira
Oct 04, 2012 11:00 AM|R2|LINK
I upgraded my web project from visual studio 2008 to visual studio 4.0 2010/framework. Inclusive Crystal Reports for 2010.
The problem is that now when I try to open one of the pages to view the report, tells me it can not find page.
This only happens on the server, where it already installed the framework 4.0 and Crystal Reports 2010 runtime.
I already checked that the page listagem.aspx exists in the directory on server, and when I try to call direct on brower address bar the same appends.
Here is my code:
I have a botton in a page that do this:
Call myF.WindowUrl(Me.Page, "listagem.aspx", "Folha_Comparticipação", UPanel)
and the page listagem.aspx is the one that i's give me the error:
Partial Class listagem
Dim report As New CrystalDecisions.CrystalReports.Engine.ReportDocument
Dim myf As functions
Protected Sub Page_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init
Dim nomeRelatorio As String = Session("ReportName")
report.Load(Server.MapPath("Relatorios/" & nomeRelatorio))
If Session("Codigo") <> "" Then
report.DataDefinition.FormulaFields("codigo").Text = "'" & Session("Codigo") & "'"
'report.DataDefinition.FormulaFields("Titulo").Text = "'" & Session("Titulo") & "'"
Dim Formula As String = Session("Formula")
report.RecordSelectionFormula = Formula
report.ExportToHttpResponse(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat, Response, False, "Listagem")
The error is:
Server Error in '/' Application.
The resource cannot be found.
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.
Requested URL: /listagem.aspx
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272
Thanks in advance,
Oct 08, 2012 12:12 PM|Ruchira|LINK
I'm not quite sure what's going on. But give this a try.
myF.WindowUrl(Me.Page, "~/listagem.aspx", "Folha_Comparticipação", UPanel)
Please 'Mark as Answer' if this post helps you