Solved

Server error on Web Application

Posted on 2014-02-14
4
359 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
ID: 39858938
The <customErrors mode="Off"/> part goes immediately after the opening <system.web> tag in your config file.
0
 

Author Comment

by:jjc9809
ID: 39858976
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
ID: 39858998
Yes. It should switch off any custom error pages and simply display the underlying error instead.
0
 

Author Closing Comment

by:jjc9809
ID: 39859269
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
I designed this idea while studying technology in the classroom.  This is a semester long project.  Students are asked to take photographs on a specific topic which they find meaningful, it can be a place or situation such as travel or homelessness.…

930 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

12 Experts available now in Live!

Get 1:1 Help Now