Forum Discussion

sharif0rifat's avatar
sharif0rifat
Occasional Visitor
4 years ago

Swagger UI in .Net Core 2.0 showing error

I have just install  Swashbuckle.AspNetCore 5.6.3  and do all the configurations where needed.

when I run the debugger and got the  localhost:65183/swagger/index.html  from by browser it is showing the following error in console: 

Uncaught TypeError: Cannot read property 'forEach' of undefined
at window.onload (index.html:51)
window.onload @ index.html:51
load (async)
(anonymous) @ index.html:46

 

I have the following folder structure. Here is screenshot of  my Project in Visual Studio. 

 

I don know what am I missing. Any help is really appreciable

 

Thanks