Silverlight WCF Ria in Sub-Domain

Discussion in 'General troubleshooting' started by edkaufmann, Jun 10, 2011.

  1. thanks for your time ....
    Environment:

    - myDomain Application is developed by VS2008 (Framework 3.5)
    - my sub-domain app is developed by VS2010 (Framework 4) and uses Silverlight with Ria Services and is loaded into sub-domain "test"

    Question 1: does above combination - which is: myDomain Framework3.5 (app pool 2.0 Classic), sub-domain Framework 4.0 (app pool 4.0 classic) - work at all!?

    Below 'redirect' code works fine for subdomain "tmre" (Framework 3.5 app!). To my best knowledge I did NOT change anything extra in the Winhost IIS (like define app pool, etc) for this app!

    On my local machine 'http://localhost/SLTestApp.web' works fine (framework 4.0 app!)

    Question 2: Is below redirect statement "/Subdomains/test/SLTestApp.web" correct? Since I could not find (in the remote IIS) how to define the appropriate App pool; which pool is taken?
    OR, do I need to convert the App in myDomain to Framework 4? I.e. to force taking the same app pool?

    Question 3: Is there anything special when using Silverlight WCF Ria services?

    Thanks for clarifying and your time
    ed

    if (!IsPostBack)
    {

    // EDDIE start: redirect subdomains
    string sname = Request.ServerVariables["SERVER_NAME"].ToLower();
    if (sname.ToLower().Contains("tmre.myDomain.org")) { Response.Redirect("/Subdomains/tmre"); }
    else if ((sname.ToLower().Contains("test.myDomain.org"))) { Response.Redirect("/Subdomains/test/SLTestApp.web"); }
    else if ((sname.ToLower().Contains("ksvc.myDomain.org"))) { Response.Redirect("/Subdomains/ksvc"); }
    else
    {
    }
    // EDDIE end: redirect subdomains
     
  2. Ray

    Ray

    I don' think this will work. For one thing, the application pool can only carry one .Net framework. You will need to decided to either set your Site Account to .Net 3.5 or .Net 4.0.
     
  3. Thanks Ray,
    I already started to raise everything to Framework 4 and app Pool 4.0
    ed
     

Share This Page