Author |
Message |
Martinezg

|
Posted: Crystal Reports for Visual Studio, Compilation Error |
Top |
I got a web application that is giving me the following error message; it works fine on the development computer but on the production server it issues out the following error. I have installed the CR 2005 Crystal Redist files on the server. Any help would be greatly appreciated.
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 7: Line 8: Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Line 9: Dim UserProfileReport As New CrystalDecisions.CrystalReports.Engine.ReportDocument Line 10: Line 11: UserProfileReport.Load(HostingEnvironment.ApplicationPhysicalPath & "Administration\Reports\RequestHistory.rpt") | Source
File: c:\inetpub\stage\ISRequest\Administration\DisplayReports.aspx.vb
Line: 9
Show
Detailed Compiler Output:
c:\windows\system32\inetsrv> "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\vbc.exe" /t:library /utf8output /R:"C:\WINDOWS\assembly\GAC_32\System.Data\2.0.0.0__b77a5c561934e089\System.Data.dll" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\isrequest\33054296\1d54f648\App_Code.rlawtnsu.dll" /R:"C:\WINDOWS\assembly\GAC_32\System.EnterpriseServices\2.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll" /R:"C:\WINDOWS\assembly\GAC_32\System.Web\2.0.0.0__b03f5f7f11d50a3a\System.Web.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Web.Mobile\2.0.0.0__b03f5f7f11d50a3a\System.Web.Mobile.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Web.Services\2.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\CrystalDecisions.Web\10.2.3600.0__692fbea5521e1304\CrystalDecisions.Web.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Drawing\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\isrequest\33054296\1d54f648\App_Web_91nejtag.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll" /out:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\isrequest\33054296\1d54f648\App_Web_ojodikzn.dll" /D:DEBUG=1 /debug+ /win32resource:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\isrequest\33054296\1d54f648\ojodikzn.res" /define:_MYTYPE=\"Web\" /imports:Microsoft.VisualBasic,System,System.Collections,System.Collections.Specialized,System.Configuration,System.Text,System.Text.RegularExpressions,System.Web,System.Web.Caching,System.Web.SessionState,System.Web.Security,System.Web.Profile,System.Web.UI,System.Web.UI.WebControls,System.Web.UI.WebControls.WebParts,System.Web.UI.HtmlControls "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\isrequest\33054296\1d54f648\App_Web_ojodikzn.1.vb" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\isrequest\33054296\1d54f648\App_Web_ojodikzn.2.vb" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\isrequest\33054296\1d54f648\App_Web_ojodikzn.7.vb" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\isrequest\33054296\1d54f648\App_Web_ojodikzn.10.vb" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\isrequest\33054296\1d54f648\App_Web_ojodikzn.9.vb" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\isrequest\33054296\1d54f648\App_Web_ojodikzn.5.vb" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\isrequest\33054296\1d54f648\App_Web_ojodikzn.11.vb" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\isrequest\33054296\1d54f648\App_Web_ojodikzn.0.vb" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\isrequest\33054296\1d54f648\App_Web_ojodikzn.13.vb" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\isrequest\33054296\1d54f648\App_Web_ojodikzn.12.vb" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\isrequest\33054296\1d54f648\App_Web_ojodikzn.6.vb" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\isrequest\33054296\1d54f648\App_Web_ojodikzn.3.vb" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\isrequest\33054296\1d54f648\App_Web_ojodikzn.8.vb" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\isrequest\33054296\1d54f648\App_Web_ojodikzn.4.vb" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\isrequest\33054296\1d54f648\App_Web_ojodikzn.14.vb"
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\stage\ISRequest\Administration\DisplayReports.aspx.vb(2) : warning BC40056: Namespace or type specified in the Imports 'CrystalDecisions.CrystalReports.Engine.ReportDocument' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases.
Imports CrystalDecisions.CrystalReports.Engine.ReportDocument ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ c:\inetpub\stage\ISRequest\Administration\DisplayReports.aspx.vb(9) : error BC30002: Type 'CrystalDecisions.CrystalReports.Engine.ReportDocument' is not defined.
Dim UserProfileReport As New CrystalDecisions.CrystalReports.Engine.ReportDocument ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
Visual Studio1
|
|
|
|
 |
Tom Lake

|
Posted: Crystal Reports for Visual Studio, Compilation Error |
Top |
Are you sure that any resources you use in EPiResearch.WF.Activities are embedded correctly
|
|
|
|
 |
Bite Qiu - MSFT

|
Posted: Crystal Reports for Visual Studio, Compilation Error |
Top |
Change to this:
int Employee::getMonthlySalary(){
return mouthlySalary;
}
Should work.
I highly recommend you to find a book of c/c++ programming for beginner and learn everything basic there.
regards,
rico
|
|
|
|
 |
Martinezg

|
Posted: Crystal Reports for Visual Studio, Compilation Error |
Top |
I solved the problem the following way.
I was running my application on the remote server by copying the .aspx files and then running the application (with the IIS properly configured of course). Using that method was giving me the error above.
Solution: I created a Web Setup file for my application and installed it on the production server. this solved the above issue; Hopefully its works for you too.
|
|
|
|
 |
Mark Dawson

|
Posted: Crystal Reports for Visual Studio, Compilation Error |
Top |
Hi,
the code will not compile due to your errors, what I believe is happening is that you are running that last successful compile of your program, which Visual Studio will allow you to do if your current build fails.. Clean your solution and try to build and run and you will see that nothing will run.
Mark.
|
|
|
|
 |
Peter Ritchie

|
Posted: Crystal Reports for Visual Studio, Compilation Error |
Top |
|
|
 |
Ken Tucker

|
Posted: Crystal Reports for Visual Studio, Compilation Error |
Top |
In order to implement ISubClass you need to have ISubClass defined in your code or have it in a dll you referenced.
|
|
|
|
 |
Chris Vega

|
Posted: Crystal Reports for Visual Studio, Compilation Error |
Top |
The error means that your ASP.NET page bparea2.aspx cannot locate the function InitializeCulture. You can fix it by reviewing any of the the page's functions and/or the page's code-behind (see the inherits attribute on top of your page, for the location of your code-behind).
Anyways, I will be locking this thread because you posted in the wrong forum. This forum is for Windows Forms and Designers only. Please visit the ASP.NET forums here: http://forums.asp.net
Best Regards,
-chris
|
|
|
|
 |
Rishi R Kapoor

|
Posted: Crystal Reports for Visual Studio, Compilation Error |
Top |
I Do have the class module defined by that name.rishi
|
|
|
|
 |
jbearfoot

|
Posted: Crystal Reports for Visual Studio, Compilation Error |
Top |
Hi
I dont use any external resource.
I have stripped down the code that reproduce the error. Just put everything in the same project and comile it to a custom activity library. Then create a new project with an xoml based worklfow that reference the custom activity and drag in the activity into the designer and try to compile it.
I appologize if the formatting of the code below is ugly, I couldn't really get along with the editor.....
First I have a custom type
[ Serializable]
public struct CustomStruct
{
private int _pageID;
public CustomStruct(int pageID)
{
_pageID = pageID;
}
public int ID
{
get{ return _pageID;}
set{_pageID = value;}
}
}
Then I have an interface and a custom event args type like
[ ExternalDataExchange()]
public interface ICustom
{
event EventHandler<CustomEventArgs> CustomEvent;
}
[ Serializable]
public class CustomEventArgs : ExternalDataEventArgs
{
readonly CustomStruct _struct;
public CustomEventArgs(CustomStruct mystruct, Guid workFlowInstanceId)
: base(workFlowInstanceId)
{
_struct = mystruct;
}
public CustomStruct MyStruct
{
get{return _struct;}
}
}
then I have an activity like
[ ToolboxItemAttribute(typeof(ActivityToolboxItem))]
public partial class CustomEvent : HandleExternalEventActivity
{
public static DependencyProperty MyStructProperty = DependencyProperty.Register("MyStruct", typeof(CustomStruct), typeof (CustomEvent));
public CustomEvent()
{
base.InterfaceType = typeof(ActivityLibrary1.ICustom);
base.EventName = "CustomEvent";
base.Description = "custom event";
}
[ ValidationOptionAttribute(ValidationOption.Required)]
public CustomStruct MyStruct
{
get{ return ((CustomStruct)(this.GetValue(CustomEvent.MyStructProperty)));}
set{this.SetValue(CustomEvent.MyStructProperty, value);}
}
[ BrowsableAttribute(false)]
[ DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden)]
public override System.Type InterfaceType
{
get{return base.InterfaceType;}
set{throw new InvalidOperationException("Cannot set InterfaceType on a derived HandleExternalEventActivity.");}
}
[ BrowsableAttribute(false)]
[ DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden)]
public override string EventName
{
get{ return base.EventName;}
set{throw new InvalidOperationException("Cannot set EventName on a derived HandleExternalEventActivity.");}
}
protected override void OnInvoked(System.EventArgs e)
{
ActivityLibrary1. CustomEventArgs castedE = ((ActivityLibrary1.CustomEventArgs)(e));
this.MyStruct = ((CustomStruct)(castedE.MyStruct));
}
}
|
|
|
|
 |
spotty

|
Posted: Crystal Reports for Visual Studio, Compilation Error |
Top |
Is this class in the the project or in a library
If its in the Project you need to ensure that it has Public or Friend scoping. I think the default scoping is friend.
If its in a class library that you are using you need to ensure that the class has Public scoping. If you specified friend or didnt specify any and it uses the default friend then it wont be visible to the Application.
|
|
|
|
 |
Tom Lake

|
Posted: Crystal Reports for Visual Studio, Compilation Error |
Top |
You will need to create a custom WorkflowMarkupSerializer for you struct. Serialization of structs in code separated workflows is not supported in V1. For examples go here or here.
|
|
|
|
 |
Andreas Johansson

|
Posted: Crystal Reports for Visual Studio, Compilation Error |
Top |
If ISubClass is defined in another namespace you will need to import it for the compiler to recognize it.
Imports TheNamespace.WithSubClass
|
|
|
|
 |
jbearfoot

|
Posted: Crystal Reports for Visual Studio, Compilation Error |
Top |
Thanks for the articles they gave me some good information about custom types. I alos tried to build a custom Markup serializer but it doesn't solve my problem.
My understanding of the above articles is how to handle the case where you have custom types that doensn't have a default constructor. In my case my custom type is a struct which must have a Default constructor.
You can easy reproduce the error if you take my previous posted code and builds it.
Thanks for your time!
Regards
Johan B
|
|
|
|
 |
Ken Tucker

|
Posted: Crystal Reports for Visual Studio, Compilation Error |
Top |
Do you have the implements statement on your properties, sub, or functions
Public Interface ISubClass Function MyFunction() As Integer Sub MySub() End Interface
Public Class TheTestClass Implements ISubClass
Public Function MyFunction() As Integer Implements ISubClass.MyFunction Return 0 End Function
Public Sub MySub() Implements ISubClass.MySub
End Sub
End Class
|
|
|
|
 |
|