Cannot open .aspx page

W

Wilton Yuan

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
 
F

Francois Bonin [MVP]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top