SLCTech
asked on
Compilation Error on server what do I do?
I got my machine with ASP.NET working... however upload it to our local server and got below error. Anyone understand what it means and what to do? Appearly I'm missing a file and how do I add it?
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: BC30002: Type 'CrystalDecisions.CrystalR eports.Eng ine.Report Document' is not defined.
Source Error:
Line 5: Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Line 6: 'create a new instance of the reportdocument object and load the report
Line 7: Dim crReportDocument As New CrystalDecisions.CrystalRe ports.Engi ne.ReportD ocument()
Line 8: ''''crReportDocument.Load( Request.Ph ysicalAppl icationPat h & "reports\crtest.rpt")
Line 9: crReportDocument.Load(Requ est.Physic alApplicat ionPath & "reports\crwsr.rpt")
Source File: C:\Inetpub\wwwroot\Default .aspx.vb Line: 7
Microsoft (R) Visual Basic Compiler version 8.0.50727.42
for Microsoft (R) .NET Framework version 2.0.50727.42
Copyright (c) Microsoft Corporation. All rights reserved.
C:\Inetpub\wwwroot\reports \Default.a spx.vb(7) : error BC30002: Type 'CrystalDecisions.CrystalR eports.Eng ine.Report Document' is not defined.
Dim crReportDocument As New CrystalDecisions.CrystalRe ports.Engi ne.ReportD ocument()
~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~ ~~~~~~~~~~ ~~~~~~~
-------------------------- ---------- ---------- ---------- ---------- ---------- ----
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: BC30002: Type 'CrystalDecisions.CrystalR
Source Error:
Line 5: Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Line 6: 'create a new instance of the reportdocument object and load the report
Line 7: Dim crReportDocument As New CrystalDecisions.CrystalRe
Line 8: ''''crReportDocument.Load(
Line 9: crReportDocument.Load(Requ
Source File: C:\Inetpub\wwwroot\Default
Microsoft (R) Visual Basic Compiler version 8.0.50727.42
for Microsoft (R) .NET Framework version 2.0.50727.42
Copyright (c) Microsoft Corporation. All rights reserved.
C:\Inetpub\wwwroot\reports
Dim crReportDocument As New CrystalDecisions.CrystalRe
~~~~~~~~~~~~~~~~~~~~~~~~~~
--------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Wow you got me thinking... I forgot to copy the web.config into the file.
I'm curious because right now many of the images are not appearing in the Crystal reports viewer. Any idea what might cause this?
SLC Tech
I'm curious because right now many of the images are not appearing in the Crystal reports viewer. Any idea what might cause this?
SLC Tech
ASKER
I got it working!!
Copied the files from below directory to the server:
C:\Inetpub\wwwroot\aspnet_ client\sys tem_web\2_ 0_50727\Cr ystalRepor tWebFormVi ewer3
That got the images working...
Thank you for replying... it got me on right track.
All I did wrong was forgetting to include the web.config file when uploading the web site to the server. And, needed that Crystal Report Web Form directory in the root of the IIS Server. Now it's working perfect. I'll give you points for helping!!
Smile...
SLC Tech
Copied the files from below directory to the server:
C:\Inetpub\wwwroot\aspnet_
That got the images working...
Thank you for replying... it got me on right track.
All I did wrong was forgetting to include the web.config file when uploading the web site to the server. And, needed that Crystal Report Web Form directory in the root of the IIS Server. Now it's working perfect. I'll give you points for helping!!
Smile...
SLC Tech
ASKER
Really I'm confused, so far what I did was put these merge modules in this directory of the server:
C:\Program Files\Common Files\Merge Modules
CrystalReportsRedist2005_x
Microsoft_VC80_ATL_x86.msm
policy_8_0_Microsoft_VC80_
And, I'm not sure what you mean by specifying the copy of local option as false for all DLL's relating to crystal reports.
Rex