Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Server error on Web Application

Posted on 2014-02-14
4
Medium Priority
?
365 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 2000 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

Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

Question has a verified solution.

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

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

721 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