Hello,
I am new of ASP.NET, I am trying to develop a web application with ASP.NET
and Microsoft Visual Studio .net 2002. I create only one simple page with
simple C# code behind, it works fine in the developing computer. After I
move all files to another computer on which web server is istting, then I
add one link to the home page of my original ASP web application, Click the
link, it shows a run time error:
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
I checked the setting of Web.Config, the mode is RemoteOnly. What is that?
Thanks in advance.
Wilton 1 4196
Specifies whether custom errors are enabled, disabled, or shown
only to remote clients.
On Specifies that custom errors are enabled. If no defaultRedirect
is specified, users see a generic error.
Off Specifies that custom errors are disabled. This allows display
of detailed errors.
RemoteOnly Specifies that custom errors are shown only to remote
clients and ASP.NET errors are shown to the local host. This is the default.
"Wilton Yuan" <wd****@telus.net> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl... Hello, I am new of ASP.NET, I am trying to develop a web application with ASP.NET and Microsoft Visual Studio .net 2002. I create only one simple page with simple C# code behind, it works fine in the developing computer. After I move all files to another computer on which web server is istting, then I add one link to the home page of my original ASP web application, Click the link, it shows a run time error:
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
I checked the setting of Web.Config, the mode is RemoteOnly. What is that?
Thanks in advance.
Wilton This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: ericvdb |
last post by:
Hi all,
I'm trying to fill a PDF form with asp.net using the FDF Toolkit.
I have a simple form with a textbox and a button. When the button is
clicked, the pdf should open with the field filled...
|
by: Brad |
last post by:
When I open my website, I get a directory, which I really don't want. I want
it to open default.aspx. But when I click on the default.aspx link, I get
this error:
The XML page cannot be...
|
by: Enska |
last post by:
I have problems connecting my access database I get information .. I
cant use my database and I'm administrator on my computer so permission
shutnot bee problem, but I dont know Where is the...
|
by: bennett |
last post by:
I'm trying to write an ASPX page that uses an OleDbDataAdapter to get
data from a SQL Server database. When I test the connection, it
returns success, and when I preview the data using the...
|
by: mo |
last post by:
I have an application that uses Reporting Services. When the user
chooses to print a report, they are taken to a window that allows them
to fill in parameters for the report. They then click a...
|
by: R.A.M. |
last post by:
Hello,
I have written an .aspx page which calls Calendar.aspx page to select
birth date which should be assign to some text box control on first
page.
Here's the code of first page:
Birthdate:...
|
by: Jim in Arizona |
last post by:
I have a gridview that's being populated from an access db query. The
problem I'm having is that the date/time fields in access that are
populating the gridview are showing both date and time, when...
|
by: sirjohnofthewest |
last post by:
If I possessed the power to sway the mind of every user in the world to delete all forms of Internet Explorer I would die a happy man.
Hi guys, I frequently visit this site to get answers to my...
|
by: TC |
last post by:
Hey All,
I'm receiving a weird error in IE now:
"The XML page cannot be displayed"
This is even with the simplest of pages that I previously could view.
Any ideas?
|
by: =?Utf-8?B?Sm9obg==?= |
last post by:
I have several linkbuttons in my main page (default.aspx), and each of them
has a Javascript
funtion that handles the click event and launch a new web page.
Some pages are launched without any...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
| |