none
global.asax RRS feed

  • Question

  • I deployed my LightSwitch HTML app to a new server.  I got a Server Error
    500 while the first screen was loading (controls appeared and data progress
    spinner was showing).  The IIS Failed Request Trace log said
        "Could not load type 'LightSwitchApplication.Global'." and referenced
    Global.asax.
     
    This file only has in it:
     <%@ Application Codebehind="Global.asax.cs"
    Inherits="LightSwitchApplication.Global" Language="C#" %>
     
    And there is no Global.asax.cs on the server.  So I just deleted global.asax
    on the server.  And then it worked!!
     
    But I have deployed this app to 3 other servers, with same identical
    Global.asax (and no .cs file) and these were perfectly fine.  Does anyone
    have any idea what is going on?
     
    Thanks,
    David
     
     

    Efficiently read and post to forums with newsreaders: http://communitybridge.codeplex.com
    Saturday, May 18, 2013 1:57 AM

Answers

All replies

  • Hi David,

    I checked and by default LIGHTSWITCH projects do not contain a global.asax file, so have you added this file to your project on purpose? Depends on IIS settings on each machine, the global.asax file may be loaded or not.

    If you don't have a need for this file, I'd recommend deleting it from your project.

    Best regards,
    Huy

    Tuesday, May 21, 2013 12:52 AM
  • Thanks Huy, I appreciate it.  Yes, I did add it when I added Web API to my project (to specify an url route), and then removed it.  I guess it was leftover from that.
     
    Thanks again,
    David
     

    Efficiently read and post to forums with newsreaders: http://communitybridge.codeplex.com
    Tuesday, May 21, 2013 5:04 PM