Eric's Little Hut

Enjoy Programming, Enjoy Life

原创 [ASP.NET]System.UnauthorizedAccessException: 拒绝访问。收藏

当试图在ASP.NET里面使用COM对象的时候,常常出现这个异常。
可以尝试在web.config里面添加以下一行以解决这个问题
<identity impersonate="true" userName="YourAdminUsr" password="YourAdminPwd"/>

发表于 @ 2004年11月30日 11:38:00|评论(loading...)|举报|收藏

新一篇: [C#] Excel文件另存为Html | 旧一篇: .NET里面的Interop太烂了

Csdn Blog version 3.1a
Copyright © Eric