Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

MVC 6 Grid View Error : HTTP Error 502.3 - Bad Gateway

$
0
0

Hello,

I have implemented MVC6 Grid view in my project using below code:

https://github.com/NonFactors/MVC6.Grid

When I run my project it is throwing below error message:

HTTP Error 502.3 - Bad Gateway

The specified CGI application encountered an error and the server terminated the process.

Project Configuration :

1. I have created an Empty ASP.Net 5 Web Application Project.

2. Implemented Grid View code using MVC6.

3. Below is my Project.Json file.

{"version": "1.0.0-*","compilationOptions": {"emitEntryPoint": true
  },"dependencies": {"NonFactors.Grid.Mvc6": "0.9.0-rc1-final","Microsoft.AspNet.IISPlatformHandler": "1.0.0-rc1-final","Microsoft.AspNet.Server.Kestrel": "1.0.0-rc1-final","Microsoft.AspNet.Mvc": "6.0.0-rc1-final"
  },"commands": {"web": "Microsoft.AspNet.Server.Kestrel"
  },"frameworks": {"dnx451": { },"dnxcore50": { }
  },"exclude": ["wwwroot","node_modules"
  ],"publishExclude": ["**.user","**.vspscc"
  ]
}

4. When I checked DNX version in project Properties, it is : "1.0.0-rc1-update1"

5. Below is Startup.cs

 public class Startup
    {
        // This method gets called by the runtime. Use this method to add services to the container.
        // For more information on how to configure your application, visit http://go.microsoft.com/fwlink/?LinkID=398940
        public void ConfigureServices(IServiceCollection services)
        {
            services.AddMvc();
        }

        // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
        public void Configure(IApplicationBuilder app)
        {
            app.UseIISPlatformHandler();

            //app.Run(async (context) =>
            //{
            //    await context.Response.WriteAsync("Hello World!");
            //});

            app.UseMvc(routes =>
            {
                routes.MapRoute(
                    name: "default",
                    template: "{controller=Home}/{action=Index}/{id?}");
            });
        }

        // Entry point for the application.
        public static void Main(string[] args) => WebApplication.Run<Startup>(args);
    }

6. Web.config :

<?xml version="1.0" encoding="utf-8"?><configuration><system.webServer><handlers><add name="httpPlatformHandler" path="*" verb="*" modules="httpPlatformHandler" resourceType="Unspecified"/></handlers><httpPlatform processPath="%DNX_PATH%" arguments="%DNX_ARGS%" stdoutLogEnabled="true" stdoutLogFile="..\logs\httpplatform-stdout" startupTimeLimit="3600"/></system.webServer></configuration>

7. HttpPlatformhandler is installed of version : 1.2

Questions :

1. Where to check Logs of httphandler ? I don't see any logs folder under app folder.

2. What is missing in the configuration, so that I am receiving this error message ?

Can someone help me on this ?

Thank you.


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>