Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Compilation Error on server what do I do?

Posted on 2006-06-14
4
Medium Priority
?
708 Views
Last Modified: 2008-01-09
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.CrystalReports.Engine.ReportDocument' 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.CrystalReports.Engine.ReportDocument()
Line 8:          ''''crReportDocument.Load(Request.PhysicalApplicationPath & "reports\crtest.rpt")
Line 9:          crReportDocument.Load(Request.PhysicalApplicationPath & "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.aspx.vb(7) : error BC30002: Type 'CrystalDecisions.CrystalReports.Engine.ReportDocument' is not defined.

        Dim crReportDocument As New CrystalDecisions.CrystalReports.Engine.ReportDocument()
                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42
0
Comment
Question by:SLCTech
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 6

Accepted Solution

by:
Nandakumar Sakthivel earned 1500 total points
ID: 16911950
Hi,
   Have you included all the dll's which relates to crystal reports in the installed server path..
   How do you ported the application from your machine to the server..Have you specified the copy local option as false for all the dll's relating crystal reports in the application

Regards,
Nanda
 
0
 

Author Comment

by:SLCTech
ID: 16912784
I hope you can help me out here...

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_x86.msm
Microsoft_VC80_ATL_x86.msm
policy_8_0_Microsoft_VC80_ATL_x86.msm

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
0
 

Author Comment

by:SLCTech
ID: 16912848
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
0
 

Author Comment

by:SLCTech
ID: 16913021
I got it working!!

Copied the files from below directory to the server:

C:\Inetpub\wwwroot\aspnet_client\system_web\2_0_50727\CrystalReportWebFormViewer3

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
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
Suggested Courses

715 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question