UTCNow ot returning a value

Discussion in 'ASP.NET / ASP.NET Core' started by paulconnolly, Jun 29, 2010.

  1. I am using asp.net mvc2 and cannot get the following to return a value from the discountasp.net server even though it works ok on my local laptop.

    return DateTime.UtcNow.Hour.ToString();

    can anyone give me an idea why it does not return a value?
     
  2. Bruce

    Bruce DiscountASP.NET Staff

    I created a test script and it this method returned a proper value.
     
  3. Thanks Bruce,

    The guys at Stack overflow helped me find out my schoolboy error.

    That the hosted server does not actually compile the application, I need only to upload the dll for any source code, not the actual files.

    Thanks for the help

    Paul
     

Share This Page