Re: BC30518: Overload resolution failed because no accessible 'ToString' can be called with these arguments:

From: Brian Bischof (BrianNoSpam_at_BischofSystems.com)
Date: 03/17/04


Date: Wed, 17 Mar 2004 10:25:05 -0800

Hey Robert,

You missed one small step when setting up the databindings for the viewer.
You correctly went into the DataBindings dialog box and selected the cached
report. HOWEVER, on the left hand side of the dialog box, you should have
first selected the property "ReportSource". Instead, you left it at the
default property AccessKey. This results in the databindings trying to
assign the cached report to the AccessKey property instead of the
ReportSource property.

Once you fix that, you should be good to go!

HTH,

Brian Bischof

A Crystal Reports.NET book for programmers? Its here!
* Covers ASP.NET and Windows Forms
* Teaches all phases of report development
* Alerts you to the bugs and how to get around them
* Maps out the complex ReportDocument object model
* Shows how to perform runtime customization
* Demonstrates all options of connecting with ADO.NET
* Gives complete code listings for every concept presented

http://www.crystalreportsbook.com/123aspx.asp

"larkinr" <larkinr@saic.com> wrote in message
news:305F3F39-B300-4B19-8C04-2DE0E9794D28@microsoft.com...
> I am at wit's end. I am trying to create a simple report (no graphics) in
Visual Studio.NET 2003 for a web form and cannot get it to work. I can
create the exact same report in a Windows Application. I have tried this in
Windows XP Professional and Windows Server 2003. Please help. The following
is the error I am getting in both environments. Thanks.
>
> 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: BC30518: Overload resolution failed because no
accessible 'ToString' can be called with these arguments:
>
> Source Error:
>
>
>
> Line 12: <body MS_POSITIONING="FlowLayout">
> Line 13: <form id="Form1" method="post" runat="server">
> Line 14: <CR:CrystalReportViewer id="CrystalReportViewer1" accessKey="<%#
cachedEmployee_List1 %>" runat="server" Width="350px" Height="50px">
> Line 15: </CR:CrystalReportViewer>
> Line 16: </form>
>
>
> Source File: C:\Inetpub\wwwroot\bischof\webform1.aspx Line: 14
>
>
>
> Show Detailed Compiler Output:
>
>
> C:\WINDOWS\system32>
"c:\windows\microsoft.net\framework\v1.1.4322\vbc.exe" /t:library
/utf8output
/R:"c:\windows\assembly\gac\system.enterpriseservices\1.0.5000.0__b03f5f7f11
d50a3a\system.enterpriseservices.dll"
/R:"c:\windows\assembly\gac\crystaldecisions.web\9.1.5000.0__692fbea5521e130
4\crystaldecisions.web.dll"
/R:"c:\windows\assembly\gac\system.data\1.0.5000.0__b77a5c561934e089\system.
data.dll"
/R:"c:\windows\assembly\gac\system.web.mobile\1.0.5000.0__b03f5f7f11d50a3a\s
ystem.web.mobile.dll"
/R:"c:\windows\assembly\gac\system.drawing\1.0.5000.0__b03f5f7f11d50a3a\syst
em.drawing.dll" /R:"c:\windows\microsoft.net\framework\v1.1.4322\temporary
asp.net
files\bischof\8baee986\ca03cf07\assembly\dl2\cc0e5d00\e5704b4c_9a0bc401\bisc
hof.dll"
/R:"c:\windows\assembly\gac\system.xml\1.0.5000.0__b77a5c561934e089\system.x
ml.dll"
/R:"c:\windows\assembly\gac\system.web.services\1.0.5000.0__b03f5f7f11d50a3a
\system.web.services.dll"
/R:"c:\windows\assembly\gac\system\1.0.5000.0__b77a5c561934e089\system.dll"
/R:"c:\windows\assembly\gac\system.web\1.0.5000.0__b03f5f7f11d50a3a\system.w
eb.dll" /out:"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET
Files\bischof\8baee986\ca03cf07\1rcnli8b.dll" /D:DEBUG=1 /debug+
/win32resource:"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary
ASP.NET Files\bischof\8baee986\ca03cf07\1rcnli8b.res"
"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET
Files\bischof\8baee986\ca03cf07\1rcnli8b.0.vb"
>
>
> Microsoft (R) Visual Basic .NET Compiler version 7.10.3052.4
> for Microsoft (R) .NET Framework version 1.1.4322.573
> Copyright (C) Microsoft Corporation 1987-2002. All rights reserved.
>
> C:\Inetpub\wwwroot\bischof\webform1.aspx(14) : error BC30518: Overload
resolution failed because no accessible 'ToString' can be called with these
arguments:
> 'Public Shared Function ToString(value As String) As String':
Reference required to assembly 'CrystalDecisions.ReportSource' containing
the implemented interface 'CrystalDecisions.ReportSource.ICachedReport'. Add
one to your project.
> 'Public Shared Function ToString(value As Date) As String': Reference
required to assembly 'CrystalDecisions.ReportSource' containing the
implemented interface 'CrystalDecisions.ReportSource.ICachedReport'. Add one
to your project.
> 'Public Shared Function ToString(value As Decimal) As String':
Reference required to assembly 'CrystalDecisions.ReportSource' containing
the implemented interface 'CrystalDecisions.ReportSource.ICachedReport'. Add
one to your project.
> 'Public Shared Function ToString(value As Double) As String':
Reference required to assembly 'CrystalDecisions.ReportSource' containing
the implemented interface 'CrystalDecisions.ReportSource.ICachedReport'. Add
one to your project.
> 'Public Shared Function ToString(value As Single) As String':
Reference required to assembly 'CrystalDecisions.ReportSource' containing
the implemented interface 'CrystalDecisions.ReportSource.ICachedReport'. Add
one to your project.
> 'Public Shared Function ToString(value As System.UInt64) As String':
Reference required to assembly 'CrystalDecisions.ReportSource' containing
the implemented interface 'CrystalDecisions.ReportSource.ICachedReport'. Add
one to your project.
> 'Public Shared Function ToString(value As Long) As String': Reference
required to assembly 'CrystalDecisions.ReportSource' containing the
implemented interface 'CrystalDecisions.ReportSource.ICachedReport'. Add one
to your project.
> 'Public Shared Function ToString(value As System.UInt32) As String':
Reference required to assembly 'CrystalDecisions.ReportSource' containing
the implemented interface 'CrystalDecisions.ReportSource.ICachedReport'. Add
one to your project.
> 'Public Shared Function ToString(value As Integer) As String':
Reference required to assembly 'CrystalDecisions.ReportSource' containing
the implemented interface 'CrystalDecisions.ReportSource.ICachedReport'. Add
one to your project.
> 'Public Shared Function ToString(value As System.UInt16) As String':
Reference required to assembly 'CrystalDecisions.ReportSource' containing
the implemented interface 'CrystalDecisions.ReportSource.ICachedReport'. Add
one to your project.
> 'Public Shared Function ToString(value As Short) As String': Reference
required to assembly 'CrystalDecisions.ReportSource' containing the
implemented interface 'CrystalDecisions.ReportSource.ICachedReport'. Add one
to your project.
> 'Public Shared Function ToString(value As Byte) As String': Reference
required to assembly 'CrystalDecisions.ReportSource' containing the
implemented interface 'CrystalDecisions.ReportSource.ICachedReport'. Add one
to your project.
> 'Public Shared Function ToString(value As System.SByte) As String':
Reference required to assembly 'CrystalDecisions.ReportSource' containing
the implemented interface 'CrystalDecisions.ReportSource.ICachedReport'. Add
one to your project.
> 'Public Shared Function ToString(value As Char) As String': Reference
required to assembly 'CrystalDecisions.ReportSource' containing the
implemented interface 'CrystalDecisions.ReportSource.ICachedReport'. Add one
to your project.
> 'Public Shared Function ToString(value As Boolean) As String':
Reference required to assembly 'CrystalDecisions.ReportSource' containing
the implemented interface 'CrystalDecisions.ReportSource.ICachedReport'. Add
one to your project.
> 'Public Shared Function ToString(value As Object) As String':
Reference required to assembly 'CrystalDecisions.ReportSource' containing
the implemented interface 'CrystalDecisions.ReportSource.ICachedReport'. Add
one to your project.
>
> target.AccessKey =
System.Convert.ToString(cachedEmployee_List1)
>
>
>



Relevant Pages

  • Re: [OT] My First C# (warning - long post)
    ... or string,. ... public string IBreturn ... interface block with the new return code. ... It is unwieldy to keep referencing substrings of an 8K string ...
    (comp.lang.cobol)
  • Re: Explicit Linking of DLLs in VB.net
    ... yes this technique will only work on managed assemblys (exe or dll) ... "YourObject" is a form and is limited to the form methods. ... Wel implement propertys, methods, events in your interface and start ... Public Shared Function LoadMeByName(ByVal vstrAssemblyName As String, ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Operator overloading [was Re: 7.0 wishlist?]
    ... I doubt Harry was proposing that the translation be naïve. ... public interface Addable{ ... BigDecimal--would be powerful enough, even if operator overloading ... String and return a String, ...
    (comp.lang.java.programmer)
  • Re: converting the use of interfaces under vb6 to vb.net
    ... VB6. ... | Public Function NewEnum() As IUnknown ... |> Public Interface IReadonlyPerson ... |> | Public Property Get FirstNameas String ...
    (microsoft.public.dotnet.languages.vb)
  • Re: C# app with COM Interface for array of COM structs
    ... USDALib.PhysicalLocation_tI1000Gates.GetROI(int partID, string ... public interface I1000Gates ... riid, out IntPtr ppvObject) ... public interface IClassFactory ...
    (microsoft.public.dotnet.languages.csharp)