在部署站点时,当试图在ASP.NET里面使用COM对象的时候,常常出现这个异常。可以尝试在web.config里面添加以下一行以解决这个问题。
 
<!--            The <authentication> section enables configuration             of the security authentication mode used by             ASP.NET to identify an incoming user.         -->  <authentication mode="Windows"/>    <identity impersonate="true" userName="YourAdminUsr" password="YourAdminPwd"/>