Cannot open .aspx page
- From: "Wilton Yuan" <wdyuan@xxxxxxxxx>
- Date: Mon, 27 Jun 2005 12:02:41 -0700
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
.
- Follow-Ups:
- Re: Cannot open .aspx page
- From: Francois Bonin [MVP]
- Re: Cannot open .aspx page
- Prev by Date: Re: Download .net 2005
- Next by Date: .NET 2.0 ListView question
- Previous by thread: Download .net 2005
- Next by thread: Re: Cannot open .aspx page
- Index(es):
Relevant Pages
|
Loading