Click here to Skip to main content
14,743,899 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
hello i have this error when i run the website from somee.com web hosting

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

<configuration>
    <system.web>
        <customErrors mode="Off"/>
    
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"/>


here is my webconfig:-

What I have tried:

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
Posted
Updated 19-Dec-19 17:06pm
v4
Comments
[no name] 20-May-17 11:10am
   
Okay so read the error message and fix the error.
Bryian Tan 20-May-17 22:50pm
   
You can turn off the custom error for now to let the error message display on the page. By the way, next time be careful when posting the web.config, do not include username/password/server information. I'll advise you to change the username and password immediately if whatever you posted can be use to access the database.

<customErrors mode="Off" defaultRedirect="mycustompage.htm"/>
Learn.net37 21-May-17 4:41am
   
man iam not idiot this is the right email but not the right password not any of it and thank u
Bryian Tan 21-May-17 15:13pm
   
Great. I hope same case with the SQL server information.
F-ES Sitecore 22-May-17 4:10am
   
You claim to not be an idiot yet you can't read and understand a plain-text message, and neither did you think to google the message before starting what is probably the 1,000,000,001th forum thread about this message.
Learn.net37 22-May-17 5:55am
   
well some people like u don't have free time , i working 14 hours day and come back home to sit in the laptop and maybe learn few things might help me, people like u should be ashamed thanks btw

That's not an error. That's tell you that an error was thrown and your current site configuration is hiding it from you. It's also telling you exactly what to do so you see an actual error page instead of the page that's hiding the error.

If you're got a customerrors tag and it's turned on, you have to supply an html page to show the error information. Docs on the customerror tag are here[^].
   
<!-- Web.Config Configuration File -->

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

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

<configuration>
<system.web>
<customerrors mode="on
">

   
Comments
Richard Deeming 20-Dec-19 9:40am
   
Turning custom errors on will prevent the error details from displaying.

The solution, as already mentioned in the previous solutions, is turn custom errors off.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900