Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Feb 03, 2012 09:02 PM by pallone
Jan 31, 2012 10:22 PM|LINK
I have created an ASP.NET Dynamic Data Domain Service web Application.
When I added the Domain class (WCF Ria Service), it was added to the same
web application project. This also applies for the entity framework model. (edmx).
However, I would like to separate the application (modules) so that I can
deploy them to different servers. Here are some questions I have. Could you please help me to understand how to achieve this separation?
My Plan is to use 3 servers
- Web Server - I will deploy the ASP.NET Dynamic Data Domain Service web Application here
- App Server - I will deploy the ASP.NET Web Aplication with the WCF Ria Service and the Entity Framework (edmx) here
- DataBase Server - I will have the database here and EF will have to access it.
1 - Can I create the WCF Ria Service in a different web application?
2 - How will I create a service reference to the WCF Ria Service from the ASP.NET Dynamic Data Domain Service?
When I create a domain class, I do not get an .SVC file like with standard WCF service.
3 - Is it possible to call the methods in the WCF Ria Service
from code behind in the ASP.NET instead of only using the DomainDatasource declatively?
4 - Is it possible to test the WCF RIA Services using
MSTest or NUnit?
Feb 01, 2012 10:47 PM|LINK
I don't think that doing this is supported. DomainDataSource is designed to talk to a domain service class that lives in the same server as itself. I guess what it would take is some sort of remote Domain Service that would remote all the calls instead of
handling them itselft, but I'm not sure there is such thing.
Questions #3 & #4 seems more like general RIA Services questions, so I would suggest asking them on that forum (http://forums.silverlight.net/53.aspx), which is more likely to have the experts.
Feb 02, 2012 09:31 AM|LINK
Thanks for your reply and input.
1 - Could you please suggest the best architecture for me to use ASP.NET Dynamic Data web application with a service to fetch data instead of only using the domain service?
Could I do something like this?
ASP.NET DD ----> DomainDataSource -----> Domian service ------> WCF Data Service/WCF Service
2 - Can I right code in the code behind files to access the methods of the Domian service instead of using it declaratively using the DomainDataSource in the apsx page?
3 - By the way, I watched your excellent MIX09
talk about DD and DomainDataSource. Thanks for that.
I would like to play with the demos you showed there. Where can I
download them from? Will they work with VS 2010?
4 - You mentioned in the talk that it is possible to change a normal aspx page to use dynamic data where you would change a DetialView to use DynamicFields.
What else do I need to do to get it to work?
Feb 03, 2012 01:49 AM|LINK
1) I think the closest thing is the WCF data service approach discussed in
2) My understanding of Domain Services is that you're normally not supposed to call the methods directly. But you may want to check with the
3) I think I have the code somewhere, but this was demo code based on temporary things that have probably changed since then. So I would not expect it to still build/run today. Let me know if you still want to take a look.
4) I think there was just one extra step to set things up. I'll have to check on that as I haven't looked at it in a while.
Feb 03, 2012 02:58 PM|LINK
Yes, I would like to watch the talk again with the source code even it it does not work. So I would like to have a look.
Feb 03, 2012 07:06 PM|LINK
Ok, I zipped a few things
Feb 03, 2012 09:01 PM|LINK
Thanks very much for the zip. I will follow your brillant MIX talks with this.
By the way, I am having a lot of problems trying to customize the List.aspx for my tblUser. I just would like to display some columns and have created a folder under CustomPages called tblUsers and copied the List.aspx file there like you did you MIX08 talk.
However, it does not work at all.
When I created my EF I put it in a folder called DAL. I was wondering if the EDMX file has to be in the root of the application for this to work.
Also, I am using a web application as opposed to web site. Does it make any difference?
I would appreciate if you could have a look at my other thread and shed some light.
Feb 03, 2012 09:02 PM|LINK
I forgot to paste the link to the other thread