I think that if you start a fresh project from the template, you shouldn't encounter this problem. With the provided zafir template for asp.net container ("client-server application") the web.config is already configured for remoting. And it adds the required nuget packages out of the box (they got the same names as before only prefixed by "zafir" instead of "websharper").

By on 11/17/2016 1:01 AM ()

I got it to work. Don't need WebSharper.AspNetMvc.

By on 2/8/2017 4:25 PM ()

Sorry for the delay...
Unfortunately, I have to use an ASP.net(C#/razor with signalr) main project that references a W#/F# dll.

I think the problem may be that I'm using an MVC.Controller to serve up the main page (so http://foo.com/App/Main calls AppController.Main() which returns an html page). Now the RPC code uses "http://foo.com/App/Main?" to request stuff from the server and always returns the main page html...

The websharper docs say I should use

1
2
3
4
  public static void RegisterGlobalFilters(GlobalFilterCollection filters)
  {
      filters.Add(new WebSharper.AspNetMvc.Filter());
  }

But I can't find a zafir version of the WebSharper.AspNetMvc dll. Do I still need it?

By on 1/20/2017 3:30 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