Some Common Orchard CMS / Visual Studio Fixes
Orchard Doesn’t Build
- Ensure all projects target compatible frameworks . For instance, in Orchard 1.8, make sure all projects target .NET Framework 4.5 in Properties > Application.
- Rebuild the entire solution . This is a nuclear option; that said, it sometimes works.
-
Ensure references are correct
. In particular, check these usual suspects:
- Orchard.Core
- Orchard.Framework
- System.Web.WebPages (correct version?)
- We can often find these here: \Orchard.Source.1.8\src\Orchard.Web\Core\bin
Orchard Doesn’t Render (e.g. White Screen or Server Error)
-
View the log file
. This is in App
Data/Logs/orchard-error-YYYY.MM.DD.log
- Delete the App
Data/Dependencies folder. This will refresh any dependencies that might be out of date. - Check folders’ access control . In particular grant Modify and Read privileges to IIS IUSRS for the App Data, Modules, Themes, Media folders.
-
Properly configure the IIS App Pool
. This applies if your using IIS.
- .NET CLR Version > Match your Applications .NET Framework
- Enable 32-bit Applications > True
- Managed Pipeline Mode > Integrated
Orchard Doesn’t Serve/Find a Particular File
- Ensure resource’s folder has the appropriate web.config file . This applies to Views/Styles/Images/Content folders, for instance.
Visual Studio Weirdness
- Close and reopen Visual Studio . This fixes all sorts of problems.
- Delete the suo file . This is the Solution User Options file. http://msdn.microsoft.com/en-us/library/bb165909.aspx
- Project build succeeds with an error list OR Intellisense is missing. Close Visual Studio, delete the suo file, open Visual Studio. See also:
Other
- Orchard doesn’t serve my CSS or JavaScript (or other linked resource) . Make sure there is an appropriate web.config file in your Styles or Scripts folder.