F # ionide websharperserverclient - how to run

I have a problem launching the websharperserverclient template websharperserverclient from the ionide project generator and cannot find any information on the Internet how to do it - the closest thing I got was this question - I really tried to run it with xsp4 in the project folder (where is Web.config file), but each time received 404 (screenshot attached: xsp4 error ). Of course, before running xsp, I run the ./build.sh (or FAKE build ) script, and it ends without errors. I had no problems with the websharpersuave and websharperspa project templates (the second one works with xsp4 and works like a charm).

EDIT

Error message in text form:

System.Web.HttpException
Resource is not found.

Description: HTTP 404. The resource you are looking for (or its dependencies) may have been deleted, its name changed or temporarily unavailable. Review the following URL and make sure it is spelled correctly.

Details: Requested URL: /

Exception stack trace:

 at System.Web.StaticFileHandler.ProcessRequest (System.Web.HttpContext context) <0x4202aa80 + 0x00733> in <filename unknown>:0 at System.Web.DefaultHttpHandler.BeginProcessRequest (System.Web.HttpContext context, System.AsyncCallback callback, System.Object state) <0x4202a400 + 0x00153> in <filename unknown>:0 at System.Web.HttpApplication+<Pipeline>c__Iterator1.MoveNext () <0x42012000 + 0x04416> in <filename unknown>:0 at System.Web.HttpApplication.Tick () <0x42010800 + 0x00057> in <filename unknown>:0 
+5
source share
1 answer

Yes, it seems there are problems running the OWIN module with xsp, which I am studying. In the meantime, you can switch to using WebSharper HttpModules by doing the following:

  • Uncomment the nodes that are listed as related to the HttpModule in Web.config (namely, the nodes system.web/httpModules and system.webServer/modules ).
  • Remove the dependencies of NuGet on WebSharper.Owin and Microsoft.Owin.Host.SystemWeb (and make sure that the corresponding DLL files are removed from the bin folder).
  • Delete or comment on Startup.fs .
+1
source

Source: https://habr.com/ru/post/1258628/


All Articles