I got it working by adding the web.config described in this thread:

http://orchard.codeplex.com/Thread/View.aspx?ThreadId=240652

On Thu, Jan 20, 2011 at 1:20 PM, Brad Wilson (ASP.NET) <
[email protected]> wrote:

>  You will need several DLLs, including System.Web.Razor and
> Microsoft.Web.Infrastructure. Possibly others. Take a look at the list of
> DLLs that is required to bin deploy MVC 3 for clues. J
>
>
>
>
> http://weblogs.asp.net/scottgu/archive/2011/01/18/running-an-asp-net-mvc-3-app-on-a-web-server-that-doesn-t-have-asp-net-mvc-3-installed.aspx
>
>
>
> *From:* Bret Ferrier [mailto:[email protected]]
> *Sent:* Thursday, January 20, 2011 10:09
>
> *To:* [email protected]
> *Subject:* RE: Razor Intellisense
>
>
>
> I am having the same Issue.
>
> Sent from my Windows Phone
>  ------------------------------
>
> *From: *Chris Bower
> *Sent: *Thursday, January 20, 2011 10:18 AM
> *To: *[email protected]
> *Subject: *Razor Intellisense
>
> ---
> You are currently subscribed to orchard-discuss as: [email protected].
>
> To unsubscribe send a blank email to
> [email protected]<[email protected]>
>
> Is anyone having success with Intellisense in Razor when working in an
> Orchard CodeGen'd module? I kept getting this error:
>
> ASP.NET runtime error: There is no build provider registered for the
> extension '.cshtml'. You can register one in the
> <compilation><buildProviders> section in machine.config or web.config. Make
> sure is has a BuildProviderAppliesToAttribute attribute which includes the
> value 'Web' or 'All'.
>
>
>
> I put this in my web.config:
>
> <assemblies>
>
>                 <add assembly="System.Web.WebPages.Razor, Version=1.0.0.0,
> Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
>
>             </assemblies>
>
>             <buildProviders>
>
>                 <add
>
>                    extension=".cshtml"
>
>                    type="System.Web.WebPages.Razor.RazorBuildProvider,
> System.Web.WebPages.Razor"/>
>
>             </buildProviders>
>
>
>
> But now it says:
>
> ASP.NET runtime error: Could not load file or assembly
> 'System.Web.WebPages.Razor' or one of its dependencies. The system cannot
> find the file specified.
>
> ---
> You are currently subscribed to orchard-discuss as: [email protected].
> To unsubscribe send a blank email to
> [email protected]<[email protected]>---
> You are currently subscribed to orchard-discuss as: [email protected].
>
> To unsubscribe send a blank email to
> [email protected]<[email protected]>
>
>  ---
> You are currently subscribed to orchard-discuss as: [email protected].
> To unsubscribe send a blank email to
> [email protected]
>


---
You are currently subscribed to orchard-discuss as: [email protected].
To unsubscribe send a blank email to 
[email protected]

Reply via email to