• Register
0 votes
291 views

Problem :

I have recently installed a website on my local machine using IIS 7 successfully. But when I tried to deploy it on the live server, I got a following error:

"The page cannot be displayed because an internal server error has occurred" Nothing else.

Using a same IIS 7 on live and also set to have the Detailed errors in Error Pages module, but still getting a same. What can be the reason?

3.9k points

Please log in or register to answer this question.

1 Answer

0 votes

Solution :

I just faced this error and it was caused by the duplicate static content MIME type in my web.config

Your error was being returned only on the static files - eg images, css, js files were all showing your error.

The way to debug this problem is to look in the web.config under a static content. Here we have the json file extension loaded. This was required on my IIS7 but will kill the app if used on my IIS8 because the json is now pre-loaded at a server level.

<staticContent>
        <clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="30.00:00:00" />
        <mimeMap fileExtension=".json" mimeType="application/json" />
</staticContent>

So solution is to just remove any of these mimeType entries one at the time to confirm which are needed for you and which can kill your app!

38.6k points

Related questions

0 votes
1 answer 22 views
22 views
Problem : What is the most effective strategy for me to resolve this issue: The page cannot be displayed because an internal server error has occurred. ne demek?
asked Jun 13 Sifat55 108k points
0 votes
1 answer 59 views
59 views
Problem: What am I supposed to do here: The page cannot be displayed because an internal server error has occurred?
asked Jun 16 Rada Gracelynn 104k points
0 votes
1 answer 8 views
8 views
Problem: Http error 500.21 - internal server error.
asked Jul 15 Florina Gulnar 106k points
0 votes
1 answer 186 views
186 views
Problem: I am naive to Asp.Net.I am having a weird looking problem where I am trying to open up my ASP.NET MVC application but I am receiving the below ASP.NET error page which says: Server Error in '/' Application. The resource cannot be found. Description: ... unknown reason to me it seems like it is actually searching for the .aspx file. Please guide me if you think I am missing something.
asked Aug 19, 2020 Raphael Pacheco 4.9k points
0 votes
1 answer 386 views
386 views
Problem : I want to deploy my ASP.NET application. I have tried deploying my site to IIS, but when I visit it with the browser, it gives me following error : Server Error 500 - Internal server error. There is a problem with the resource you are looking for ... error: The page cannot be displayed because an internal server error has occurred. I want to see the actual issue behind my server error?
asked Dec 7, 2019 alecxe 7.5k points
0 votes
1 answer 44 views
44 views
Problem: Can anyone help me with this problem? > The page cannot be displayed because an internal server error.
asked May 7 Irenka Kiri 85.5k points
0 votes
1 answer 5 views
5 views
Problem: Windows 10 server dns address could not be found.
asked Jul 1 Florina Gulnar 106k points
0 votes
1 answer 4 views
4 views
Problem : Hi, Is there a way to solve it: Cannot open database requested by the login because the login failed?
asked Jun 22 Sifat55 108k points
1 vote
1 answer 91 views
91 views
Problem: I got an error while rendering index view: The "renderbody" method has not been called for layout page.
asked Apr 26 PkGuy 25.9k points
0 votes
1 answer 45 views
45 views
Problem: Is there someone who knows how to resolve this issue? >Cannot open the file as 7z archiver unexpected end of data.
asked May 9 Florina Gulnar 106k points