472,110 Members | 1,814 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,110 software developers and data experts.

Server Error on '/' Application

Hi,
I get the above error message when I try to run my page on the remote
server.
As I am a newbie with .net, I chose Project | Copy to copy the files needed
to a seperate local directory then copied these to the remote server via
FTP.
The page works fine on my local machine (WinXP Pro, VS.Net etc...)

Page code is:
-------------------------
<%@ Page Language="vb" AutoEventWireup="false"
Codebehind="WebForm1.aspx.vb" Inherits="WebApplication1.WebForm1"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>WebForm1</title>
<META http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft Visual Studio.NET 7.0">
<meta name="CODE_LANGUAGE" content="Visual Basic 7.0">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema"
content="http://schemas.microsoft.com/intellisense/ie5">
</HEAD>
<body MS_POSITIONING="GridLayout">
<form id="calc" method="post" runat="server">
<p>
Type
<asp:DropDownList ID="type" Runat="server">
<asp:ListItem Value=".50" Selected="True">Private Car</asp:ListItem>
<asp:ListItem Value=".20">Company Car</asp:ListItem>
<asp:ListItem Value=".30">Hire/Lease Car</asp:ListItem>
</asp:DropDownList>
</p>
<p>
Milage
<asp:TextBox ID="mileage" Runat="server"></asp:TextBox>
miles
</p>
<p>
<asp:Button id="btnButton" runat="server" Text="Calculate"
OnClick="btnButton_click"></asp:Button>
</p>
<asp:Label ID="Label1" Runat="server"></asp:Label>
</form>
<script runat="server">
Private Sub btnButton_Click(ByVal sender As System.object, ByVal e as
System.EventArgs)
Label1.Text = "Your are due " & CInt(type.SelectedItem.Value *
mileage.Text).ToString("c")
End Sub
</script>
</body>
</HTML>

-------------------------

Exact error msg on remote is:

--------------------------
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>
------------------------------------------

Also when I try, as it says, to change the <customErrors mode="Off" /> it
makes no difference to the output?

Any help, ideas for a very green newbie..?

--
Best Regards
Darren

www.yourdesignz.co.uk
www.darren-craig.co.uk
Nov 18 '05 #1
0 1578

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Javier Cortés Cortés | last post: by
1 post views Thread by Keith | last post: by
9 posts views Thread by Steve Buster | last post: by
6 posts views Thread by AlanS | last post: by
12 posts views Thread by Kevin Farless | last post: by
5 posts views Thread by Bruce Schechter | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.