Peter Nordberg
asked on
Server Error in '/' Application.
Hi,
When I publish my website onto my webserver (Windows server 2008, IIS 7) I get this error message.
It works fine on my developing machine and I also can access some of my backend pages, but when I try to acces that start page of the site and some other pages on the front end this message is shown.
What does the message mean and what should I be looking for to solve it?
Peter
-------------------------- -------
Server Error in '/' Application.
Cannot use a leading .. to exit above the top directory.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Web.HttpException: Cannot use a leading .. to exit above the top directory.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[HttpException (0x80004005): Cannot use a leading .. to exit above the top directory.]
System.Web.Util.UrlPath.Re duceVirtua lPath(Stri ng path) +8774912
System.Web.Util.UrlPath.Re duce(Strin g path) +52
System.Web.Util.UrlPath.Co mbine(Stri ng appPath, String basepath, String relative) +217
System.Web.UI.Control.Reso lveClientU rl(String relativeUrl) +258
System.Web.UI.HtmlControls .HtmlLink. RenderAttr ibutes(Htm lTextWrite r writer) +74
System.Web.UI.HtmlControls .HtmlLink. Render(Htm lTextWrite r writer) +42
System.Web.UI.Control.Rend erControlI nternal(Ht mlTextWrit er writer, ControlAdapter adapter) +27
System.Web.UI.Control.Rend erControl( HtmlTextWr iter writer, ControlAdapter adapter) +100
System.Web.UI.Control.Rend erControl( HtmlTextWr iter writer) +25
System.Web.UI.Control.Rend erChildren Internal(H tmlTextWri ter writer, ICollection children) +208
System.Web.UI.HtmlControls .HtmlHead. RenderChil dren(HtmlT extWriter writer) +21
System.Web.UI.HtmlControls .HtmlConta inerContro l.Render(H tmlTextWri ter writer) +31
System.Web.UI.Control.Rend erControlI nternal(Ht mlTextWrit er writer, ControlAdapter adapter) +27
System.Web.UI.Control.Rend erControl( HtmlTextWr iter writer, ControlAdapter adapter) +100
System.Web.UI.Control.Rend erControl( HtmlTextWr iter writer) +25
System.Web.UI.Control.Rend erChildren Internal(H tmlTextWri ter writer, ICollection children) +208
System.Web.UI.Control.Rend erChildren (HtmlTextW riter writer) +8
System.Web.UI.Control.Rend er(HtmlTex tWriter writer) +10
System.Web.UI.Control.Rend erControlI nternal(Ht mlTextWrit er writer, ControlAdapter adapter) +27
System.Web.UI.Control.Rend erControl( HtmlTextWr iter writer, ControlAdapter adapter) +100
System.Web.UI.Control.Rend erControl( HtmlTextWr iter writer) +25
System.Web.UI.Control.Rend erChildren Internal(H tmlTextWri ter writer, ICollection children) +208
System.Web.UI.Control.Rend erChildren (HtmlTextW riter writer) +8
System.Web.UI.Page.Render( HtmlTextWr iter writer) +29
System.Web.UI.Control.Rend erControlI nternal(Ht mlTextWrit er writer, ControlAdapter adapter) +27
System.Web.UI.Control.Rend erControl( HtmlTextWr iter writer, ControlAdapter adapter) +100
System.Web.UI.Control.Rend erControl( HtmlTextWr iter writer) +25
Telerik.Web.UI.RadAjaxCont rol.Render PageInAjax Mode(HtmlT extWriter writer, Control page) +626
System.Web.UI.Control.Rend erChildren Internal(H tmlTextWri ter writer, ICollection children) +109
System.Web.UI.Control.Rend erChildren (HtmlTextW riter writer) +8
System.Web.UI.Page.Render( HtmlTextWr iter writer) +29
System.Web.UI.Control.Rend erControlI nternal(Ht mlTextWrit er writer, ControlAdapter adapter) +27
System.Web.UI.Control.Rend erControl( HtmlTextWr iter writer, ControlAdapter adapter) +100
System.Web.UI.Control.Rend erControl( HtmlTextWr iter writer) +25
System.Web.UI.Page.Process RequestMai n(Boolean includeStagesBeforeAsyncPo int, Boolean includeStagesAfterAsyncPoi nt) +3060
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1
When I publish my website onto my webserver (Windows server 2008, IIS 7) I get this error message.
It works fine on my developing machine and I also can access some of my backend pages, but when I try to acces that start page of the site and some other pages on the front end this message is shown.
What does the message mean and what should I be looking for to solve it?
Peter
--------------------------
Server Error in '/' Application.
Cannot use a leading .. to exit above the top directory.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Web.HttpException: Cannot use a leading .. to exit above the top directory.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[HttpException (0x80004005): Cannot use a leading .. to exit above the top directory.]
System.Web.Util.UrlPath.Re
System.Web.Util.UrlPath.Re
System.Web.Util.UrlPath.Co
System.Web.UI.Control.Reso
System.Web.UI.HtmlControls
System.Web.UI.HtmlControls
System.Web.UI.Control.Rend
System.Web.UI.Control.Rend
System.Web.UI.Control.Rend
System.Web.UI.Control.Rend
System.Web.UI.HtmlControls
System.Web.UI.HtmlControls
System.Web.UI.Control.Rend
System.Web.UI.Control.Rend
System.Web.UI.Control.Rend
System.Web.UI.Control.Rend
System.Web.UI.Control.Rend
System.Web.UI.Control.Rend
System.Web.UI.Control.Rend
System.Web.UI.Control.Rend
System.Web.UI.Control.Rend
System.Web.UI.Control.Rend
System.Web.UI.Control.Rend
System.Web.UI.Page.Render(
System.Web.UI.Control.Rend
System.Web.UI.Control.Rend
System.Web.UI.Control.Rend
Telerik.Web.UI.RadAjaxCont
System.Web.UI.Control.Rend
System.Web.UI.Control.Rend
System.Web.UI.Page.Render(
System.Web.UI.Control.Rend
System.Web.UI.Control.Rend
System.Web.UI.Control.Rend
System.Web.UI.Page.Process
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1
did u used any response.redirect in any of the functions or in any of the click event ?
I assume you are using URL rewriting. Check your references to external files like images, css, and javascript files. I read somewhere that url rewriting doesn't handle those links very well. I'll see if I can find the actual info again.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
It pinted me in the right direction.
Peter
Peter