473,785 Members | 2,219 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

TS
This method has a return type of a
CrystalDecision s.ReportAppServ er.ClientDoc.Re portClientDocum ent. 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 2639
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**********@n ospam.nospamwro te in message
news:%2******** ********@TK2MSF TNGP02.phx.gbl. ..
This method has a return type of a
CrystalDecision s.ReportAppServ er.ClientDoc.Re portClientDocum ent. 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
CrystalDecision s.ReportAppServ er.ClientDoc.Re portClientDocum ent. 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
[CLSCompliantAtt ribute(false)]
public static ReportClientDoc ument ReportSourceInS ession
{
get{ return SessionManager. GetSessionItem( Report.ReportSo urceSessionKeyN ame)
as ReportClientDoc ument; }
}

note the ReportClientDoc ument class is named in the
CrystalDecision s.ReportAppServ er.ClientDoc namespace.

also here:
[CLSCompliantAtt ribute(false)]
protected CrystalDecision s.Web.CrystalRe portViewer crViewer;

and here:

[CLSCompliantAtt ribute(false)]
public void LoadCrystalView er(Report report, CrystalReportVi ewer 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*******@cana da.comwrote in message
news:11******** *************@e 3g2000cwe.googl egroups.com...
>
TS wrote:
>This method has a return type of a
CrystalDecisio ns.ReportAppSer ver.ClientDoc.R eportClientDocu ment. 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:
[CLSCompliantAtt ribute(false)]
public static ReportClientDoc ument ReportSourceInS ession
{
get{ return SessionManager. GetSessionItem( Report.ReportSo urceSessionKeyN ame)
as ReportClientDoc ument; }
}

note the ReportClientDoc ument class is named in the
CrystalDecision s.ReportAppServ er.ClientDoc namespace.

also here:
[CLSCompliantAtt ribute(false)]
protected CrystalDecision s.Web.CrystalRe portViewer crViewer;

and here:

[CLSCompliantAtt ribute(false)]
public void LoadCrystalView er(Report report, CrystalReportVi ewer 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*******@cana da.comwrote in message
news:11******** *************@e 3g2000cwe.googl egroups.com...

TS wrote:
This method has a return type of a
CrystalDecision s.ReportAppServ er.ClientDoc.Re portClientDocum ent. 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*******@cana da.comwrote in message
news:11******** **************@ e3g2000cwe.goog legroups.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:
>[CLSCompliantAtt ribute(false)]
public static ReportClientDoc ument ReportSourceInS ession
{
get{ return
SessionManager .GetSessionItem (Report.ReportS ourceSessionKey Name)
as ReportClientDoc ument; }
}

note the ReportClientDoc ument class is named in the
CrystalDecisio ns.ReportAppSer ver.ClientDoc namespace.

also here:
[CLSCompliantAtt ribute(false)]
protected CrystalDecision s.Web.CrystalRe portViewer crViewer;

and here:

[CLSCompliantAtt ribute(false)]
public void LoadCrystalView er(Report report, CrystalReportVi ewer
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*******@cana da.comwrote in message
news:11******* **************@ e3g2000cwe.goog legroups.com...
>
TS wrote:
This method has a return type of a
CrystalDecisio ns.ReportAppSer ver.ClientDoc.R eportClientDocu ment. 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
33703
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 cinstance(binstance); The compiler gives the error,
0
11063
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. What was the problem? Ans : Application failed with the following error:
1
3295
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 as this is the reason (security) that I want to restrict their selection. Any help on this one will be greatly appreciated. The page is using ASP.NET.
3
3194
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 missing from the code? Thanks - Jon Private Sub MakeParentTable() ' Create a new DataTable. Dim myDataTable As Datatable = New Datatable("ParentTable")
0
1751
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 base class (which itself is derived from System.Web.UI.Page). This custom base class has been used in other projects successfully. The Inherits attribute of the @Page directive is properly assigned and the application root is properly...
2
139408
by: PLISKIN | last post by:
I'm beginner at c++. I wanted to know what does the following code mean? (system("cls");) thanks
2
2052
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 type" error. If I give full trust at the .net config tool it is working fine. Is there any way to avoid this client .net confoguration?
3
12580
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 WinSQL, Windows XP SP2 Japanese Version, PostgreSQL 8.x. I want to alter my machi field from varchar(30) to varchar(100) TYPE. This is my CREATE TABLE script:
5
3190
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), "ctx->statemachine != NULL", TRUE); backend_sm_check_globals(check);
9
27468
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, if there are no differences, then can we use them interchangebly?
0
9646
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9483
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10346
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10096
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9956
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7504
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
1
4055
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3658
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2887
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.