Update:
Your application is not configured correctly.
Your F # MVC application is not configured correctly. You are using ASP.NET, which should use IIS as its host. This means that IIS requests are passed to AppHost. However, in your setup you use AppHostHttpListenerBase, it actually creates your own HTTP listener, in fact, you mixed standalone standalone hosting with the installed ASP.NET installation.
. , ServiceStack , .
:
type AppHost =
inherit AppHostBase
new() = { inherit AppHostBase("Hello F# Services", typeof<HelloService>.Assembly) }
override this.Configure container =
...
, , MVC ASP.NET.
DebugMode = true, ServiceStack , .
, , , , FZ ASP.NET ServiceStack Razor, , , .
F #, #, AppHost DebugMode = true, ServiceStack , , , .
SetConfig(new EndpointHostConfig {
DebugMode = true,
});
, :
type AppHost() =
inherit AppHostHttpListenerBase("Hello F# Service", typeof<HelloService>.Assembly)
override this.Configure container =
this.Plugins.Add(new RazorFormat())
ignore()
static member start() =
let apphost = new AppHost()
apphost.Init()
. " , ( )" .
, , , ...