The Artima Developer Community
Sponsored Link

.NET Buzz Forum
Fun with NAS devices and IIS

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Steve Hebert

Posts: 218
Nickname: sdhebert
Registered: Apr, 2005

Steve Hebert is a .NET developer who has created the .Math compiler library.
Fun with NAS devices and IIS Posted: Aug 30, 2005 9:22 AM
Reply to this message Reply

This post originated from an RSS feed registered with .NET Buzz by Steve Hebert.
Original Post: Fun with NAS devices and IIS
Feed Title: Steve Hebert's Development Blog
Feed URL: /error.htm?aspxerrorpath=/blogs/steve.hebert/rss.aspx
Feed Description: .Steve's .Blog - Including .Net, SQL Server, .Math and everything in between
Latest .NET Buzz Posts
Latest .NET Buzz Posts by Steve Hebert
Latest Posts From Steve Hebert's Development Blog

Advertisement

I keep running into an interesting condition with an EMC NAS device.  Part of our web front-end reads and writes files to an external EMC NAS device shared among the clustered web servers.  When using a Samba-based NAS device, we configure IIS to run under a username / password that also exists on the NAS device.  We then impersonate the account settings in ASP.NET using the web.config file. At this point, we can read/write to the device using UNC paths. (This solution is documented on MSDN several times, with the best code example I've found here - even though it's classic ASP).

 

This works great on the Samba device, but it does not work on the EMC device.

 

Here’s the kicker – in order to get the EMC device working, we must pass the UNC along with username and password to WNetAddConnection2A.  Even worse, we occasionally get a “Fatal Network Error” exception thrown when doing reads and writes. My guess on this one is that an existing open connection’s access token is invalidated by a subsequent call to WNetAddConnection2A by another IIS thread.  I wonder if this explains why Windows Explorer refuses to allow different authentication credentials once you’ve successfully mapped a drive to a given server?  

Read: Fun with NAS devices and IIS

Topic: XBox 360 Omega Bundle Previous Topic   Next Topic Topic: Maintainable Design

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use