I am getting further in my Silverlight prototype and I think my problem now lies in understanding Wcf within the Rolodex example. I noticed that WcfHostWeb project on the Web properties page has a specific port of 2430. My understanding is that this is the port to which communication with the business objects in the Rolodex.Business.Server is accomplished.
I noticed that the Rolodex application project has the file ServiceReferences.ClientConfig file and it references the port of 2430. I noticed there was not a ServiceReferences reference added to the project.
My question is, was the ServiceReferences.ClientConfig file created by hand and the stuff was entered because the port was mentioned specifically on the Web properties page of the WcfHostWeb project?
Also, I noticed that the WcfHostWeb properties has a Settings.settings file under it and I do not. I have the items in the Web.config file so I thought when the project was built, the Settings.settings would be created, but they are not. Could someone shed some light on this for me.
Also, what are the files clientaccesspolicy.xml and crossdomain.xml for? I included those, but I am not sure what they are for. I figured they must be important so I included them.
Any help with the above questions would be most appreciated and I am making amazing progress in my understanding of Silverlight and Wcf. Read a lot of Michele Leroux Bustamante's book and Matthew MacDonald's book on Silverlight 2 and felt good about the material. But got tired of reading and just wanted to "dig in" and beat my head against the wall to figure things out. After I get more things figured out, it will be time to get back to the books.
Thanks for all your help so far Rocky, Sergey and all others who have helped me. I hope to help some other folks when I get things figured out!
Keith
.ClientConfig has to be created by hand for CSLA SL application s
because the reference to the server is handled by CSLA and you do not need to
add your own reference. As a result, your .CLientConfig file will never be
created by the VS IDE, hence you have to do it by hand. Then again I
always start by copying one from another project and changing port number
Both XML configuration files are to support cross domain access,
since WCF host is running on a different port then the SL web
application. Without those file you will get security exceptions. Those
files are needed by IIS to support cross domain WCF calls made by SL application.
Sergey Barskiy
Principal Consultant
office: 678.405.0687 |
mobile: 404.388.1899
Microsoft Worldwide Partner of the Year | Custom
Development Solutions, Technical Innovation
From: CyclingFoodmanPA
[mailto:cslanet@lhotka.net]
Sent: Monday, January 19, 2009 9:45 PM
To: Sergey Barskiy
Subject: [CSLA .NET] Wcf and Rolodex example
I am getting further in my Silverlight prototype and I think my problem now
lies in understanding Wcf within the Rolodex example. I noticed that
WcfHostWeb project on the Web properties page has a specific port of
2430. My understanding is that this is the port to which communication
with the business objects in the Rolodex.Business.Server is accomplished.
I noticed that the Rolodex application project has the file
ServiceReferences.ClientConfig file and it references the port of 2430. I
noticed there was not a ServiceReferences reference added to the project.
My question is, was the ServiceReferences.ClientConfig file created by hand
and the stuff was entered because the port was mentioned specifically on the
Web properties page of the WcfHostWeb project?
Also, I noticed that the WcfHostWeb properties has a Settings.settings file
under it and I do not. I have the items in the Web.config file so I
thought when the project was built, the Settings.settings would be created, but
they are not. Could someone shed some light on this for me.
Also, what are the files clientaccesspolicy.xml and crossdomain.xml
for? I included those, but I am not sure what they are for. I
figured they must be important so I included them.
Any help with the above questions would be most appreciated and I am making
amazing progress in my understanding of Silverlight and Wcf. Read a lot
of Michele Leroux Bustamante's book and Matthew MacDonald's book on Silverlight
2 and felt good about the material. But got tired of reading and just
wanted to "dig in" and beat my head against the wall to figure things
out. After I get more things figured out, it will be time to get back to
the books.
Thanks for all your help so far Rocky, Sergey and all others who have helped
me. I hope to help some other folks when I get things figured out!
Keith
Copyright (c) Marimer LLC