简体   繁体   English

如何访问域外的网络共享(IIS)

[英]How to access to a network share out of domain (IIS)

It's been days that i'm struggling on this problem, but I wasn't able to find out a solution, nor to find anything related on Internet. 几天来我一直在努力解决这个问题,但是我找不到解决方案,也找不到任何与Internet相关的东西。

I developed a small web app for a customer, which collects data from a list of PCs working on some production lines. 我为客户开发了一个小型Web应用程序,该应用程序从在某些生产线上工作的PC列表中收集数据。 Those PCs are just placed under their own workgroups: there is no domain, they are just linked together in a small LAN network, without any security credential (pretty weird, but it's not my business). 这些PC只是放置在自己的工作组中:没有域,它们只是在一个小型LAN网络中链接在一起,没有任何安全凭证(很奇怪,但这不是我的事)。

So, here's the problem. 所以,这就是问题所在。 I deployed my web app on a main PC running Win 7, all's good. 我在运行Win 7的主PC上部署了Web应用程序,一切都很好。 Then, when i tried to open a .txt file located on a network share from a production line's PC (running Win XP), it gave me access denied error "Access to the path '\\Andon10\\SharedF\\Andon.txt' is denied". 然后,当我尝试从生产线的PC(运行Win XP)打开位于网络共享上的.txt文件时,它给了我拒绝访问错误“拒绝访问路径'\\ Andon10 \\ SharedF \\ Andon.txt' ”。

I really can't see why, there should be no access limit on the folder. 我真的不明白为什么,文件夹上应该没有访问限制。 I gave at users 'Everyone' and 'Anonymous Logon' the Full Security & Sharing Permission on the folder (didn't work), Changed the Application Pool Identity User to 'NETWORK SERVICE' and back to 'ApplicationPoolIdentity' (didn't work), Tried to change IIS authentication type (Anonymous and Windows Authentication), it didn't work. 我向用户“所有人”和“匿名登录”授予了该文件夹的完全安全和共享权限(无效),将应用程序池标识用户更改为“网络服务”,然后又更改为“ ApplicationPoolIdentity”(无效) ),试图更改IIS身份验证类型(匿名身份验证和Windows身份验证),此操作无效。

Now i'm running out of ideas, i really can't find what's the problem here. 现在我的想法不多了,我真的找不到这里的问题了。 I can easily open and edit the share using File Explorer, but not with IIS. 我可以使用File Explorer(而不是IIS)轻松地打开和编辑共享。

Thanks in advance for any help you can provide! 预先感谢您提供的任何帮助!

UPDATE: I managed to solve my problem! 更新:我设法解决了我的问题! The solution was to simply create some dedicated user on both the main PC and the destination PC, with same Username and Password. 解决方案是简单地在主PC和目标PC上使用相同的用户名和密码创建一些专用用户。 Using this account for Application Pool Identity solved the situation. 使用此帐户进行应用程序池标识可以解决这种情况。

Now, I don't know if I have to delete this topic or if it should stay online for future purpose (that's my first question on this platform). 现在,我不知道我是否必须删除此主题,或者该主题是否应保持在线状态以备将来使用(这是我在该平台上的第一个问题)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM