Troubleshooting setting up a new Web application

Here are solutions to some issues that you may encounter when setting up a new Web application in SDL Tridion 2013 SP1.

Troubleshooting Tridion.ContentDelivery.Web.Jvm.Event Logger
Problem: The type initializer for Tridion.ContentDelivery.Web.Jvm.Event Logger threw an exception. and no log files are created, the chances are that this is first time you have run Tridion Content Delivery on your machine.
Solution: Run EventLogCreator.exe (you can find this in the Tridion Content Delivery installation media) as an administrator, this creates the event log category that Tridion Content Delivery uses to log messages.
Troubleshooting BadImageFormatException
Problem: BadImageFormatException: An attempt was made to load a program with an incorrect format implies there is a 64 bit compatibility issue
Solution: Double-check that IIS/IIS Express is running in 64 bit mode and that you have a 64 bit version of Java installed. Then check that the bin/xmogrt.dll file is the 64 bit version. Often the error message displayed in the browser may not show the actual origin of the problem, so the first place to check is the log files. First check the Tridion log files (which you configured in logback.xml) which will show you issues related to licenses or invalid configuration. If you do not see any log files, it may be that you have a trailing slash on your log folder path (check the property with name log.folder). You can also check the Web application log file (which you configured in Log.config).