Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Server error on Web Application

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …

886 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