只有在远程运行Web应用程序时才会拒绝访问网络驱动器

时间:2016-09-08 02:28:38

标签: asp.net .net vb.net windows server

我最近的任务是维护一个用VB和.NET 4.0编写的网站 尝试从网络驱动器访问文件夹/文件时遇到问题。

如果我在本地运行(http://localhost:8080),我没有问题 enter image description here

但如果我远程运行它,我会得到这个: enter image description here

我在此目录中创建了一个web.config文件以启用模拟

enter image description here

<?xml version="1.0"?>
<configuration>
    <system.web>
        <identity impersonate="true"/>
    </system.web>
</configuration>

IIS配置中的身份验证设置设置为True。

任何人都知道我该如何解决这个问题?

非常感谢任何帮助。

0 个答案:

没有答案