请稍候...
  • 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: 主页: 验证码:

  昵称:游客 bape IP:27.153.*.*. 2023-06-07 04:54:57发表  
  I wish to express some thanks to the writer just for bailing me out of such a matter. Because of browsing through the world-wide-web and coming across suggestions which were not helpful, I was thinking my life was over. Living without the presence of solutions to the problems you've sorted out by means of your main posting is a serious case, and the kind that might have in a negative way affected my entire career if I hadn't noticed your blog post. Your main capability and kindness in maneuvering a lot of stuff was invaluable. I'm not sure what I would have done if I had not encountered such a step like this. I'm able to now look forward to my future. Thanks very much for the skilled and result oriented guide. I will not think twice to recommend the blog to anyone who needs counselling on this situation.
邮件回复  
  昵称:游客 golden goose outlet IP:27.153.*.*. 2023-06-04 10:11:47发表  
  There is noticeably a bundle to learn about this. I assume you made sure good points in features also.
邮件回复  
  昵称:游客 chrome hearts outlet IP:27.153.*.*. 2023-05-28 14:15:22发表  
  A lot of thanks for your own labor on this site. Betty takes pleasure in managing internet research and it's obvious why. We know all of the powerful form you make insightful techniques by means of your blog and welcome contribution from other individuals about this matter while my girl is really discovering a lot of things. Take advantage of the remaining portion of the new year. You are doing a really good job.
邮件回复  
  昵称:游客 off white outlet IP:27.153.*.*. 2023-05-25 07:59:42发表  
  I simply desired to appreciate you once again. I am not sure the things that I might have undertaken in the absence of these information documented by you over that industry. It actually was the troublesome matter in my opinion, however , viewing the very professional manner you dealt with it made me to jump with joy. I'm just happier for this guidance and in addition hope you are aware of a powerful job that you are accomplishing instructing some other people via a blog. More than likely you haven't come across any of us.
邮件回复  
  昵称:游客 golden goose sneakers sale IP:120.33.*.*. 2023-05-05 05:19:31发表  
  This web page is mostly a walk-by means of for the entire data you wanted about this and didn抰 know who to ask. Glimpse here, and you抣l definitely uncover it.
邮件回复  
  昵称:游客 ggdb sneakers IP:117.26.*.*. 2023-05-01 06:54:25发表  
  After examine just a few of the weblog posts on your website now, and I actually like your way of blogging. I bookmarked it to my bookmark website listing and shall be checking again soon. Pls check out my website as nicely and let me know what you think.
邮件回复  
2/11页 共64条 首页 前一页 下一页 尾页 跳转至