请稍候...
  • DicomPrintScp胶片打印服务
  • 泰融系列超声工作站
  • 泰融系列内镜工作站

新闻摘要:ASP.Net在IIS中使用UNC虚拟目录的配置方法

用实际案例说明配置过程:
远程共享机器B:IP=192.168.1.11,已设置共享目录:cyh

Web服务器:A机,需要添加ASP.Net应用程序的虚拟目录 cyh,指向 \\192.168.1.11\cyh


操作流程实例:
1、B机器先设置共享目录 cyh,添加一个用户例如:pjcyh,设置为密码永不过期,普通用户即可,权限限制在 cyh 目录,并对其拥有完全访问权限。
2、转到服务器A机,同样建立一个与B机相同账号和密码的用户,即用户 pjcyh。
3、A机启动IIS管理,添加虚拟目录,选择“另一台计算机上的共享”,输入 \\192.168.1.11\cyh,采用 pjcyh 用户作为连接认证。
至此第一步完成,已经可以访问 http://xxx.xxx.xx/cyh 下的资源,但是 ASP.Net 还没有权限。
4、A机应用程序下的编辑 web.config,在 <SYSTEM.WEB>节下添加 <IDENTITY impersonate="true" userName="pjcyh" password="*****" />
5、A机的目录:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files(根据实际情况寻找类似目录),赋予用户 pjcyh 读写权限。
重新启动IIS后,Asp.Net就拥有对 \\192.168.1.11\cyh 的读写权限了。
6、安全加强,到微软下载工具 aspnet_setreg.exe。
7、在A机运行:aspnet_setreg.exe -k:Software\Passport\pjcyh -u:"pjcyh" -p:"实际密码"
其中路径 Passport \ pjcyh 根据你的喜好来确定。然后 identity  变更为:
<IDENTITY impersonate="true" userName="registry:HKLM\Software\Passport\pjcyh\ASPNET_SETREG,userName" password="registry:HKLM\Software\Passport\pjcyh\ASPNET_SETREG,password" />
8、在A机运行 regedit32,导航到 HKLM\Software\Passport\pjcyh\ASPNET_SETREG,对 ASPNET_SETREG 右键设置权限,对于win2003系统需要添加用户 IIS_WPG ,赋予读权限。
至此全部工作完成。
【责任编辑:phoenix(Top) 返回页面顶端
昵称: email: 主页: 验证码:

  昵称:游客 golden goose IP:27.153.*.*. 2022-10-26 11:37:14发表  
  I have to express my appreciation to you for rescuing me from this type of setting. After exploring throughout the the web and getting suggestions which were not productive, I figured my entire life was well over. Living devoid of the solutions to the problems you've resolved all through this posting is a serious case, as well as the ones which could have badly damaged my career if I had not encountered your web blog. Your own mastery and kindness in handling every item was valuable. I am not sure what I would have done if I hadn't come across such a thing like this. I'm able to now look ahead to my future. Thanks so much for this skilled and sensible guide. I won't hesitate to refer the sites to any individual who desires guidance about this matter.
邮件回复  
  昵称:游客 hermes outlet IP:27.153.*.*. 2022-10-25 10:02:39发表  
  I wish to get across my passion for your kindness for visitors who require help with that subject matter. Your very own dedication to getting the solution all around has been exceptionally insightful and have in every case encouraged guys much like me to get to their aims. Your entire warm and helpful useful information means a lot to me and somewhat more to my office colleagues. With thanks; from all of us.
邮件回复  
  昵称:游客 off white t shirt IP:27.153.*.*. 2022-10-24 08:14:08发表  
  I would like to express some appreciation to you just for bailing me out of such a scenario. Just after surfing through the search engines and coming across techniques that were not productive, I was thinking my life was well over. Being alive devoid of the answers to the issues you have solved by means of this blog post is a critical case, and the ones which could have badly affected my career if I hadn't discovered your website. Your good training and kindness in maneuvering every item was vital. I don't know what I would have done if I had not encountered such a point like this. I can also now look forward to my future. Thanks for your time so much for the high quality and sensible help. I will not be reluctant to refer your web sites to any person who would like guide about this issue.
邮件回复  
  昵称:游客 adidas yeezy IP:117.26.*.*. 2022-10-23 05:33:18发表  
  I wish to express my passion for your kindness supporting persons that must have help with your question. Your very own dedication to getting the message all through appeared to be unbelievably powerful and has without exception permitted many people like me to arrive at their ambitions. This helpful guide denotes this much a person like me and substantially more to my colleagues. Regards; from everyone of us.
邮件回复  
11/11页 共64条 首页 前一页 尾页 跳转至