locked
publishing issue RRS feed

  • Question

  • User1298215938 posted

    I'm having issues publishing my application that i created its a simple application adding data to a sql DB.

    I keep getting this error I have no idea what could be causing this error. Does anyone have any ideas?

    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>

    Saturday, August 8, 2020 8:10 PM

Answers

  • User-352524747 posted

    To see what type of error is set the customErrors tag to Off mode.

    Add this line to your web.config > system.web

    <customErrors mode="Off"/>
    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Saturday, August 8, 2020 9:53 PM
  • User1535942433 posted

    Hi MOHIIMRAN,

    As far as I think,I suggest you could off customErrors in the web.config and you could get the details of errors.

    Just like this:

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

    Could you post the details of errors to us?It will help us to solve your problems.

    Best regards,

    Yijing Sun

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, August 10, 2020 8:03 AM

All replies

  • User-352524747 posted

    To see what type of error is set the customErrors tag to Off mode.

    Add this line to your web.config > system.web

    <customErrors mode="Off"/>
    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Saturday, August 8, 2020 9:53 PM
  • User1298215938 posted

    I get this error as soon as I add a SQL connection string

    Saturday, August 8, 2020 11:31 PM
  • User1535942433 posted

    Hi MOHIIMRAN,

    As far as I think,I suggest you could off customErrors in the web.config and you could get the details of errors.

    Just like this:

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

    Could you post the details of errors to us?It will help us to solve your problems.

    Best regards,

    Yijing Sun

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, August 10, 2020 8:03 AM