I am trying to integrate SSL to my asp.net core project I download sslforfree file for manuel verification.I upload verify file to my server
although there is file in server in path it give that error when browsing my website in browser
This page can’t be found No webpage was found for the web address:
here is link.
my .net core website work.Just it does not show verify files
here is my server path file
In IIS server I give mime types .(comma) as text/plain but it still give error.What should I do?This is work for .net mvc project with 4.0 application pool but give page not found error with asp.net core application pool
here is my startup.cs
public class Startup
{
public Startup(IConfiguration configuration)
{
Configuration = configuration;
}
public IConfiguration Configuration { get; }
// This method gets called by the runtime. Use this method to add services to the container.
public void ConfigureServices(IServiceCollection services)
{
services.AddMvc();
services.AddSession();
}
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
public void Configure(IApplicationBuilder app, IHostingEnvironment env)
{
if (env.IsDevelopment())
{
app.UseDeveloperExceptionPage();
app.UseBrowserLink();
}
else
{
app.UseExceptionHandler("/Home/Error");
}
app.UseStaticFiles();
app.UseSession();
app.UseMvc(routes =>
{
routes.MapRoute(
name: "default",
template: "{controller=Home}/{action=Index}/{id?}");
});
app.UseMvc(routes =>
{
routes.MapRoute(
name: "default2",
template: "{controller=Admin}/{action=BookFastSearch}/{id?}");
});
}
}