Using Visual Web Developer to build aspx (c#) forms. When testing we were jumping up a level to reach the root 'App Data' folder, now we have gone live, we have done a find and replace for all the '../' throughout the site as the 'App Data' folder is now sat in the same folder as the web site. We are now getting the following error 'Cannot use a leading .. to exit above the top directory.' Would there be any other reason for this. Nowhere in the site is the tilde symbol used.
Here is the error:
[HttpException (0x80004005): Cannot use a leading .. to exit above the top directory.]
System.Web.Util.UrlPath.Re
duceVirtua
lPath(Stri
ng path) +3626102
System.Web.Util.UrlPath.Re
duce(Strin
g path) +84
System.Web.Util.UrlPath.Co
mbine(Stri
ng appPath, String basepath, String relative) +326
System.Web.VirtualPath.Com
bine(Virtu
alPath relativePath) +166
System.Web.HttpRequest.Map
Path(Virtu
alPath virtualPath, VirtualPath baseVirtualDir, Boolean allowCrossAppMapping) +84
System.Web.HttpServerUtili
ty.MapPath
(String path) +106
Free_Business_Rates_Audit2
.btnSend_C
lick(Objec
t sender, EventArgs e) +51
System.Web.UI.WebControls.
Button.OnC
lick(Event
Args e) +105
System.Web.UI.WebControls.
Button.Rai
sePostBack
Event(Stri
ng eventArgument) +107
System.Web.UI.WebControls.
Button.Sys
tem.Web.UI
.IPostBack
EventHandl
er.RaisePo
stBackEven
t(String eventArgument) +7
System.Web.UI.Page.RaisePo
stBackEven
t(IPostBac
kEventHand
ler sourceControl, String eventArgument) +11
System.Web.UI.Page.RaisePo
stBackEven
t(NameValu
eCollectio
n postData) +33
System.Web.UI.Page.Process
RequestMai
n(Boolean includeStagesBeforeAsyncPo
int, Boolean includeStagesAfterAsyncPoi
nt) +1746
Start Free Trial