473,320 Members | 2,124 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Why do I get "Type of 'xxxxxxMethod' is not CLS-compliant" error

TS
This method has a return type of a
CrystalDecisions.ReportAppServer.ClientDoc.ReportC lientDocument. I have
gotten this error before with a crystal object but i would think that it
would come complient from Crystal.

Does anyone know why i get this error?

thanks
Sep 28 '06 #1
6 2621
Hi,

Thank you for posting.

Microsoft only supports setup and installation for CrystalReport product
shipped with the Microsoft product.

I am sorry to say that this issue is out of the range of our support
service. Please contact Crystal Decisions (formerly Seagate Software),
which now owns and supports Crystal Report Writer.

Support for Crystal Reports is provided to registered users. To register
for Crystal Reports, visit the following Business Objects Web site:

http://www.businessobjects.com/register/content.asp

Registered users of Crystal Reports may obtain technical support for their
Crystal Reports product. To learn more about obtaining technical support,
visit the following Business Objects Web site:

http://support.businessobjects.com/

For information about developer-related support for Crystal Reports, visit
the following Business Objects Web site:

http://www.businessobjects.com/servi...rystal_dev.asp

Thanks for your understanding and have a nice weekend!
Sincerely,
Linda Liu
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

Sep 29 '06 #2
TS
any comments?

"TS" <ma**********@nospam.nospamwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
This method has a return type of a
CrystalDecisions.ReportAppServer.ClientDoc.ReportC lientDocument. I have
gotten this error before with a crystal object but i would think that it
would come complient from Crystal.

Does anyone know why i get this error?

thanks

Oct 5 '06 #3

TS wrote:
This method has a return type of a
CrystalDecisions.ReportAppServer.ClientDoc.ReportC lientDocument. I have
gotten this error before with a crystal object but i would think that it
would come complient from Crystal.

Does anyone know why i get this error?
You would have to post the method signature (definition) for us to see.

Remember that non-compliance can be something as simple of using an
unsigned type (ulong, ushort, etc) or having a parameter name begin
with an underscore. Non-CLS Compliant doesn't mean that it won't run
under the CLS; it just means that not every .NET language can call the
method because there's something about it that the syntax of other .NET
languages might not support.

Oct 5 '06 #4
TS
[CLSCompliantAttribute(false)]
public static ReportClientDocument ReportSourceInSession
{
get{ return SessionManager.GetSessionItem(Report.ReportSourceS essionKeyName)
as ReportClientDocument; }
}

note the ReportClientDocument class is named in the
CrystalDecisions.ReportAppServer.ClientDoc namespace.

also here:
[CLSCompliantAttribute(false)]
protected CrystalDecisions.Web.CrystalReportViewer crViewer;

and here:

[CLSCompliantAttribute(false)]
public void LoadCrystalViewer(Report report, CrystalReportViewer crViewer)

the Report class in the signature above is a custom class created in C# that
the first static property at the top is declared in.

The compiler won't compile without the CLS attributes i use and they seem to
all stem from the crystal assemblies.

thanks so much.

"Bruce Wood" <br*******@canada.comwrote in message
news:11*********************@e3g2000cwe.googlegrou ps.com...
>
TS wrote:
>This method has a return type of a
CrystalDecisions.ReportAppServer.ClientDoc.Report ClientDocument. I have
gotten this error before with a crystal object but i would think that it
would come complient from Crystal.

Does anyone know why i get this error?

You would have to post the method signature (definition) for us to see.

Remember that non-compliance can be something as simple of using an
unsigned type (ulong, ushort, etc) or having a parameter name begin
with an underscore. Non-CLS Compliant doesn't mean that it won't run
under the CLS; it just means that not every .NET language can call the
method because there's something about it that the syntax of other .NET
languages might not support.

Oct 6 '06 #5
Hmm. I'm as stumped as you are. We need someone who understands CLS
compliance better than I do to explain this one....

TS wrote:
[CLSCompliantAttribute(false)]
public static ReportClientDocument ReportSourceInSession
{
get{ return SessionManager.GetSessionItem(Report.ReportSourceS essionKeyName)
as ReportClientDocument; }
}

note the ReportClientDocument class is named in the
CrystalDecisions.ReportAppServer.ClientDoc namespace.

also here:
[CLSCompliantAttribute(false)]
protected CrystalDecisions.Web.CrystalReportViewer crViewer;

and here:

[CLSCompliantAttribute(false)]
public void LoadCrystalViewer(Report report, CrystalReportViewer crViewer)

the Report class in the signature above is a custom class created in C# that
the first static property at the top is declared in.

The compiler won't compile without the CLS attributes i use and they seem to
all stem from the crystal assemblies.

thanks so much.

"Bruce Wood" <br*******@canada.comwrote in message
news:11*********************@e3g2000cwe.googlegrou ps.com...

TS wrote:
This method has a return type of a
CrystalDecisions.ReportAppServer.ClientDoc.ReportC lientDocument. I have
gotten this error before with a crystal object but i would think that it
would come complient from Crystal.

Does anyone know why i get this error?
You would have to post the method signature (definition) for us to see.

Remember that non-compliance can be something as simple of using an
unsigned type (ulong, ushort, etc) or having a parameter name begin
with an underscore. Non-CLS Compliant doesn't mean that it won't run
under the CLS; it just means that not every .NET language can call the
method because there's something about it that the syntax of other .NET
languages might not support.
Oct 6 '06 #6
TS
thanks for trying Bruce. I have seen something along the lines of it being
the actual assembly from crystal that is non-compliant, so i guess there's
nothing more to do...except move to Reporting Svcs :)

"Bruce Wood" <br*******@canada.comwrote in message
news:11**********************@e3g2000cwe.googlegro ups.com...
Hmm. I'm as stumped as you are. We need someone who understands CLS
compliance better than I do to explain this one....

TS wrote:
>[CLSCompliantAttribute(false)]
public static ReportClientDocument ReportSourceInSession
{
get{ return
SessionManager.GetSessionItem(Report.ReportSource SessionKeyName)
as ReportClientDocument; }
}

note the ReportClientDocument class is named in the
CrystalDecisions.ReportAppServer.ClientDoc namespace.

also here:
[CLSCompliantAttribute(false)]
protected CrystalDecisions.Web.CrystalReportViewer crViewer;

and here:

[CLSCompliantAttribute(false)]
public void LoadCrystalViewer(Report report, CrystalReportViewer
crViewer)

the Report class in the signature above is a custom class created in C#
that
the first static property at the top is declared in.

The compiler won't compile without the CLS attributes i use and they seem
to
all stem from the crystal assemblies.

thanks so much.

"Bruce Wood" <br*******@canada.comwrote in message
news:11*********************@e3g2000cwe.googlegro ups.com...
>
TS wrote:
This method has a return type of a
CrystalDecisions.ReportAppServer.ClientDoc.Report ClientDocument. I
have
gotten this error before with a crystal object but i would think that
it
would come complient from Crystal.

Does anyone know why i get this error?

You would have to post the method signature (definition) for us to see.

Remember that non-compliance can be something as simple of using an
unsigned type (ulong, ushort, etc) or having a parameter name begin
with an underscore. Non-CLS Compliant doesn't mean that it won't run
under the CLS; it just means that not every .NET language can call the
method because there's something about it that the syntax of other .NET
languages might not support.

Oct 6 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Lou Pecora | last post by:
g++ compiler error question. I have a container C whose constructor takes a class B that is inherited from an abstract class A. So I have the line of code: B binstance; C ...
0
by: SKC | last post by:
What I did before problem occured? Ans : When I REVOKE teh EXECUTE from a STORED PROCS called (SP1). and then re GRANTED the EXECUTE permission to SP1. SP1 is a SQL procedure on version 8 UDB....
1
by: Mark Sandfox | last post by:
Is there a way to restrict the user to only selecting and sending either a ..gif or .jpg. Everything I have read says this option can not be done by design (security reasons). I find that irronic...
3
by: Jon | last post by:
I'm learning about datatables. When using the example provided by MS in the ..NET Framework Class Library for DATATABLE (see below) I get an error on line 3 that says "Type expected". Is something...
0
by: hamstak | last post by:
While attempting to perform a build on an .aspx page from within VS 2005 I receive the "Could not load type" error pertaining to the class representing the page. The class is derived from a custom...
2
by: PLISKIN | last post by:
I'm beginner at c++. I wanted to know what does the following code mean? (system("cls");) thanks
2
by: magyar.laszlo | last post by:
Hi ! I have an activex .net dll in a webpage. This activeX is trying to connect to an LDAP server using System.DirectoryServices. Unfortunatelly it gets always "request for the permission of...
3
by: eros | last post by:
ALTER TABLE public.postcodes ALTER COLUMN machi TYPE varchar(100); Error: ERROR: syntax error at or near "TYPE"; Error while executing the query (State:42601, Native Code: 7) I am using...
5
by: tejesh | last post by:
I am trying to compile the following code int backend_sm_run(struct interface_data *ctx) { xsup_assert((ctx != NULL), "ctx != NULL", TRUE); xsup_assert((ctx->statemachine != NULL),...
9
AmberJain
by: AmberJain | last post by:
Hello, What is the difference between --------> 1. clrscr(); // defined in various header files 2. system("cls"); //available in stdio.h in bloodshed dev c++ Well,...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.