title: ASP.NET - Deployment Issues - Enabling Stack Trace / Trace Listener Log via the Web.Config to find the cause of Internal Server 500 Error
body: <p>I am getting a Internal Server 500 error after deploying an application that has compiled without errors on my local machine.  The server that the application is deployed on has a ton of security so I need to specify read and write access for every directory. This application uses windows authentication and a web service to populate drop down boxes via a proxy. I think there might be an issue connecting to the web service or an issue with the read/write security on the files, or an issue with the active directory authentication.</p>
  
  <p>I edited the web.config so that it would display more information as to the cause of the error with the following code: </p>
  
  <pre><code>&lt;system.web&gt;
    &lt;customErrors mode ="Off"&gt;&lt;/customErrors&gt;
    &lt;compilation debug="true" strict="false" explicit="true" targetFramework="4.0" /&gt;
    &lt;trace enabled="true" pageOutput="true" /&gt;
  
    &lt;authentication mode="Windows"/&gt;
     &lt;authorization&gt;
      &lt;allow roles="alg\ADMIN_USER" /&gt;
      &lt;deny users="*" /&gt;        
    &lt;/authorization&gt; 
  
  &lt;client&gt;
    &lt;endpoint address="http://63.236.108.91/aCompService.svc" binding="basicHttpBinding"
      bindingConfiguration="BasicHttpBinding_IAcompService" contract="aComp_ServiceReference.IAcompService"
      name="BasicHttpBinding_IAcompService" /&gt;
  &lt;/client&gt;
  </code></pre>
  
  <p>I am now getting the following Error: </p>
  
  <pre><code>    500 - Internal server error.
  
      There is a problem with the resource you are looking for, and it cannot be 
      displayed. 
  </code></pre>
  
  <p>I would like to see the stack trace with the source of the error. </p>
  
  <p>What am I supposed to put in the web.config file so it displays the full stack trace? </p>
  
  <p>What needs to be changed on the website from locally run to deployment? </p>
  
  <p>Update- The deployment guy lifted some security read/write restrictions and now I get </p>
  
  <pre><code>    Parser Error Message: The connection name 'ApplicationServices' was not found in 
      the applications configuration or the connection string is empty. 
  </code></pre>
  
  <p>To get rid of the error, I removed the AspNetSqlRoleProvider declared on Line 72 and still
  got an error. I then removed the AspNetWindowsTokenRoleProvider and all the provider info
  and got the following Error: </p>
  
  <pre><code>    Exception message: Default Role Provider could not be found.  
  </code></pre>
  
  <p>Our hosting is done all remotely but the server guy can login to the local webserver remotely. It looks like the server guy didn't post the files in the right place. Now, I now get the error: </p>
  
  <pre><code>    There is a problem with the resource you are looking for, and it cannot 
      be displayed.
  </code></pre>
  
  <p>Any ideas on how to fix these issues? </p>
  
  <p>Thanks for looking! </p>