Foros del Web » Programando para Internet » ASPX (.net) »

CrystalReportView - The file '/xxxxxxx/reportes/reporte.aspx' has not been pre-compil

Estas en el tema de CrystalReportView - The file '/xxxxxxx/reportes/reporte.aspx' has not been pre-compil en el foro de ASPX (.net) en Foros del Web. Saludos, el asunto es que tengo una plaicación web que en algunas páginas usa en control CrystalReportViewer para mostrar unos reportes. En mi entorno de ...
  #1 (permalink)  
Antiguo 09/01/2010, 00:26
 
Fecha de Ingreso: septiembre-2005
Ubicación: Medellin
Mensajes: 215
Antigüedad: 18 años, 7 meses
Puntos: 0
CrystalReportView - The file '/xxxxxxx/reportes/reporte.aspx' has not been pre-compil

Saludos, el asunto es que tengo una plaicación web que en algunas páginas usa en control CrystalReportViewer para mostrar unos reportes. En mi entorno de desarrollo me funciona perfectamente, pero cuando lo paso alservidor de producción que es un hosting con esa posibilidad(la de CrystalReports) puess me muestra este error:

Server Error in '/' Application.
--------------------------------------------------------------------------------

The file '/empresas/reportes/reporte_x_farmacia_pedidos.aspx' has not been pre-compiled, and cannot be requested.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: The file '/empresas/reportes/reporte_x_farmacia_pedidos.aspx' has not been pre-compiled, and cannot be requested.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[HttpException (0x80004005): The file '/empresas/reportes/reporte_x_farmacia_pedidos.aspx' has not been pre-compiled, and cannot be requested.]
System.Web.Compilation.BuildManager.GetVPathBuildR esultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) +8761358
System.Web.Compilation.BuildManager.GetVPathBuildR esultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) +101
System.Web.Compilation.BuildManager.GetVirtualPath ObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean noAssert) +126
System.Web.Compilation.BuildManager.CreateInstance FromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp, Boolean noAssert) +62
System.Web.UI.PageHandlerFactory.GetHandlerHelper( HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +33
System.Web.UI.PageHandlerFactory.System.Web.IHttpH andlerFactory2.GetHandler(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +40
System.Web.HttpApplication.MapHttpHandler(HttpCont ext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig) +160
System.Web.MapHandlerExecutionStep.System.Web.Http Application.IExecutionStep.Execute() +93
System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean& completedSynchronously) +155




--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.4200; ASP.NET Version:2.0.50727.4016


he buscado en muchas partes y me dice que es que debe faltar algunas dependencias indicadas en el Web.config pero ya he pasado casi todas las necesarias...y bueno si alguien ha tenido este problema y sabe como solucionarlo se lo agradecería mucho...
__________________
JU4N35
  #2 (permalink)  
Antiguo 10/01/2010, 15:19
 
Fecha de Ingreso: enero-2010
Mensajes: 41
Antigüedad: 14 años, 3 meses
Puntos: 0
Respuesta: CrystalReportView - The file '/xxxxxxx/reportes/reporte.aspx' has not been

sino me equivoco a lo q estas solicitando tienes que ponerle en el setLogon
el nombre o ADMINISTRADOR de TU PC y la contraseña de TU PC, y deberia correr normalmente
  #3 (permalink)  
Antiguo 10/01/2010, 15:21
 
Fecha de Ingreso: enero-2010
Mensajes: 41
Antigüedad: 14 años, 3 meses
Puntos: 0
Respuesta: CrystalReportView - The file '/xxxxxxx/reportes/reporte.aspx' has not been

me olvidaba si no es ese tu error bajalo de niveles :

../../
es como decir reporte/crystal.aspx
  #4 (permalink)  
Antiguo 10/01/2010, 17:15
 
Fecha de Ingreso: septiembre-2005
Ubicación: Medellin
Mensajes: 215
Antigüedad: 18 años, 7 meses
Puntos: 0
Respuesta: CrystalReportView - The file '/xxxxxxx/reportes/reporte.aspx' has not been

...es que me acabo de dar cuenta que con solo las siguientes dos líneas de código sin necesidad de tener el CrystalReportViewer me saca ese mismo error:

Dim rptDocument As ReportDocument
rptDocument = New ReportDocument()

...si alguien sabe como solucionar este problema....
__________________
JU4N35
  #5 (permalink)  
Antiguo 10/01/2010, 18:21
Avatar de eperedo  
Fecha de Ingreso: septiembre-2009
Ubicación: Perú
Mensajes: 654
Antigüedad: 14 años, 7 meses
Puntos: 16
Respuesta: CrystalReportView - The file '/xxxxxxx/reportes/reporte.aspx' has not been

Si el error se lanza en esas líneas puede ser que no hayas instalado correctamente el CR en el servidor. Has verificado eso?
__________________
Eduardo Peredo
Wigoin
  #6 (permalink)  
Antiguo 10/01/2010, 19:06
 
Fecha de Ingreso: septiembre-2005
Ubicación: Medellin
Mensajes: 215
Antigüedad: 18 años, 7 meses
Puntos: 0
Respuesta: CrystalReportView - The file '/xxxxxxx/reportes/reporte.aspx' has not been

...es que es un hosting externo, alquilado...
__________________
JU4N35
  #7 (permalink)  
Antiguo 10/01/2010, 19:34
Avatar de eperedo  
Fecha de Ingreso: septiembre-2009
Ubicación: Perú
Mensajes: 654
Antigüedad: 14 años, 7 meses
Puntos: 16
Respuesta: CrystalReportView - The file '/xxxxxxx/reportes/reporte.aspx' has not been

dentro de esa página usas alguna otra DLL? a parte de las del crystal report?

En todo caso manualmente sube las DLL's a la carpeta bin del proyecto.
__________________
Eduardo Peredo
Wigoin
  #8 (permalink)  
Antiguo 11/01/2010, 08:24
 
Fecha de Ingreso: enero-2010
Mensajes: 41
Antigüedad: 14 años, 3 meses
Puntos: 0
Respuesta: CrystalReportView - The file '/xxxxxxx/reportes/reporte.aspx' has not been

haces el imports
Imports CrystalDecisions.CrystalReports.Engine




Dim rpt As New ReportDocument
rpt.Load(Server.MapPath("CRYSTALREPORT.rpt"))
rpt.SetDatabaseLogon("NOMBRE-PC o Administrador", "CODIGO PC")
CrystalReportViewer1.ReportSource = rpt



si no fuera eso, ya obligado instale el crystal report, pero todo esta en el mismo visual studio 2008
C:\Archivos de programa\Microsoft SDKs\Windows\v6.0A\Bootstrapper\Packages\CrystalRe ports10_5\CRRedist2008_x86.msi

luego:
instalar Windows Software Development Kit (SDK) for Windows Server 2008 and .NET Framework 3.5


y por ultimo reinicia el iis por cmd solo colocar iisreset.
con eso deberias solucionar todo, sino cualquier cosa ubicame en el msn , tengo el mismo nombre de usuario.

Etiquetas: file, aspx
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 09:16.