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?
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.
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.
1) I think the closest thing is the WCF data service approach discussed in
this thread.
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
experts.
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.
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.
pallone
Member
165 Points
160 Posts
ASP.NET Dynamic Data DomainDataSource and WCF Ria Services
Jan 31, 2012 10:22 PM|LINK
Hi,
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?
Cheers
C
davidebb
Contributor
7006 Points
1366 Posts
Microsoft
Re: ASP.NET Dynamic Data DomainDataSource and WCF Ria Services
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.
pallone
Member
165 Points
160 Posts
Re: ASP.NET Dynamic Data DomainDataSource and WCF Ria Services
Feb 02, 2012 09:31 AM|LINK
Hi David,
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?
Cheers
C
davidebb
Contributor
7006 Points
1366 Posts
Microsoft
Re: ASP.NET Dynamic Data DomainDataSource and WCF Ria Services
Feb 03, 2012 01:49 AM|LINK
1) I think the closest thing is the WCF data service approach discussed in this thread.
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 experts.
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.
pallone
Member
165 Points
160 Posts
Re: ASP.NET Dynamic Data DomainDataSource and WCF Ria Services
Feb 03, 2012 02:58 PM|LINK
Hi David,
Thanks.
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.
Cheers
C
davidebb
Contributor
7006 Points
1366 Posts
Microsoft
Re: ASP.NET Dynamic Data DomainDataSource and WCF Ria Services
Feb 03, 2012 07:06 PM|LINK
Ok, I zipped a few things here.
pallone
Member
165 Points
160 Posts
Re: ASP.NET Dynamic Data DomainDataSource and WCF Ria Services
Feb 03, 2012 09:01 PM|LINK
David,
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.
Cheers
C
pallone
Member
165 Points
160 Posts
Re: ASP.NET Dynamic Data DomainDataSource and WCF Ria Services
Feb 03, 2012 09:02 PM|LINK
sorry,
I forgot to paste the link to the other thread
http://forums.asp.net/t/1765641.aspx/1?CustomPages+not+working
Cheers
C