web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Silverlight.and CRM 2011

(0) ShareShare
ReportReport
Posted on by

I've created a Silverlight webresource, For this reason, I've imported this service

http://xxxxxx:8088/CRM/XRMServices/2011/Organization.svc

but when, I want to create a OrganizationRequest, i have this error

Error 1 Cannot apply indexing with [] to an expression of type 'Con.CrmOrganization.OrganizationRequest' C:\SilverlightApplication\Activity.xaml.cs 42 13 SilverlightApplication

Can anybody help me?

*This post is locked for comments

I have the same question (0)
  • ScottDurow Profile Picture
    21 on at

    Can you post what code you have at the line where the exception is thrown in Activity.xaml.cs?

  • Atilin Profile Picture
    on at

    Ups, sorry...

    This is the line

  • Suggested answer
    ScottDurow Profile Picture
    21 on at

    Hi,

    I prefer to create types for each request/response to make it easier to set the values - but either way, you'll need to use:

    Request.Parameters = new ParameterCollection();

    Request.Parameters.SetItem("Query", Query);

    hth

  • Atilin Profile Picture
    on at

    Hi,

    But, when i put this code, i have another error 

    Can you explain more about "create types for each request/response", Do you have a link for read about it?

  • Suggested answer
    ScottDurow Profile Picture
    21 on at

    In your original post - I see now that you were using the approach from the sdk - msdn.microsoft.com/.../gg594452.aspx

    It looks like you are missing the OrganizationRequest partial class that defines the default indexer.

    I suggest you make sure that you've added the 'SilverlightExtensionMethods.cs' code from the sdk sample.

    hth

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
JS-09031509-0 Profile Picture

JS-09031509-0 3

#2
AS-17030037-0 Profile Picture

AS-17030037-0 2

#2
Mark Eckert Profile Picture

Mark Eckert 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans