This is a migrated thread and some comments may be shown as answers.

Setting the ImageManager.ViewPath to a directory outside of my current site

1 Answer 61 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Allan
Top achievements
Rank 1
Allan asked on 17 Mar 2012, 06:26 PM
Hello All,

I am new to the editor and couldn't find anything when searching. My application is located like so:

http://localhost/CMS/

but I want the ViewPath to pick up the directory:

http://localhost/Images

If I try and use Page.ResolveUrl with a relative Url to that location, I get an error saying "Cannot use a leading .. to exit above the top directory." 

Is there another way I should be doing this?

Thanks.

1 Answer, 1 is accepted

Sort by
0
Allan
Top achievements
Rank 1
answered on 17 Mar 2012, 08:06 PM
Managed to sort this issue out by creating a virtual directory so http://localhost/CMS/Images was pointing to http://localhost/Images.
Tags
Editor
Asked by
Allan
Top achievements
Rank 1
Answers by
Allan
Top achievements
Rank 1
Share this question
or