Server Errore /Application

I recently created a new sharepoint 2013 solution and upgraded project files from 2007 version in visual studio 2012.

I have a link that calls a page and it is a plain .aspx page which is deployed under _layouts folder under 15 hive. It throws me Server Error/Application when calling that page. I get the description

"To enable to view the error message on a remote machine please create custom error tag and mode = 'remote only" in web.config file.

I tried changing several options like mode = "On", "remote only" and "Off" but cannot see what the details of the error. It is just plain .aspx page. How to get this resolved
Who is Participating?
Rainer JeschorConnect With a Mentor Commented:
to completely disable the custom error page, you will have to adjust
multiple settings
two different web.config files

1. Settings
customErrors mode have to be set to "Off"
SafeMode CallStack have to be set to "true"
compilation debug have to be set to "true"

Here an example how the different nodes should look alike - but be aware that your web.configs can look differently, therefore adjust the existing elements:
<SafeMode CallStack="true".... />
<customErrors mode="Off" />
<compilation batch="false" debug="true">

Open in new window

2. web.config files
The first web.config file is in the root folder of your web application. Normally (if not configured differently) this is in
C:\inetpub\wwwroot\wss\VirtualDirectories\YOUR PORT NUMBER

The second one is the web.config within the Layouts folder:
C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\TEMPLATE\LAYOUTS\web.config

After you have done the changes you should run an IISRESET on the SharePoint server.

And one personal comment: if you could assign more points to your questions you might attract more experts as these points are the reward for helping you out and spending sometimes a lot of personal time.

Thanks and HTH
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.