Hello,
I Have an emergent issue to resolve....SOS
The solution has two projects:
1- The first one is a Windows application where ASP NET CORE is installed to use kestrel server for self hosting
2- The seconde is a WEBFORM project(web site) that i want to host in kestrel.
in the first project we have:
string sApplicationPath = _appPath.ToString(); _host = new WebHostBuilder() .UseKestrel() .UseContentRoot(_appPath.ToString()) .UseUrls("http://localhost:" + _appPort.ToString() + "/") .UseStartup<KestrelStartup>() .Build(); _host.Start();
The Class KestrelStartup:
public class KestrelStartup { public void ConfigureServices(IServiceCollection services) { } public void Configure(IApplicationBuilder app) { app.UseDefaultFiles(); app.UseStaticFiles(); } }
With fiddler , I have checked that request is launched by kestrel server and the page to reach is default.aspx, but it return 404 error :
GET /default.aspx?lng=en-US HTTP/1.1 Accept: */* Accept-Language: fr-FR UA-CPU: AMD64 Accept-Encoding: gzip, deflate User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Win64; x64; Trident/7.0; .NET CLR 2.0.50727; SLCC2; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; GWX:DOWNLOADED) Host: localhost:8081 Connection: Keep-Alive HTTP/1.1 404 Not Found Date: Tue, 30 Aug 2016 09:11:40 GMT Content-Length: 0 Server: Kestrel
So all i want to do is to publish my website(2nd project) on kestrel,
I'm simply not sure of how to configure that and to confirm that there no issue to host a WEBFORM on KESTREL
Thanks in advance.
Liline