I have the following in my web.config: \[code\]<?xml version="1.0" encoding="utf-8"?><!-- For more information on how to configure your ASP.NET application, please visit http://go.microsoft.com/fwlink/?LinkId=169433 --><configuration> <configSections> <!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 --> <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" /> <sectionGroup name="elmah"> <section name="security" requirePermission="false" type="Elmah.SecuritySectionHandler, Elmah" /> <section name="errorLog" requirePermission="false" type="Elmah.ErrorLogSectionHandler, Elmah" /> <section name="errorMail" requirePermission="false" type="Elmah.ErrorMailSectionHandler, Elmah" /> <section name="errorFilter" requirePermission="false" type="Elmah.ErrorFilterSectionHandler, Elmah" /> </sectionGroup> </configSections> <elmah> <security allowRemoteAccess="yes" /> <errorLog type="Elmah.SqlErrorLog, Elmah" connectionStringName="PhumafConnectionString" /> <errorMail from="*******" to="*********" subject="Application Exception" async="false" smtpPort="0" useSsl="true" /> </elmah> <system.net> <mailSettings> <smtp deliveryMethod="Network"> <network host="smtp.gmail.com" port="587" userName="*********" password="********" /> </smtp> </mailSettings> </system.net> <connectionStrings> <add name="PhumafEntities" connectionString="metadata=res://*/PhumafDB.csdl|res://*/PhumafDB.ssdl|res://*/PhumafDB.msl;provider=System.Data.SqlClient;provider connection string="data source=DRAGAN-THINK\SQLEXPRESS;initial catalog=Phumaf;integrated security=True;multipleactiveresultsets=True;application name=EntityFramework"" providerName="System.Data.EntityClient" /> <add name="PhumafConnectionString" connectionString="Data Source=DRAGAN-THINK\SQLEXPRESS;Initial Catalog=Phumaf;Integrated Security=True;MultipleActiveResultSets=True;Application Name=EntityFramework" providerName="System.Data.SqlClient" /> </connectionStrings> <system.web> <customErrors mode="On" defaultRedirect="~/genericError.aspx"> <error statusCode="404" redirect="~/404.aspx" /> </customErrors> <httpHandlers> <add verb="POST,GET,HEAD" path="elmah.axd" type="Elmah.ErrorLogPageFactory, Elmah" /> </httpHandlers> <httpModules> <add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah" /> <add name="ErrorMail" type="Elmah.ErrorMailModule, Elmah" /> </httpModules> <compilation debug="true" targetFramework="4.5"> <assemblies> <add assembly="System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /> </assemblies> </compilation> <httpRuntime targetFramework="4.5" /> </system.web> <entityFramework> <defaultConnectionFactory type="System.Data.Entity.Infrastructure.SqlConnectionFactory, EntityFramework" /> </entityFramework></configuration>\[/code\]Also I added Elmah.dll to the bin folder. Whenever I run the application I get the IIS error screen containing the following messages :\[code\]HTTP Error 500.22 - Internal Server ErrorAn ASP.NET setting has been detected that does not apply in Integrated managed pipeline mode.Most likely causes:This application defines configuration in the system.web/httpModules section.\[/code\]\[code\]Detailed Error Information:Module ConfigurationValidationModuleNotification BeginRequestHandler PageHandlerFactory-Integrated-4.0Error Code 0x80070032Requested URL http://localhost:13094/index.aspxPhysical Path c:\users\dragan\documents\visual studio 2012\Projects\WebApplication2\WebApplication2\index.aspxLogon Method Not yet determinedLogon User Not yet determinedRequest Tracing Directory C:\Users\Dragan\Documents\IISExpress\TraceLogFiles\WEBAPPLICATION2\[/code\]Validated that my XML is valid and it is 100% valid :/I really dont know what went wrong. It used to be all okay until I tried to implement Elmah. I'm starting to lose my mind, please do help if you see what I did wrong.Thanks for you time and effort!!