By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,961 Members | 2,492 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,961 IT Pros & Developers. It's quick & easy.

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

P: n/a
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
Share this Question
Share on Google+
6 Replies


P: n/a
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

P: n/a
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

P: n/a

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

P: n/a
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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.