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