Developer forum

Forum » Development » Fileshare/Virtual Folder from another server

Fileshare/Virtual Folder from another server


Reply

I created a Virtual folder infiles using IIS manager, and from here i can browse contents on the server holding the share - so seen from the iis, everything looks fine.

 

I can also list the files in my browser: http://localhost/files/test/

 

But not from the dynamicweb File Archive. From heer i cannot even see the folder nor its contents

 

Why ?

And how to make it work - please.

 

I need this for a customer running DW as an intranet internally and they want access to a document library on another server..

 

 

/Lars


Replies

 
Reply

In short terms you can't, however, if you find a way, I'm much anxious to hear from you, since this has been requested many times:)

 

Are you able to download the files you're listing? This would require IIS to stream the files from the other server, and I'm not sure that this is possible out of the box.

 

Best chance is to create a custom module that either copies the files and folders from the share server to a directory in /Files/Files on a regular basis, so you can work with the file from the Filemanager.

 

I could very likely be wrong on this one, but this is how I remember it working.

 
Reply

Hi.
 

 

Oh yes i can open and download files without any problems.

The indexserver should also be able to index the whole lot, But Dynamicweb cannot see it from the Filemanager.

 

I believe it must be a Telerik problem - if not Dynamicweb ;o)

 

The trick is sometimes to create an empty physical folder and also create a virtual folder pointing to the remote server.

 

This fools f.eks FTP servers to show the empty folder in the directory list, but as the virtual directory overrides the physical, clicking on the foldername wille show the contents from the virtual folder.

 

And even that works in the DW environment.

 

Thus i created a physical folder (Test) from the backend in the "Filer" folder under Files, and then a Virtual Folder using IIS manager with the same name.

 

And http://Localhost/Files/filer/Test/ shows the contents from the virtual folder, but Filemanager in DW only lists the Physical folder.

 

So the idea could be to create a custom module or an ASP page doing the thing with the folder.

 

The challenge is that the customer has 75.000+ PDF files on an AS/400 in a share all divided in folders per customer, and they want to give access to each customer allowing them to see only their own files.

 

 

/Lars

 
Reply

What about security settings? You must be using iusr_machine to scan the directory, or have you set up IIS to run on a domain user account? Dynamicweb runs in the machine's aspnet context when it scans for folders and files.

 
Reply

Jep.

When creating the Virtual Folder i'm setting a Domain account on that seperately

 

/Lars

 
Reply

But the user running the .Net process, aspnet, would need access to the files on the remote server in order to read them. If you can make the process run in a different user context, do you think you could make it work?

 
Reply

We did it the easy way - we moved the folder to the dedicated DW server within the Files section and shared it to the users from there.

 

Works fine..

 

/Lars

 
Nicolai Høeg Pedersen
Reply

Hi

 

Dynamicweb can not see a virtual folder from IIS in the filemanager because it looks for folders/subfolders/files on the disk. So when creating a virtual folder, dynamicweb does not see it.

 

This of course can be solved, but raises a new issue. having asp.net accessing a network resource is not simple. You would have to either impersonate the piece of code browsing the network share with a domain user. Alterntively have the IIS running as a domain user with the appropiate rights.

 

The old ASP version of Dynamicweb actually have this feature...

 

You must be logged in to post in the forum