You need to Register for free and Login to post a message in the forum.

Forum

Subject: custom error page
Prev Next
You are not authorized to post a reply.

Author Messages
rogerg1967
DNN Creative Magazine Subscriber
Nuke Pro
Nuke Pro
Posts:68

11 Feb 2008 4:45 PM  
I have an issue with a website which wont load.l get the following error message.

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 tag within a "web.config" configuration file located in the root directory of the current web application. This tag should then have its "mode" attribute set to "Off".

<PRE><!-- Web.Config Configuration File -->

<configuration>
    <system.web>
        <customErrors mode="Off"/>
    </system.web>
</configuration></PRE>

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 configuration tag to point to a custom error page URL.

<PRE><!-- Web.Config Configuration File -->

<configuration>
    <system.web>
        <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
    </system.web>
</configuration></PRE>

This tells me nothing of the problem but that I should setup this error page.

How do i do this to find the real issue?

Thanks

Roger Goodwin
jncraig
DNN Creative Staff
Nuke Master II
Nuke Master II
Posts:2318


11 Feb 2008 8:06 PM  
Roger,

First of all, have you changed the setting in web.config so that you can get more information? That would be my first step. Then see what the error message says, and post if here.

Joe Craig
DNN Creative Support
Subscribe to the website
rogerg1967
DNN Creative Magazine Subscriber
Nuke Pro
Nuke Pro
Posts:68

13 Feb 2008 2:38 PM  
that is the issue i have. I am not sure how to do this.
jncraig
DNN Creative Staff
Nuke Master II
Nuke Master II
Posts:2318


13 Feb 2008 5:18 PM  
You'll have to get a copy of your web.config file. It is in the root directory of your web site.

If you have FTP or other access to the directory, just make a copy of web.config or download it to your computer. Then, open it up with a a text editor like Notepad. Find the line in question and change it so that it reads:

< customerrors mode="Off" >

(without the spaces, they have been added so it displays in the forum)

Now, go back to your website's directory and change the name of web.config to web.config.save, and then copy the edited version of web.config into that directory. That should do the trick.

If you ever want to go back, or if you've somehow jumbled web.config, copy web.config.save to web.config.

Joe Craig
DNN Creative Support
Subscribe to the website
You are not authorized to post a reply.
Forums > Users Lounge > Everything Else > custom error page



ActiveForums 3.7

Latest Forum Posts

RE: EasyCGI help? by Dr Joe
I'll let you know how it works out. I think I opened up about 6 tickets with them so far. ...
RE: EasyCGI help? by derpir
Hi Joe amazing to say the least! I will change host to PowerDNN as soon as possible, seems to me t...
RE: EasyCGI help? by Dr Joe
Amazing - I'm going through this exact same thing with EasyCGI! I managed to successfully instal...
Running the local host installation after building the application by saintX
My localhost installation of DNN was running blameless. After I oppened the application with VWD it ...
RE: quick question by derpir
Hello Is it possible to buy two skins and combine them? for example put one skins visual attributes...
RE: Environment Variables by leesykes
Thanks for the info,
RE: How can i edit any module from front end by sanju_k1421
ok if i added an text html . now i want to fill into that have to log in ,but i want that an...
Module not working when logged off. by t.ramya85
Hi friends,I have created two modules which interact with each other and i have kept one module to b...
RE: Environment Variables by fandnet
There are many ways to use variables like what I was trying to use...But here is how I did it.DotNet...
RE: OpenForce '08 by mgordon
It was truly a great time.  I really feel this year was much better than last year.  I hope to ge th...
Environment Variables by fandnet
I am creating a simple module that registered users can use to send an email invitation to people wh...
RE: How can i edit any module from front end by leesykes
I'm not sure that I follow, could you provide an example?
RE: Development of modules by leesykes
Hello,Glad you find them useful, at the moment there are not any plans to go into Module Development...
RE: SQL Server 2008 Documents Module DotNetNuke by leesykes
Hello,Thanks for the tip. Yes both connection strings are in correctly and the user has full permiss...
RE: Now, portal creation problem by jncraig
Since you have other issues with installing modules, etc. I believe that you are correct that it's a...
RE: How do I display the current time by jncraig
The [CURRENTDATE] skin object has a DateFormat attribute. The examples give MMMM dd, yyyy as a typi...
RE: Now, portal creation problem by SupaHoopsa
Posted By jncraig on 18 Nov 2008 8:54 AMIf there are other errors related to the database, I would s...
RE: SQL Server 2008 Documents Module DotNetNuke by MobileNow
Make sure that both of the connection strings are the same in the web.config file. Also make sure t...
RE: Now, portal creation problem by jncraig
If there are other errors related to the database, I would start by looking there.  This could be so...
Un-installing SQL Server 2005 by leesykes
I'm in the process of un-installing SQL Server 2005 and while doing this it informs me that Full Tex...
AppTheory
RSS Feeds