I've developed a nice VB supported website using a site.master that I am developing some content management system functions (e.g., uploading images to image folder, documents to document folder, editing web pages). All of my functions work when they are stored in the main website folder (i.e., /main/). I've also modified the web.config so that the pages are only available to authenticated users. I have also set up restrictions so that the editor pages can not be edited using the editing tools. All of this editing will happen on a staging server (as manual edits are completed now), then will be copied over by another person to the live (public) server.
Since the person moving the files live, is not the same person doing the development, I would like to keep all of the editing files in one folder (e.g., /main/cms/) that will not be copied to the live server. When I put my files into the /cms/ folder, I run into errors. More specifically, the files will read from other directories (e.g., /main/images), but when I try to upload or delete a file, I get the custom error page I developed and am re-directed to the default page.
When I look at the the error line in the URL from the error page re-direct, it appears that the file is trying to submit from the main folder location. For example, when trying to delete an image using my images.aspx file in cms (i.e., /main/cms/images.aspx), it appears as if the "action" does not account for the "cms."
I've added the site.master to the cms folder and referenced correctly, with the same result. I am wondering if I need to somehow re-write the action statement or how to resolve this issue. I tried to add a C# script in the app_folder as my latest resort, but haven't had any luck referencing it correctly in the page. I'm not even sure that that is the correct solution and I am stuck.