在部署站点时,当试图在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"/>
本文介绍了解决ASP.NET应用程序在使用COM对象时遇到的异常的方法。通过配置web.config文件,启用Windows身份验证模式,并设置模拟登录,可以有效解决此类问题。
1832

被折叠的 条评论
为什么被折叠?



