Having hard time with DirectoryPath

179 views
Skip to first unread message

bach dang

unread,
Nov 21, 2014, 4:45:03 PM11/21/14
to izwebfil...@googlegroups.com
i tried to use izwebfilemanager on my web app.  I need to deploy the app to two servers on the same domain.  Obviously, only one file directory is needed.  On the server that has the file directory, I try to share the folder and on the second server and set DirectoryPath="\\Server1\MyFolder" for example.  That did not work.  I try to web share the folder and set DirectoryPath="~/MyWebShared" for example.  That did not work.  The servers are 2003.  Can anyone help on this because I might have to ditch this file explorer if I cannot get it to work?

Igor Zelmanovich

unread,
Nov 24, 2014, 2:02:36 AM11/24/14
to izwebfil...@googlegroups.com
IZWebFileManager does not support UNC path, but there is a workaround that users already have done:

On the server, where you want to use remote directory, you should map the remote folder as virtual folder in your application with IIS and access it in regular way


On Fri Nov 21 2014 at 11:45:03 PM bach dang <ba...@plano.gov> wrote:
i tried to use izwebfilemanager on my web app.  I need to deploy the app to two servers on the same domain.  Obviously, only one file directory is needed.  On the server that has the file directory, I try to share the folder and on the second server and set DirectoryPath="\\Server1\MyFolder" for example.  That did not work.  I try to web share the folder and set DirectoryPath="~/MyWebShared" for example.  That did not work.  The servers are 2003.  Can anyone help on this because I might have to ditch this file explorer if I cannot get it to work?

--
You received this message because you are subscribed to the Google Groups "izwebfilemanager" group.
To unsubscribe from this group and stop receiving emails from it, send an email to izwebfilemanag...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ahmed Hassaan

unread,
Dec 14, 2015, 6:49:48 AM12/14/15
to izwebfilemanager
Dear Bach

may be i'm replying on an old thread, but i want to share my experience.
similar to your problem i got two servers A & B where i can access the Shared folder \\B\Share from Server A with specific windows account
on Server A you need to host a web application with the IZWebFileManager Control availing the shared folder on Server B to web users

if like me you got a lot of hard time configuring the shared folder as a UNC path in the control witch fails, 
the workaround of virtual folder in IIS also failed because of authentication problems

My solution was to add a soft symbolic link of the shared folder in the web application folder. then configure the control to access the sub folder normally
Example:
1. Login to Server A
2. Open an elevated CMD (i.e. as administrator)
3. CD to the web application folder
4. type:
    mklink /D Share \\B\Share
where  
/D      Creates a directory symbolic link. Default is a file symbolic link.
Share is the folder to configure in the file manager control
\\B\Share is the full UNC path to the shared folder

Note: you'll still have to grant access to the application pool identity to access the shared folder.
Reply all
Reply to author
Forward
0 new messages