Because of using COM classes a setting must be made.
Go to the Internet Information Services (IIS) Manager and open the path three.
Now select the "Application Pools" and select the Application Pool for your web application.
Now make a right click and select "Advanced settings"
Now set "Load User Profil" to "true".