• Register
0 votes

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?

7 5 2
3,870 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.

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

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!

9 7 4
38,600 points

Related questions

0 votes
1 answer 40 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 198 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 13 views
0 votes
1 answer 20 views
Problem: are you missing a using directive or an assembly reference.
asked Feb 18 charles mathews 5.5k points
0 votes
1 answer 5 views
Problem: I have a web project in my solution file that is "unavailable" when I open the solution. When I right-click on the web project and reload the project, I get the following error: The Web Application Project mycompany.myapp.mywebproject is configured to use IIS. The Web Server 'http://localhost/MyWebApp could not be found.
asked Mar 20 ummesalma 22k points
0 votes
1 answer 20 views
Problem: I am starting IIS server from command prompt in administrator mode.IIS respond to the request with error 401. Can anyone help me out?
asked Mar 19 amark2052 200 points
0 votes
2 answers 267 views
Problem : I am new to ASP MVC and I am facing one error. I am trying to access the Model's Data from the Controller section and I am getting following error when I try to create a Movie as a part of the exercise, whenever I try to click on the link "Create New" I ... am using the Visual Studio 2012 RC I am not sure if this is the root cause of my issue.Please let me know the solution for my issue.
asked Dec 3, 2019 alecxe 7.5k points
1 vote
1 answer 52 views
Problem : I want to create the simple user control that should be the slider. When I try to add the AjaxToolkit SliderExtender to my user control I usually get below error: Server Error in '/' Application. The Controls collection cannot be modified because ... control and also tried adding the textbox and the slider extender to my placeholder programmatically but I am still facing the above error.
asked Dec 14, 2019 alecxe 7.5k points
0 votes
1 answer 4 views
Problem: Please solve it &hellip; Because I am unable to find out the solution of this site can&rsquo;t be reached the connection was reset
asked Mar 18 Ifra 24.4k points
0 votes
1 answer 5 views
Problem: Can anyone tell me the solution of this problem? This site can&rsquo;t be reachedthe connection was reset.
asked Mar 18 Ifra 24.4k points