Site opens but does not load the files cs, js, png etc.

0

I have migrated from VS2012 to VS2017, and in my solution I have 3 sites, 2 of which I run and I have no problem and in the other one when I debug it opens but the whole Design part is not loaded (css, js, png, etc). Viewing the page log in Fiddler I have 2 errors that are them

1) IIS 10.0 Detailed Error - 500.19 - Internal Server Error

2)

This error occurs when there is a problem reading the configuration file for the Web server or Web application.   In some cases, the event logs may contain more information about what caused this error.

  

If you see the text 'There is a duplicate' system.web.extensions / scripting / scriptResourceHandler 'section defined',   this error is because you are running to .NET Framework 3.5-based application in .NET Framework 4. If you are running WebMatrix, to solve this problem,   go to the Settings node to set the .NET Framework version to ".NET 2". You can also remove the extra sections from the web.config file.   

View more information »

Someone knows how to solve this. I've been back to this for 2 days and have not found a solution yet.

    
asked by anonymous 09.02.2018 / 19:23

1 answer

0

I found the solution to my problem. I had to remove the following code from Web.config

 <staticContent>
  <mimeMap fileExtension=".json" mimeType="application/json" />
</staticContent>
    
12.02.2018 / 11:03