title: ActiveX component can't create object occurred in w3wp.exe
body: <p>I am currently having an issue with a classic ASP application I am working on and from what I can tell it might be due to something related to IIS.</p>
  
  <p>It started out with me getting the error:</p>
  
  <pre><code>"An unhandled exception ('ActiveX component can't create object') occurred in 
  w3wp.exe[XXXX]."
  </code></pre>
  
  <p>I tried googling, but failed to find anything that could solve my issue.</p>
  
  <p>So I tried to create a small .vbs application. To see if it had anything to do with the component that is used for the "createObject()" method.</p>
  
  <pre><code>dim test 
  set test = createObject("System.Collections.Sortedlist")
  test.add 1, "value 1"
  test.add 2, "value 2"
  MsgBox(test(1))    
  </code></pre>
  
  <p>And the file ran as it should. </p>
  
  <p>I've tried running the application using both Visual Studio 2015 and 2017.</p>
  
  <p>After I noticed that it sad "Occurred in the w3wp.exe" I tried reinstalling IIS to see if that would change anything, but sadly it has not had any effect.</p>
  
  <p>Update: I am using Windows 10 personally and running the site of my own PC for testing purposes.</p>
  
  <p><a href="https://support.microsoft.com/en-gb/help/4345913/access-denied-errors-after-installing-july-2018-security-rollup-update" rel="nofollow noreferrer">"Access Denied" errors and applications with COM activation fail after installing July 2018 Update</a></p>