<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : Azure Deployment</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : Azure Deployment</description>
  <pubDate>Wed, 29 Jul 2026 19:31:20 -700</pubDate>
  <lastBuildDate>Thu, 07 Apr 2011 08:24:11 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=2592</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>Azure Deployment : Thanks for the update, and for...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2592&amp;PID=10410#10410</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=11" rel="nofollow">kimj</a><br /><strong>Subject:</strong> 2592<br /><strong>Posted:</strong> 07-Apr-2011 at 8:24am<br /><br />Thanks for the update, and for the tip on passing a tenant extension into your SL application!]]>
   </description>
   <pubDate>Thu, 07 Apr 2011 08:24:11 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2592&amp;PID=10410#10410</guid>
  </item> 
  <item>
   <title>Azure Deployment : Hi Kim,  yesturday I continued...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2592&amp;PID=10409#10409</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=692" rel="nofollow">Andrew</a><br /><strong>Subject:</strong> 2592<br /><strong>Posted:</strong> 06-Apr-2011 at 11:52pm<br /><br />Hi Kim,<DIV>&nbsp;</DIV><DIV>yesturday I continued with the problem. After a long session with <BR>re-constructing the whole application in a new solution I found out that there was a relict from<BR>the first days of the DevForce 2010 release. I used a class that was derived from "ServiceProxyEvents"<BR>to work around an issue whereby DevForce had set the the service endpoint address incorrectly.</DIV><DIV>After you fixed the problem I forgot to remove this one from my application.<BR>Actually it prevented receiving a not empty keyExtension within DataSourceKeyResolver.</DIV><DIV>&nbsp;</DIV><DIV>So, it was my fault.</DIV><DIV>&nbsp;</DIV><DIV>Addtion to my initial question for all others who are interested in: </DIV><DIV>I extract the Tenant name from an URL-parameter and give it then to the EntityManager as dataSourceExtension:</DIV><DIV><PRE style="FONT-FAMILY: c&#111;nsolas"><SPAN style="COLOR: #2b91af">Dictionary</SPAN>&lt;<SPAN style="COLOR: blue">string</SPAN>,&nbsp;<SPAN style="COLOR: blue">string</SPAN>&gt;&nbsp;urlparams&nbsp;=&nbsp;<SPAN style="COLOR: #2b91af">HtmlPage</SPAN>.Document.QueryString&nbsp;<SPAN style="COLOR: blue">as</SPAN>&nbsp;<SPAN style="COLOR: #2b91af">Dictionary</SPAN>&lt;<SPAN style="COLOR: blue">string</SPAN>,&nbsp;<SPAN style="COLOR: blue">string</SPAN>&gt;;<BR>			<SPAN style="COLOR: blue">string</SPAN>&nbsp;tenantName&nbsp;=&nbsp;<SPAN style="COLOR: blue">string</SPAN>.Empty;<BR>			urlparams.TryGetValue(<SPAN style="COLOR: #a31515">"Tenant"</SPAN>,&nbsp;<SPAN style="COLOR: blue">out</SPAN>&nbsp;tenantName);<BR>			<SPAN style="COLOR: blue">if</SPAN>&nbsp;(tenantName&nbsp;==&nbsp;<SPAN style="COLOR: blue">null</SPAN>)<BR>				tenantName&nbsp;=&nbsp;<SPAN style="COLOR: blue">string</SPAN>.Empty;</PRE></DIV><DIV><DIV>Thanks </DIV><DIV>Andrew</DIV></DIV><DIV>&nbsp;</DIV><DIV><PRE style="FONT-FAMILY: c&#111;nsolas">&nbsp;</PRE><PRE style="FONT-FAMILY: c&#111;nsolas"><DIV>&nbsp;</DIV></PRE></DIV>]]>
   </description>
   <pubDate>Wed, 06 Apr 2011 23:52:36 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2592&amp;PID=10409#10409</guid>
  </item> 
  <item>
   <title>Azure Deployment : Check the debuglog on your server...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2592&amp;PID=10329#10329</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=11" rel="nofollow">kimj</a><br /><strong>Subject:</strong> 2592<br /><strong>Posted:</strong> 30-Mar-2011 at 6:41pm<br /><br /><P>Check the debuglog on your server to see what it says regarding the EntityServer(s) it's started and is listening on.&nbsp; The log will contain trace messages about what it thinks the data source extension is, and that extension should be passed to your resolver.&nbsp;&nbsp; One thing to remember is that the resolver is essentially server-side - it should be deployed on your server and is generally not needed on your client at all (the exception is when returning an EntityCacheState from an RPC method).&nbsp; </P><DIV>The log should contain messages similar to what's shown here:&nbsp; <a href="http://drc.ideablade.com/xwiki/bin/view/&#068;ocumentati&#111;n/logged-info#HCommunicati&#111;ns" target="_blank">http://drc.ideablade.com/xwiki/bin/view/Documentation/logged-info#HCommunications</A>, with your "Test" extension reflected in the EntityServer service names.</DIV>]]>
   </description>
   <pubDate>Wed, 30 Mar 2011 18:41:21 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2592&amp;PID=10329#10329</guid>
  </item> 
  <item>
   <title>Azure Deployment : Hi Kim,  I&amp;#039;m setting the...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2592&amp;PID=10328#10328</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=692" rel="nofollow">Andrew</a><br /><strong>Subject:</strong> 2592<br /><strong>Posted:</strong> 30-Mar-2011 at 5:08pm<br /><br />Hi Kim,<DIV>&nbsp;</DIV><DIV>I'm setting the dataSourceExtension when creating the EM like you proposed:</DIV><DIV>myManager = <SPAN style="COLOR: #0000ff">new</SPAN> MyEntities(dataSourceExtension: <SPAN style="COLOR: #a31515">"Test"</SPAN>);</DIV><DIV>The Tenant-Name is actually coming from an URL-parameter in the client app.</DIV><DIV>My problem is that the DataSourceKeyResolver doesn't have the keyExtension = "Test" in the GetKey method.</DIV><DIV>Do you have any idea why I get an empty string in keyExtension?</DIV><DIV>(DataSourceKeyResolver&nbsp; has attribute &#091;DataContract&#093; belonging to serialization!)</DIV><DIV>&nbsp;</DIV><DIV>Thanks</DIV><DIV>Andrew</DIV>]]>
   </description>
   <pubDate>Wed, 30 Mar 2011 17:08:17 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2592&amp;PID=10328#10328</guid>
  </item> 
  <item>
   <title>Azure Deployment : The DevForce support for a multi-tenant...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2592&amp;PID=10321#10321</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=11" rel="nofollow">kimj</a><br /><strong>Subject:</strong> 2592<br /><strong>Posted:</strong> 30-Mar-2011 at 10:02am<br /><br />The DevForce support for a multi-tenant applications doesn't differ between Azure or other types of deployments.&nbsp; Your DynamicDataSourceKeyResolver will receive a "data source extension" in its GetKey method, and the extension will represent the tenant (if you provided an extension to the EntityManager when creating the EM).&nbsp; So if you create your EM with an extension of "Customer1" that will flow through to the DataSourceKeyResolver and let you build an appropriate connection string. <DIV>&nbsp;</DIV><DIV>You don't actually need a DataSourceKeyResolver for multi-tenant applications, though, since DevForce will also expect the names of connectionStrings to contain the extension, for example "Northwind_Customer1", "Northwind_Customer2".</DIV><DIV>&nbsp;</DIV><DIV>You can obtain the URL from the OperationContext.Current or HttpContext.Current, but DevForce resolves keys once only based on two pieces of information:&nbsp; the key name and the extension.&nbsp; So if you didn't use a data source extension and hoped to resolve the key name for each specific request this won't work.</DIV>]]>
   </description>
   <pubDate>Wed, 30 Mar 2011 10:02:22 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2592&amp;PID=10321#10321</guid>
  </item> 
  <item>
   <title>Azure Deployment : Just to be clear: My application...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2592&amp;PID=10313#10313</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=692" rel="nofollow">Andrew</a><br /><strong>Subject:</strong> 2592<br /><strong>Posted:</strong> 29-Mar-2011 at 3:01pm<br /><br />Just to be clear: My application is a Devforce-Silverlight-Application!]]>
   </description>
   <pubDate>Tue, 29 Mar 2011 15:01:43 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2592&amp;PID=10313#10313</guid>
  </item> 
  <item>
   <title>Azure Deployment : I&amp;#039;m working on the deployment...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2592&amp;PID=10311#10311</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=692" rel="nofollow">Andrew</a><br /><strong>Subject:</strong> 2592<br /><strong>Posted:</strong> 29-Mar-2011 at 2:48pm<br /><br />I'm working on the deployment of a multi tenant appliaction. <DIV>The single tenant deployment is working already. </DIV><DIV>I followed the video from Ward Bell and Kim Johnson - thank you by the way!</DIV><DIV>&nbsp;</DIV><DIV>Now I'm looking for a way to determine the tenant from the URL to set the right<BR>connection string within the <FONT color=#2b91af size=2 face=C&#111;nsolas><FONT color=#2b91af size=2 face=C&#111;nsolas><FONT color=#2b91af size=2 face=C&#111;nsolas>DynamicDataSourceKeyResolver</FONT></FONT></FONT>.</DIV><DIV>Is there any existing idea to do that?</DIV><DIV>My favourite scenario would be mycompany.cloudapp.net/Customer1, mycompany.cloudapp.net/Customer2 ...</DIV><DIV>An redirect via CNAME within the DNS-Config could be another option: customer1.mycompany.net -&gt; mycompany.cloudapp.net</DIV><DIV>I've made some testing but I don't get it work.</DIV><DIV>Hope you can help me!?</DIV><DIV>&nbsp;</DIV><DIV>Thank you</DIV>]]>
   </description>
   <pubDate>Tue, 29 Mar 2011 14:48:26 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2592&amp;PID=10311#10311</guid>
  </item> 
 </channel>
</rss>