|
-
Sep 12th, 2002, 02:08 AM
#1
Thread Starter
Hyperactive Member
IIS vs ASPX Error
when i am running my aspx page the server is not showing any errors. What could be the reason. simply it is displaying as follows. But i have some errors in my page. when i ran it in anothere iis server it has displayed line number ..etc .. Why?
Code:
Server Error in '/DotNet' 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>
What is the Problem...? Do i make any changes in IIs..?
-
Sep 12th, 2002, 09:28 AM
#2
Junior Member
Hi,
Your problem is related to the settings you have in web.config for custom errors - custom errors are used to replace the standard error message with a custom page or with nothing you must have custom errors on or you might be on a remote machine with custom errors on remote only
you have three choices:
customerrors=on
cusotmerrors=off
cusotmerrors=remote only
set custom errors to off to see all errors everywhere:
<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>
- Dave
-
Sep 12th, 2002, 09:35 AM
#3
the messsage tells you what to do to see the errors.
-
Aug 8th, 2004, 07:05 AM
#4
PowerPoster
Well, I am sorry for bringing this one up.
I am facing the EXACT same problem, when I upload my test page on a webserver. The customErrors mode="Off" does not change anything, and it still gives me the same error msg as given by buddu in the first post.
However, all the pages work well on my local machine with no errors.
Any pointers?
Thank you.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|