Base solution for your next web application
Open Closed

RESOURCE NOT FOUND ON SERVER #9223


User avatar
0
alfar_re created

Hello,

I created my own modal within a page to send an SMS. This is what am getting.

My javascript file looks like this


3 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team

    hi alfar_re

    Can you check the web request of the browser?

    example:

  • User Avatar
    0
    alfar_re created

    This is the request

  • User Avatar
    0
    maliming created
    Support Team

    hi

    Try change CreateWebHostBuilder method.

    public static IWebHostBuilder CreateWebHostBuilder(string[] args)
    {
    	return new WebHostBuilder()
    		.UseKestrel(opt =>
    		{
    			opt.AddServerHeader = false;
    			opt.Limits.MaxRequestLineSize = 16 * 1024;
    		})
    		.UseContentRoot(Directory.GetCurrentDirectory())
    		.UseIIS()
    		.UseIISIntegration()
    		.UseStartup<Startup>();
    }
    

    If you are using web.config you can refer to: