Monday, December 15, 2008

Cannot Use Leading..... to exit Top Directory

hey all,

We get this error message, when ever we are migrating an application from .Net frame work 1.1 to 2.0. The main cause of this issue is, in our 1.1 code we refer to urls using ".." syntax, to move to parent directory. This is not allowed in 2.0 frame work. So in order to make the code work in 2.0, we need to convert all the urls in the format using "~/" or "/" directly.
Eg: if url ="../images/image.gif" is the code present in 1.1 framework
then this image url needs to changed to url = "~/images/image.gif" for the code base to work with .Net framework 2.0.

Happy Coding

No comments: