Solved

Server error on Web Application

Posted on 2014-02-14
4
364 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

How To Install Bash on Windows 10

Windows’ budding partnership with Canonical has certainly led to some great improvements. One of them being the ability to use Bash on your Windows machine without third party applications! This might be one of the greatest things a cloud engineer in a Windows environment can do!

Question has a verified solution.

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

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…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

626 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