Re: AdomdSampleApp GetSchemaDataSet problem

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Akshai Mirchandani [MS] (akshaim_at_online.microsoft.com)
Date: 06/21/04


Date: Mon, 21 Jun 2004 12:52:11 -0700

Hi Richard,

Is it possible for you to obtain the XML returned for the DBSCHEMA_CATALOGS
request and post that here? We could then try to analyze it to see what
could be causing this problem.

Thanks,
Akshai

--
This posting is provided "AS IS" with no warranties, and confers no rights
Please do not send email directly to this alias. This alias is for newsgroup
purposes only.
"Richard Bond" <Richard.Bond@tnsofres.com> wrote in message
news:ehSnu45VEHA.2184@TK2MSFTNGP10.phx.gbl...
> Hello,
>
> I've installed the sample application and am having problems with a
> particualr line of code:
> objTable = connection.GetSchemaDataSet(AdomdSchemaGuid.Catalogs,
> Nothing).Tables(0)
>
>
> {System.InvalidCastException}
>     [System.InvalidCastException]: {System.InvalidCastException}
>     HelpLink: Nothing
>     InnerException: Nothing
>     Message: "Specified cast is not valid."
>     Source: "System.Data"
>     StackTrace: "   at System.Data.DataTableCollection.get_Item(Int32
index)
>    at
>
Microsoft.Samples.SqlServer.AdomdSample.AdomdHelper.GetSchemaDataSet_Catalog
> s(AdomdConnection& connection) in
> C:\Shared\ADOMD_NET\AdomdSampleSolution\AdomdSample\AdomdHelper.vb:line
184
>    at
>
Microsoft.Samples.SqlServer.AdomdSample.MainDialog.LoadDatabaseMetadata(Tree
> Node parentNode) in
> C:\Shared\ADOMD_NET\AdomdSampleSolution\AdomdSample\MainDialog.vb:line
691"
>     TargetSite: {System.Reflection.RuntimeMethodInfo}
>
> I've also tried connection.GetSchemaDataSet(AdomdSchemaGuid.Catalogs,
> Nothing) (without trying to reference the first table.
>
> any thoughts?
>
> My Datasource Naae is the name of my Local Analysis services server.
>
> regards,
>
> Richard
>
>


Relevant Pages

  • Re: get USBDSTATUS using KMDF
    ... the completion params are still valid in the request in the format+send pattern after the send returns. ... Please do not send e-mail directly to this alias. ... The completion params will be passed into your "YourCompletionRoutine". ... WdfRequestGetCompletionParams( ...
    (microsoft.public.development.device.drivers)
  • Re: Question about completion routine for InternalDeviceControl.
    ... WdfRequestFormatRequestUsingCurrentType or some WDFIOTARGET format function? ... Please do not send e-mail directly to this alias. ... The request actually come from the queue ...
    (microsoft.public.development.device.drivers)
  • Re: USB camera driver speed limited in vista system?
    ... segment into max packet size/transfer. ... the max packet size in vista is 0x40000per transfer. ... Why we request a 1920000 bytes size transfer but the host returns just about ... Please do not send e-mail directly to this alias. ...
    (microsoft.public.development.device.drivers)
  • Re: WdfRequestRetrieveOutputBuffer
    ... So I should get the input/output buffer and their length from the request ... > Please do not send e-mail directly to this alias. ... >> is this an internal IOCTL which is Parameters.Others? ...
    (microsoft.public.development.device.drivers)
  • Re: Newbee: Debugging Blue Screen?
    ... attach a kernel debugger and when it bugchecks, run!analyze -v. ... Please do not send e-mail directly to this alias. ... *** Hardware Malfunction. ...
    (microsoft.public.development.device.drivers)