Skip to main content

Microsoft Silverlight

Answered Question RIAServicesOverview.docx fails to mention <add path="DataService.axd".......in web.config in Chap 3.RSS Feed

(0)

A123456789
A123456789

Member

Member

0 points

1 Posts

RIAServicesOverview.docx fails to mention <add path="DataService.axd".......in web.config in Chap 3.

Chapter 3: "Understanding Silverlight Client Code Generation" in RIAServicesOverview.docx, refers to a simple CityService application, but fails to mention that the line:

<add path="DataService.axd" verb="GET,POST" type="System.Web.Ria.DataServiceFactory, System.Web.Ria, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>

must be added to the Web.config file in order for the application to work.  This is a significant oversight since the sample application will not run without adding the DataService.axd line to the web.config file.

MarkMonster
MarkMonster

Contributor

Contributor

5220 points

1,046 Posts

Answered Question

Re: RIAServicesOverview.docx fails to mention <add path="DataService.axd".......in web.config in Chap 3.

I agree, it's difficult to find out what's causing the error if you're missing the httpHandler. Though when you create a Silverlight Business Application from scratch, with a new Web project, the web.config will contain this httpHandler.

Mark Monster - MCPD Enterprise
http://mark.mymonster.nl
Silverlight and Expression Insiders UG

Dont forget to click "Mark as Answer" on the post that helped you.
  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities