[Mono-list] Serving cshtml files as parsed.
Martin Thwaites
monoforum at my2cents.co.uk
Sun Sep 28 21:29:37 UTC 2014
Thanks Fernando, couple of things I forgot to add...
It's running through XSP in debug through MonoDevelop. Secondly, it's not
MVC that I'm trying to run. It's a static cshtml that's self contained.
i.e. admin/index.cshtml, I need it to be processed and served.
Thanks,
Martin
On 28 September 2014 22:12, Fernando Rodriguez <
frodriguez.developer at outlook.com> wrote:
> On Sunday 28 September 2014 9:47:53 PM Martin Thwaites wrote:
> > I'm trying to run a solution on mono that uses cshtml files without using
> > MVC.
> >
> > On Windows, the files are parsed and served, however, on mono it's
> throwing
> > them back as if they are static files.
> >
> > I'm sure I'm missing something obvious, but just can't get my head around
> > it.
> >
> > Anyone got any advice?
> >
> > Thanks,
> > Martin
>
> Did you configure the web server to handle .cshtml files by mono?
>
> Also to get MVC4 working on mono (I could never get MVC5 working) I had to
> copy all the System.Web.WebPages.* and Razor assemblies to my bin
> directory so
> you may need to do the same.
>
>
> ----------
> Fernando Rodriguez
> frodriguez.developer at outlook.com
> _______________________________________________
> Mono-list maillist - Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-list/attachments/20140928/77f632fd/attachment.html>
More information about the Mono-list
mailing list