Note that there are some explanatory texts on larger screens.

plurals
  1. PORazor.ServiceStack - Views not rendering, just default "Snapshot"
    primarykey
    data
    text
    <p>I've setup a site using <a href="http://razor.servicestack.net/" rel="nofollow">http://razor.servicestack.net/</a>.</p> <p>I've created several views and matching services with an example as follows:</p> <p>Service Example:</p> <pre><code>using ServiceStack.ServiceHost; using ServiceStack.ServiceInterface; using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace website { [DefaultView("AboutUs")] public class AboutUsService : Service { public object Get(AboutUsRequest request) { return new AboutUsResponse { //any properties that need to be set on the response object can be done inline here }; } } [Route("/About-Us")] public class AboutUsRequest { //any request parameters we need can be provided here. They should be auto parsed from the request } public class AboutUsResponse { //any response properties we want to use in the view can be defined here } } </code></pre> <p>View Example (located at /Views/AboutUs.cshtml)</p> <pre><code> @inherits ServiceStack.Razor.ViewPage&lt;website.AboutUsResponse&gt; &lt;html&gt;&lt;body&gt;&lt;h1&gt;About Us&lt;/h1&gt;&lt;/body&gt;&lt;/html&gt; </code></pre> <p>This loads fine on windows, but fails to load on Mono/NginxFastCGI, and instead just shows the default API snapshot page:</p> <pre><code>Snapshot of AboutUsRequest generated by ServiceStack on 11/17/2012 02:30:14 view json datasource from original url: http://dev.mydomain.com:80/About-Us? in other formats: json xml csv jsv </code></pre> <p>Is there some specific change that I need to configure for this to work on the Mono/Linux side? By the way, i have IOMAP=all already turned on.</p> <p>Any ideas on how to get this working would be greatly appreciated!</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload