The real answer, of course, is that both IIS and Apache, if installed as directed by the developers, are relatively secure. Most malicious Web site infections are the result of administrative mistakes and buggy applications — not the underlying Web server software.
Is IIS secure?
Microsoft says its Internet Information Server (IIS) is as secure as comparable products from other vendors.
Is IIS good web server?
And IIS offers strong support for the Microsoft products . NET (framework) and ASPX (scripting), so if your website relies heavily on these, IIS is a clear frontrunner as a choice of web server.