Problem with Application as Virtual Directory

Answered Problem with Application as Virtual Directory

  • Friday, September 14, 2012 9:12 AM
     
     

    We have a website example.com with several applications in virtual directories.  Each of these applications is built.  We created a project AzureProject with 1 webrole (2 instances) that includes these applications, then build and deploy the Azureproject.  In their own webrole and with multiple instances each of the applications works fine but when part of the AzureProject webrole AJAX calls are not working and cause the application to log the user out.

    What should we be doing to ensure his configuration can work?  Any thoughts please?

All Replies

  • Friday, September 14, 2012 9:17 AM
     
     
    Have you set the ajax toolkit dlls copy to local true before deploying the applications. Make sure that those dlls are in bin and then deploy the application. it should work.


    Please mark the replies as Answered if they help and Vote if you found them helpful.

  • Friday, September 14, 2012 9:43 AM
     
     

    Thanks for response... the Ajax dlls are in BIN and are accessible... noerror.  It seems that an AJAX call on the page is going to the next instance and is not recognising that the user is logged in and then re-directs to the log in page.

    But this does not happen when the app is deployed in its own webrole only when it is a VirtualDirectory in a single webrole.


    • Edited by SeanDBreen Friday, September 14, 2012 9:44 AM
    •  
  • Friday, September 14, 2012 9:47 AM
     
     Answered
    As long as you are setting formauthentication cookie load balancing should not cause any issue. Are you handling anything with session? if so try to externalize the session management with tablestorage provider.


    Please mark the replies as Answered if they help and Vote if you found them helpful.