Can't get razor views to work on a pure owin application

68 views
Skip to first unread message

Marcelo Zabani

unread,
Oct 29, 2013, 12:50:25 PM10/29/13
to simple...@googlegroups.com
I can't get razor views to work when running Simple.Web on a pure owin pipeline (no ASP.NET). I've tried maintaining a reference to Simple.Web.Razor.RazorHtmlMediaTypeHandler in my main class, I've added all necessary keys appropriately in app.config, but Simple.Web does not write any response.

How can I get this to work?
Thanks and sorry for all the questions!

Ian Battersby

unread,
Oct 30, 2013, 4:43:54 PM10/30/13
to simple...@googlegroups.com
Hi Marcelo,

That should definitely work. Are you using an IoC container? Are you using IOutput (or generic version of verb behaviour)?

If all else fails if you can do me a quick demo app somewhere I’ll take a look with pleasure.

Cheers, Ian.

--
You received this message because you are subscribed to the Google Groups "SimpleWeb Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to simpleweb-de...@googlegroups.com.
To post to this group, send email to simple...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/simpleweb-dev/3f13380c-d1d7-49c0-a24a-7b5ed6dd1523%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Marcelo Zabani

unread,
Nov 3, 2013, 1:21:02 PM11/3/13
to simple...@googlegroups.com
Thanks Ian. I've attached a sample project that doesn't work. You will have to remove any references to FastCgiNet.dll and Fos.dll, and then change the main function to host this app with whatever it is you want (Katana, for instance).
My handler only implements IGet (a file called SimpleIndex.cs), it does not implement IOutput or any other behavior, and there is a view with @handler SampleWebsite.SimpleIndex. I have verified that Get() gets called in the handler, but Simple.Web does not set any response after that.


--
You received this message because you are subscribed to a topic in the Google Groups "SimpleWeb Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/simpleweb-dev/_Sad2XkD2mc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to simpleweb-de...@googlegroups.com.

To post to this group, send email to simple...@googlegroups.com.
sample.zip
Reply all
Reply to author
Forward
0 new messages