PC Review


Reply
Thread Tools Rating: Thread Rating: 8 votes, 3.50 average.

Cannot open .aspx page

 
 
Wilton Yuan
Guest
Posts: n/a
 
      27th Jun 2005
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



 
Reply With Quote
 
 
 
 
Francois Bonin [MVP]
Guest
Posts: n/a
 
      29th Jun 2005
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" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> 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
>
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Outlook 2007 " Cannot open this item. cannot open free/busy inform Mahboob Khan Microsoft Outlook Discussion 0 14th Jun 2008 02:14 AM
Cannot open Office docs from an OL 2003 SP2 hyperlink, but can open PDFs? "IE cannot download..." Ray Microsoft Outlook Discussion 0 4th Oct 2006 02:12 PM
cannot open regedit using run, cannot open properties of my comput =?Utf-8?B?bWFyaw==?= Windows XP General 2 30th May 2006 03:27 AM
cannot open tasks/status reports. "cannot open" error suggestion? =?Utf-8?B?aGVscGluZ19hX2ZyaWVuZA==?= Microsoft Outlook Discussion 1 17th Oct 2005 10:00 PM
cannot open PPT on web, always get 'cannot find page"...??? =?Utf-8?B?dGVhY2hlcmdhcnk=?= Microsoft Powerpoint 4 10th Sep 2004 03:21 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:59 PM.