title: How do I deploy a Flask application in IIS?
body: <p>Can anyone help me get a Flask application running on IIS 6?  I have tried to use isapi-wsgi, but when I visit the Virtual Directory address I get a page that says "The specified module could not be found."  Are there other options for this?</p>
  
  <p>Below is the Python script I wrote for isapi-wsgi.  The Virtual Directory was made and everything looked ok in IIS Manager, but the site did not work.</p>
  
  <pre><code>from wof import app
  import os
  
  app.secret_key=os.urandom(24)
  
  import isapi_wsgi
  def __ExtensionFactory__():
      return isapi_wsgi.ISAPISimpleHandler(app)
  
  if __name__ == '__main__':
      from isapi.install import *
      params = ISAPIParameters()
      sm = [ScriptMapParams(Extension="*", Flags=0)]
      vd = VirtualDirParameters(Name="WOFPy_Sondes", Description="ISAPI-WSGI for WOFPY Sondes test", ScriptMaps=sm, ScriptMapUpdate="replace")
      params.VirtualDirs = [vd]
      HandleCommandLine(params)
  </code></pre>