Solved

Server error on Web Application

Posted on 2014-02-14
4
358 Views
Last Modified: 2014-02-14
Hi everybody,

I am new to web development and need some help with a server error that I am getting.  Please find attached server error and my web configuration file.  Where do I place the the instructed code in the web configuration file.  I tried posting what the error said in the web configuration part and I get another error.  I posted the following in my web configuration file.


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

<configuration>
    <system.web>
        <customErrors mode="Off"/>
    </system.web>
</configuration>
Server-Error.png
WebConfigurationFile.doc
0
Comment
Question by:jjc9809
  • 2
  • 2
4 Comments
 
LVL 52

Accepted Solution

by:
Carl Tawn earned 500 total points
Comment Utility
The <customErrors mode="Off"/> part goes immediately after the opening <system.web> tag in your config file.
0
 

Author Comment

by:jjc9809
Comment Utility
Carl,

I placed the <customErrors mode="Off"/> tag in my local machine application in the web config file.  What does this coding do?  When I now check the web config file back into source control and the application is placed back in Test should the error message now appear as custom showing what is actually wrong?  I am using VS 2012 Team Foundation Services.

jjc9809
0
 
LVL 52

Expert Comment

by:Carl Tawn
Comment Utility
Yes. It should switch off any custom error pages and simply display the underlying error instead.
0
 

Author Closing Comment

by:jjc9809
Comment Utility
Carl,

I found out that the web config file was somehow looking at .Net Framework 2.0 instead of the .Net Framework 4.0.  When I checked the entire application in somehow, The web.config was overriding it back to .NET 2.0.

jjc9809
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now