jjc9809
asked on
Server error on Web Application
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
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
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Yes. It should switch off any custom error pages and simply display the underlying error instead.
ASKER
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
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
ASKER
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