.NET Framework Access to Remote File Share
Does anyone know of any .NET classes or techniques for accessing a remote file share on a different domain without using calls to unmanaged Windows API dlls?
I have a .NET application running on a machine in domain A that needs to access a share on a machine in domain B. I'm trying to find a way to connect to the domain B share and provide the necessary credentials without requiring user intervention. An interactive user would simply access "\\domainB\sharename" and enter credentials when prompted, such as "domainB\username" & "password".
I've seen some solutions that involve calls to advapi32.dll (to create an authentication token) or mpr.dll (to create a drive mapping), but I'd like to accomplish the task within the context of the .NET Framework if possible. Actually, in my case, I don't think the advapi32.dll LogonUser strategy would even work, since the Domain A machine shouldn't be able to produce an authentication token for a Domain B account.
If no such .NET classes exist, does anyone know of a specific reason why not?

