3

Im using IIS 8.5 on Windows Server 2012 R2 so I add my Web Api but when I try to view the site it stays in a loading state like this:

enter image description here

Do not show any message or error just stays loading, I think that i miss some configuration or feature in my IIS but I don't know which one.

Edit: I use .Net framework, it is a REST .net web api like this reference, the IIS have installed .Net versions 3.5 and 4.5, it's IIS not the express and the default IIS website runs fine.

I would really appreciate any help.

M. Gar
  • 889
  • 4
  • 16
  • 33
  • 1
    What kind of API? .Net framework ? .NetCore? Is the default IIs website running ? Is .net installed ? A screenshot of IE is not going to be enough for anyone to help you ... is this on IIS express or IIS ? – Muqeet Khan Dec 02 '17 at 22:17
  • 1
    I add more info, hope it helps. – M. Gar Dec 03 '17 at 18:25

3 Answers3

1

Try to reduce the timeout settings to a minimum level, say 10 seconds. See if it throws a Timeout error.

Without much information from your side its hard to judge.

Perhaps it could be an external service you are trying to access(Web service) or a DB connection?

Balaji
  • 150
  • 4
  • 16
  • Using the event viewer gives me the warning 5139, the error 5002 and the info 5211 and apparently it's all about the WAS. – M. Gar Dec 14 '17 at 17:14
1

Please check if the application pool you assigned to your solutions runs under the correct version of .net framework and in integrated mode. I had similar issues when trying to run an mvc app in classic mode. Check this out.

EDIT 1 - Reconfiguring IIS If problems persists then try the ASP.NET IIS Registration tool. Execute the followig command as administrator:

aspnet_regiis -i

At the end of this post the different locations for aspnet_regiis are described. You should select a .NET Framework version corresponding to that of your project, run aspnet_regiis and assign the proper application pool to your app.

Emilio Lucas Ceroleni
  • 1,559
  • 2
  • 9
  • 13
0

For anyone coming here in 2023, try this in the windows cmd (Run as administrator):

> IISRESTART

This will force restart all iis sites and this did the trick for me. If access is denied, just run the command again.

hycheng27
  • 1
  • 2