Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7546765
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T09:17:01+00:00 2026-05-30T09:17:01+00:00

I am getting a runtime error when i upload an .aspx file on my

  • 0

I am getting a runtime error when i upload an .aspx file on my server. I uploaded files before of the same format and they were working fine so my server does support this service.
Also, the application is working fine on my local server.

This is the error:
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 tag within a “web.config” configuration file located in the root directory of the current web application. This tag should then have its “mode” attribute set to “Off”.

And this is my code:

<%@ Page Language="C#" %> <%@ import Namespace="System.IO" %> <%@ import Namespace="System" %> <%@ import

Namespace=”System.Collections.Generic” %> <%@ import
Namespace=”System.Linq” %> <%@ import Namespace=”System.Web” %> <%@
import Namespace=”System.Web.UI” %> <%@ import
Namespace=”System.Web.UI.WebControls” %>

public void Button1_Click(object sender, EventArgs e)
{
    //This a program that calculates your mortgage payments

    //Variables used 
    double p;
    double m = 0;
    double rate = 0;
    int years = 0;
    int ny = 0;
    bool result = false;

     rate = DropDownList2.SelectedIndex;    //Here we get the values from the comboBox1 and assign it to the variable "rate"


    //The following IF statements get the value from the radio buttons and assign it to the variable "years"

    if (RadioButtonList2.SelectedIndex == 0)
    {
        years = 15;

    }
    if (RadioButtonList2.SelectedIndex == 1)
    {
        years = 30;

    }
    if (RadioButtonList2.SelectedIndex == 2 && TextBox5.Text != null)
    {
        if (int.TryParse(TextBox4.Text, out ny))
        {
            years = ny;
        }

    }


    //A simple if statement to check if the user filled out all values necessary for the calculation.
    //if any of the values where wrong or missing the program prompts the user to check his/her input again

    if (years != 0 && rate != 0 && double.TryParse(TextBox4.Text, out p))
    {
        m = (p * rate / 1200.0) / (1 - Math.Pow((1.0 + rate / 1200.0), -12.0 * years));
        result = true;


    }
    else
    {
        TextBox6.Text = "Please fill all boxes!";
    }


    //If all of the above steps checks true then the payment amount is displayed on textBox3
    if (result == true)
    {
        TextBox6.Text = m + "";
        StreamWriter sw = File.AppendText("d:/log_file.txt");
        sw.WriteLine(DateTime.Now + "\nAmount: " + m + "");
        sw.WriteLine();
        sw.Close();
    }

}

public void Button2_Click(object sender, EventArgs e)
{
    TextBox4.Text = null;
    TextBox5.Text = null;
    TextBox6.Text = null;
    RadioButtonList2.SelectedIndex = 0;
}
public void Page_Load(object sender, EventArgs e)
{

} </script>

  <script src="css_browser_selector.js" type="text/javascript"></script>

Geo Nicolaides | Monthly Payments

$(document).ready(function () {
$(‘#page_effect’).fadeIn(500);
});

George Nicolaides

IT-330

<div class="footer">

  <div id="nav">

      <div class="navlist1">

          <ul> <li> <a class="navlist" href="index.html">Home</a> </li></ul>

      </div>

     <div class="navlist1">

          <ul> <li><a class="active" href="projects.html" >Projects</a></li> </ul>

      </div>



        <div class="navlist1">

          <ul> <li><a class="navlist" href="view-log.aspx" >Log Files</a></li> </ul>

      </div>          



  </div>



</div> </div>
<div class="wrapper2">            





<div class="content">

<div id="page_effect" style="display:none;"> 
    <asp:Label ID="Label6" runat="server" Text="Years of payments:" ForeColor="White"></asp:Label>
    <asp:RadioButtonList ID="RadioButtonList2" runat="server" style="margin-left:0px; color:White;">
        <asp:ListItem>15</asp:ListItem>
        <asp:ListItem>30</asp:ListItem>
        <asp:ListItem>Other</asp:ListItem>
    </asp:RadioButtonList>
    <asp:TextBox ID="TextBox5" runat="server" style="margin-left:0px" Width="47px"></asp:TextBox>
<br />
    <asp:Label ID="Label7" runat="server" Text="Interest Rate" ForeColor="White"></asp:Label>    <br />
    <asp:DropDownList ID="DropDownList2" runat="server" Height="23px" 
        style="margin-left: 0px">
        <asp:ListItem Selected="True">Rate</asp:ListItem>
        <asp:ListItem>3.0</asp:ListItem>
        <asp:ListItem>3.5</asp:ListItem>
        <asp:ListItem>4.0</asp:ListItem>
        <asp:ListItem>4.5</asp:ListItem>
        <asp:ListItem>5.0</asp:ListItem>
        <asp:ListItem>5.5</asp:ListItem>
        <asp:ListItem>6.0</asp:ListItem>
    </asp:DropDownList>
  <br /> <br />

    <asp:Button ID="Button2" runat="server" style="margin-left: 0px" 
        Text="Calculate" onclick="Button1_Click" ForeColor="Black" 
    Height="37px" Width="119px"  />

 <br /> <br />

    <asp:Label ID="Label8" runat="server" Text="Monthly Payment:" ForeColor="White"></asp:Label>
&nbsp;&nbsp;&nbsp;&nbsp;
    <asp:TextBox ID="TextBox6" runat="server" style="margin-left: 0px" 
        AutoPostBack="True" BackColor="White" Columns="50" ReadOnly="True" 
        ViewStateMode="Enabled" Width="142px"></asp:TextBox>
<br />
  <br />
    <asp:Button ID="Button1" runat="server" style="margin-left: 0px" 
        Text="Reset" onclick="Button2_Click" ForeColor="Black" 
    Height="37px" Width="119px"  />

 <br /> <br />

    <div class="largespacebelow">


  </div>            



  </div>

  </div>

  </div>



  <div class="push2">          

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T09:17:02+00:00Added an answer on May 30, 2026 at 9:17 am

    Your first step should be to get the ‘real’ error. If you have local/GUI access to the server, log in and try to browse to the page at localhost.

    Otherwise, you should edit your web.config to set the customerrors mode to off so you can see the detailed error report remotely. Note: Do not do this if you are worried about security implications, but I’m assuming this isn’t any sort of live high-traffic public website.

    Here is the page about the customerrors web.config element, but basically you just flip the “mode” bit to “off”. That should give you a lot more information to work with.

    One thing I notice after a once-over of your code (and this may just be because the formatting is all kinds of screwed up), but I don’t see an opening <script> tag before your button1_click method. You should also consider moving all of the C# to a code-behind file to separate the logic and design and make everything easier to read and maintain.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Following is the code I am working with. I am getting a runtime error
I am getting a runtime error 13 at the end of the following code:
I am getting the following error: Microsoft JScript runtime error: 'Sys' is undefined While
I'm getting the error Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: Error executing child request for
I am getting a Microsoft JScript runtime error: 'Sys' is undefined error on one
Why am I getting runtime error while trying to do: std::vector<int> vi; std::generate_n(std::back_inserter(vi),10,rand); std::vector<int>
I'm getting a runtime error (memory can't be written) that, after inspection through the
In Excel 2003 I'm getting a Runtime error 1004: application-defined or object-defined error on
I'm getting the following runtime error when I added service reference to my website.
I'm getting a Microsoft JScript runtime error: Object expected on this line of code:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.