同时使用模拟asp.net UNC访问 [英] UNC access whilst using impersonation asp.net

查看:160
本文介绍了同时使用模拟asp.net UNC访问的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想有我的ASP.net应用程序访问UNC路径,但是我得到的文件被拒绝错误。

I am trying to have my ASP.net application access a UNC path, however I am getting file denied errors.

如果我尝试这其中应用程序是我的本地计算机上,它的工作原理,如果我在浏览器中,在部署应用程序运行它,它工作正常。

If I try this where the application is on my local machine, it works, if I run it in the browser, where the application is deployed, it works fine.

然而,当我试图从我的计算机访问网站,我的IIS中,然后在转访问文件服务器,我可以拒绝访问错误。

However when I try to access the website from my machine to my IIS box, which then in-turn accesses the file server, I can Access Denied errors.

我已经签了ASP.Net实际上是impersonatinh为我,这似乎是,这似乎是如此,但仍然是错误。

I've checked that ASP.Net is actually impersonatinh as me, and it seems to be that seems to be the case, however still the errors.

我所有的文件服务器上的文件有访问所有人

All the files on my file server have Access to "Everyone"

有什么想法?

推荐答案

在我们的技术服务团队寻找到这一点,似乎是部分带有镀铬/ FF无法正常发送WinAuth,也是 IIS的Windows Authenication - >供应商设置均围绕着错误的方式:

After our Tech Services team looking into this, it appears it was partly to do with Chrome/FF not sending WinAuth correctly, and also the IIS Windows Authenication -> Providers settings were the wrong way around:

应该是:

Negotiaton
NTLM

这篇关于同时使用模拟asp.net UNC访问的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆