在读Excel时,发生 OleDbException 未指定的错误
错误在原因是权限问题。
在Web.config文件中,有 <identity impersonate="true"/>
它让用户身份的认证交给IIS来进行。会导致这样的错误。
解决的方法:
一、去掉 <identity impersonate="true"/>
二、指定 <identity impersonate="true" userName="accountname" password="password" />
指定的有权限的帐号
三、给IIS指定一个有权限的帐号



