Works locally not online

Last post 07-16-2008 4:17 PM by Curt_C. 1 replies.

Sort Posts:

  • Works locally not online

    07-16-2008, 4:02 PM
    • Loading...
    • malik999
    • Joined on 09-04-2007, 10:35 PM
    • Posts 20

    Hi

    My pages work locally but not online. After i upload the files to my host server i get error message.  Do i have to do something within visual basic before i upload.

    TIA

     

     

     

    Server Error in '/' Application.

    Runtime Error

    Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.

    Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".

    <!-- Web.Config Configuration File -->

    <configuration>
    <system.web>
    <customErrors mode="Off"/>
    </system.web>
    </configuration>

    Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.

    <!-- Web.Config Configuration File -->

    <configuration>
    <system.web>
    <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
    </system.web>
    </configuration>

  • Re: Works locally not online

    07-16-2008, 4:17 PM
    Answer
    • Loading...
    • Curt_C
    • Joined on 07-23-2003, 8:27 PM
    • Stevens Point, WI - USA
    • Posts 4,293
    • Moderator

    do what it says... turn Off customError settings.

    Odds are though that the site on the server is set to an earlier version of the .Net framework...that's the most common cause.

    Curt Christianson
Page 1 of 1 (2 items)
Microsoft Communities
Page view counter