Did you configure the sitelet handlers in your MVC app? Without these, no sitelet server-side will be available. Also, you can read here about further MVC integration.

By on 7/5/2015 7:15 AM ()

I was able satisfy the compiler at the end, however I am receiving after installing aspnetmvc:

Unknown custom metadata item kind: 6

no matter if using Warp or sitelet template. It is something specific to VS2015?

By on 7/5/2015 3:47 PM ()

Can you post what you did? Page values can't directly embed as WebControl, you need a bit of trickery, but it's certainly doable.

By on 7/7/2015 10:31 AM ()

Hi Adam, Instead of going blindly with Warp and trying to embed it 'my way', I have noticed I need to be more accustomed with basic websharper concepts so I decided to do everything from scratch. I created plain client-server websharper project along with ASP MVC c# as per mentioned tutorial and it is working fine. Next I did the same with VS2015 (as I am interested in new ASP features comming with latest version) and compiler gives me this error (for Web project) :'Severity Code Description Project File Line Error Unknown custom metadata item kind: 6 WebApplication1'

I suspect it to be related to VS2015, did you encounter the same from your site with VS2015?

By on 7/7/2015 3:24 PM ()

Thanks Adam.

I am almost there, what I still miss is how to export Warp page

1
2
3
4
5
6
7
let MySite =
    let MySite =
      Warp.Page 
          [
              H1 [Text "Say Hi to the server"]
              Div [ClientSide <@ Client.Main() @>]
          ]

as a control which then can be used by ASP MVC as per mentioned tutorial.

In other words, can Warp page be embeded into WebControl (WebSharper.Web.Control())?

Thanks

By on 7/5/2015 2:19 PM ()

What I was able to find during debugging is that this line of code seems to be problematic in websharper.main.js:

1
_=ok(Json.Activate(JSON.parse(x1)));
By on 7/4/2015 12:56 PM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper