Unanswered axd deployment issues

  • Thursday, May 19, 2011 1:16 PM
     
     

    Is anything being done to address the issue raised at http://social.msdn.microsoft.com/Forums/en/windowsazure/thread/751e27a9-4108-4446-9870-411f409d2c08?prof=required&lc=1033

    This is a huge issue for us as we use the Telerik controls so we cannot just copy the css files into the project. They're all complied resources.


    Simon Holman
    Expeed Technology
    http://expeed.com.au

All Replies

  • Friday, May 20, 2011 10:46 AM
    Moderator
     
     

    Hello Simon,

    Thank you posting!

    This is a quick note to let you know that I am performing research on this issue and will get back to you as soon as possible. I appreciate your patience.

    Thanks,


    Wengchao Zeng
    Please mark the replies as answers if they help or unmark if not.
    If you have any feedback about my replies, please contact msdnmg@microsoft.com.
    Microsoft One Code Framework
  • Monday, May 23, 2011 4:32 PM
    Moderator
     
     

    Hello Simon,

    Sorry for the late response.

    The issue mentioned in the thread is that WebResource.axd handler does not work properly after the web role is deployed on the cloud. To confirm whether WebResource.axd works or not, I created a simple project using the following steps:

    1. Create a new azure service project with a ASP.NET web role.

    2. Add a sample.css file to the web role and set the "Build Action" as "Embedded Resource".

    3. Mark the css file as web resource by adding the following code (WebApplication1 is my web role project name) in AssemblyInfo.cs:

    [assembly: WebResource("WebApplication1.sample.css", "text/css")]

    4. Add an ASP.NET page Default.aspx to the web role and write the following code to access the css file through WebResource.axd handler:

        protected void Page_Load(object sender, EventArgs e)
        {
            string url = Page.ClientScript.GetWebResourceUrl(typeof(Default), "WebApplication1.sample.css");
            Response.Write(String.Format("<a href='{0}' target='_blank'>{0}</a>", url));
        }

    5. Debug the azure service project in compute emulator and click the link to ensure that WebResource.axd handler is working.

    6. Deploy the project on cloud to see if it works. The result is that it is working fine. You can try my deployed service via http://wenchaozengtest.cloudapp.net/ (just for temporary use).

    If it does not work for Telerik controls for some reasons, a workaround you may consider is to run the web role in compute emulator then copy the file content by manually access the WebResource.axd handler to a new file in your project. And refer to these new files from your pages. In this way, we can get the file content from the embed resource and store it as a solid file.

    Thanks,


    Wengchao Zeng
    Please mark the replies as answers if they help or unmark if not.
    If you have any feedback about my replies, please contact msdnmg@microsoft.com.
    Microsoft One Code Framework
  • Monday, May 23, 2011 10:12 PM
     
     
    The issue is related to the timezone at build time is ahead of the Azure servers set timezone. Change your timezone Australia, then build and deploy and test if it still works.
    Simon Holman
    Expeed Technology
    http://expeed.com.au
  • Tuesday, May 24, 2011 5:17 AM
    Moderator
     
     

    Hi Simon,

    Thanks for your response.

    My original timezone is "(UTC+08:00) Beijing, Chongqing, Hong Kong, Urumqi". Can we say that it is ahead of Azure servers set timezone (which is "(UTC) Coordinated Universal Time")?

    May I ask you to have a try and see it works for you?

    Thanks,


    Wengchao Zeng
    Please mark the replies as answers if they help or unmark if not.
    If you have any feedback about my replies, please contact msdnmg@microsoft.com.
    Microsoft One Code Framework
  • Tuesday, May 24, 2011 5:20 AM
     
     

    No it doesn't work for me which is why I started this thread.

    The issue is explained by a Microsoft staff member in the thread I linked to in my first post.


    Simon Holman
    Expeed Technology
    http://expeed.com.au
  • Tuesday, May 24, 2011 5:23 AM
     
     
    To fix the issue at present I upload the file touch.exe and run the following command file as a startup task "touch.exe nameofassembly.dll"
    Simon Holman
    Expeed Technology
    http://expeed.com.au
  • Tuesday, May 31, 2011 4:44 PM
     
     
    i have fix the issue with some errors..
  • Thursday, June 09, 2011 10:00 PM
     
     

    I don't really agree that my question should be marked as answered.

    I have found a hack/workaround to the issue, the issue itself hasn't been resolved.


    Simon Holman
    Expeed Technology
    http://expeed.com.au