asp.net调用vc dll,部署在iis7中无效

1.在web.config的system.web节点中添加

<identity impersonate="true" userName="用户名" password="密码" />

2.在IIS应用程序池,

  应用程序池--高级设置--进程模型--自定义账号

  应用程序池--高级设置--进程模型--加载用户配置(改为true)

  通过以上方式正确访问。

3.其他方案可参考

  http://blog.csdn.net/phoenix_17th/article/details/5630677

原文地址:https://www.cnblogs.com/yishion/p/3039542.html