Click here to Skip to main content
11,924,573 members (61,770 online)
Click here to Skip to main content
Add your own
alternative version


2 bookmarked

How to debug a RIA Service Class Library (RIA "magic" demystified)

, 28 Mar 2012 CPOL
Rate this:
Please Sign up or sign in to vote.
How to debug RIA Service Class Library ( RIA "magic" demystified )


A simple tip about how to debug a Silverlight RIA Service Class library. 


Imagine that you have created a Silverlight RIA Service Class Library and everything works fine, but when you plug the library in a separate solution the service for some reason doesn't  run ( for some reason the RIA Service "magic" that handle the .svc file just respond with a 404 not found ).

How can you know the real problem ? 

Using the code (manually creating .svc) 

Instead of letting RIA handle the .svc, what about if we manually create this file and access through the URL? So how? 

Just create a .SVC file let´s say RIATest.svc, and write this code bellow. 

<%@ ServiceHost Service="FULLYQUALIFIEDNAME" 

FULLYQUALIFIEDNAME = the fully qualified name of your domain service (inside Silverlight RIA Service Class library Web project ) 

The Factory is the "magic", so now you are simulating the RIA "magic" and if an error occur you will see at run time on our pleasant yellow page. 

Hope you enjoy. 


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Brazil Brazil
No Biography provided

You may also be interested in...

Comments and Discussions

SuggestionGood but... Pin
Member 1026699224-Dec-13 0:00
memberMember 1026699224-Dec-13 0:00 
QuestionVery helpfull Pin
davi.psr28-Mar-12 7:31
memberdavi.psr28-Mar-12 7:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.151125.3 | Last Updated 28 Mar 2012
Article Copyright 2012 by fealbernaz
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid