If you get the error:
You can try one or more of the followings:
1. Add a "Web.config" file with the following content:
2. In WebMatrix, click the Site workspace, and then in the tree-view click Settings.
(a) In the Select .NET Framework Version list, select .NET 4 (Integrated).
(b) Try to update ASP.NET Web Pages to the latest version.
3. If you run into this error for your hosted site or you have a bin folder containing some DLLs
then Choose the folder of your site and convert it to application
In Somee.com/Filer Manger: Click the entry with your site name under Web Sites then choose the Applications option immediately below the site name. Finally choose the folder of interest and click on Convert to Application button.
Note: For Somee.com, the basic Razor examples will work fine even if the "bin" folder is removed thus there is no need for the above.
4. You can browse here for more troubleshooting info.