ASP/ASP.net snafu

Discussion in 'Software' started by chas267, Dec 20, 2011.

  1. chas267

    chas267 Private E-2

    I've downloaded and uploaded the files for a ASP site, but have not repointed the DNS as of yet. I've attempted to view the site in "preview" mode via the Plesk/Parallells panel, but keep getting a 500 server error instead of the default page.


    The remote server returned an error: (500) Internal Server Error.

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.Net.WebException: The remote server returned an error: (500) Internal Server Error.

    Source Error:

    The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL:

    1. Add a "Debug=true" directive at the top of the file that generated the error. Example:

    <%@ Page Language="C#" Debug="true" %>

    or:

    2) Add the following section to the configuration file of your application:

    <configuration>
    <system.web>
    <compilation debug="true"/>
    </system.web>
    </configuration>

    Note that this second technique will cause all files within a given application to be compiled in debug mode. The first technique will cause only that particular file to be compiled in debug mode.

    Important: Running applications in debug mode does incur a memory/performance overhead. You should make sure that an application has debugging disabled before deploying into production scenario.

    Stack Trace:


    [WebException: The remote server returned an error: (500) Internal Server Error.]
    System.Net.HttpWebRequest.GetResponse() +5386189
    StatManager.GetWebPageAsString(String strURI) +108
    StatManager.LoadData() +105
    StatManager..ctor() +127
    _default.Page_Load(Object sender, EventArgs e) +58
    System.Web.UI.Control.OnLoad(EventArgs e) +99
    System.Web.UI.Control.LoadRecursive() +50
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627

    What do I doo to overcome this error, and get the site up and working? All help is greatly appreciated.
     
  2. mastermosley

    mastermosley Sergeant

    Edit the config file, add
    Code:
    <configuration>
    <system.web>
    [b]<compilation debug="true"/>[/b]
    </system.web>
    </configuration>
    
    And then preview it again, and when the error occurs, it will give you much more detailed exception information that could be useful in diagnosing your error.
     

MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds