I made a new MVC Project in Visual Studio 2015, then published that package and uploaded into my Windows hosting. After extraction when I browse my URL it shows me this error message. But my application runs on locally just fine.
Asked
Active
Viewed 7,959 times
1

SurvivalMachine
- 7,946
- 15
- 57
- 87

Khaled Md Tuhidul Hossain
- 254
- 2
- 7
- 16
-
check your supported MVC version on your hosted IIS. – Sunil Kumar Sep 16 '16 at 06:17
-
4Have you set `customErrors` to `Off` to see the actual error? – ramiramilu Sep 16 '16 at 07:36
-
@ramiramilu now this is showing "System.PlatformNotSupportedException: This operation requires IIS integrated pipeline mode." this error. – Khaled Md Tuhidul Hossain Sep 16 '16 at 08:40
-
1@KhaledMdTuhidulHossain You need to change App Pool from classic to integrated mode - http://stackoverflow.com/questions/22313167/this-operation-requires-iis-integrated-pipeline-mode – ramiramilu Sep 16 '16 at 08:42
-
@ramiramilu okey , trying and letting you know. And thanks :D – Khaled Md Tuhidul Hossain Sep 16 '16 at 13:09
1 Answers
2
The custom error pages are not enabled for local in your code,
you have to add mode="On"
. So customErrors
looks something like this:
<customErrors mode="On" defaultRedirect="Error" redirectMode="ResponseRewrite">
<error redirect="Error/NotFound" statusCode="404" />
</customErrors>

Ammar Alyasry
- 106
- 1
- 6