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

  昵称:游客 yeezy shoes IP:120.33.*.*. 2022-10-31 12:08:02发表  
  Thanks a lot for providing individuals with an exceptionally wonderful possiblity to read in detail from this web site. It is often very brilliant and full of a good time for me and my office mates to search your blog more than three times a week to read through the fresh guidance you have got. And of course, I am just at all times motivated considering the astonishing hints you give. Certain 4 ideas in this post are completely the most beneficial we have all ever had.
邮件回复  
  昵称:游客 curry 8 IP:27.153.*.*. 2022-10-31 00:50:42发表  
  I just wanted to type a quick note to say thanks to you for all of the marvelous concepts you are giving here. My time-consuming internet lookup has now been rewarded with really good content to talk about with my relatives. I would assert that many of us visitors actually are truly blessed to exist in a fantastic community with very many awesome professionals with interesting concepts. I feel really blessed to have seen the web page and look forward to some more cool moments reading here. Thank you once more for all the details.
邮件回复  
  昵称:游客 golden goose IP:27.153.*.*. 2022-10-29 11:26:13发表  
  I am writing to let you be aware of what a remarkable experience my cousin's daughter undergone checking your blog. She picked up several pieces, which included what it is like to possess an incredible coaching nature to have other people quite simply thoroughly grasp specified problematic subject areas. You actually exceeded her expectations. Many thanks for displaying those invaluable, safe, edifying and even easy guidance on this topic to Janet.
邮件回复  
  昵称:游客 bape hoodie outlet IP:27.153.*.*. 2022-10-28 00:16:27发表  
  My husband and i got excited that Michael could conclude his homework via the ideas he made using your site. It's not at all simplistic to just happen to be making a gift of tips which usually most people have been trying to sell. And we also do understand we have got you to appreciate for this. The illustrations you have made, the simple website navigation, the friendships your site help instill - it's all impressive, and it's really leading our son in addition to our family believe that this theme is cool, and that is highly indispensable. Many thanks for all the pieces!
邮件回复  
  昵称:游客 goyard bags IP:27.153.*.*. 2022-10-27 11:36:11发表  
  I precisely wanted to thank you very much yet again. I do not know the things I might have implemented without the entire thoughts discussed by you concerning that topic. It had become an absolute terrifying issue in my position, however , coming across the specialized approach you handled it took me to cry over contentment. I am grateful for your assistance and thus expect you comprehend what an amazing job that you are getting into educating people today using your website. I am sure you've never met any of us.
邮件回复  
  昵称:游客 supreme clothing IP:27.153.*.*. 2022-10-27 00:23:13发表  
  Thanks a lot for providing individuals with a very remarkable possiblity to read critical reviews from this website. It really is so cool and packed with fun for me and my office co-workers to visit your website a minimum of thrice per week to see the latest things you have got. And indeed, I'm also always fulfilled considering the remarkable things served by you. Certain two tips in this article are essentially the most impressive we've ever had.
邮件回复  
10/11页 共64条 首页 前一页 下一页 尾页 跳转至