Help needed...

D

DDK

Can anyone explain why my ASP.NET website works on my local machine just
fine, but when I upload it to my hosting provider I get this Server Error:


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.Reduce(String path) +701
System.Web.Util.UrlPath.Combine(String basepath, String relative) +295

System.Web.Configuration.AuthenticationConfig.GetCompleteLoginUrl(HttpContex
t context, String loginUrl) +157

System.Web.Configuration.AuthenticationConfig.AccessingLoginPage(HttpContext
context, String loginUrl) +34
System.Web.Security.FormsAuthenticationModule.OnEnter(Object source,
EventArgs eventArgs) +267

System.Web.SyncEventExecutionStep.System.Web.HttpApplication+IExecutionStep.
Execute() +60
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&
completedSynchronously) +87
 
K

Kevin Spencer

Sounds like the web server is configured not to allow Parent Paths.

--
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

DDK said:
Can anyone explain why my ASP.NET website works on my local machine just
fine, but when I upload it to my hosting provider I get this Server Error:


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.Reduce(String path) +701
System.Web.Util.UrlPath.Combine(String basepath, String relative) +295

System.Web.Configuration.AuthenticationConfig.GetCompleteLoginUrl(HttpContex
t context, String loginUrl) +157

System.Web.Configuration.AuthenticationConfig.AccessingLoginPage(HttpContext
context, String loginUrl) +34
System.Web.Security.FormsAuthenticationModule.OnEnter(Object source,
EventArgs eventArgs) +267

System.Web.SyncEventExecutionStep.System.Web.HttpApplication+IExecutionStep.
Execute() +60
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&
completedSynchronously) +87





-------------------------------------------------------------------------- --
----

Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET
Version:1.1.4322.573


--------------------------------------------------------------------------
 
I

Infant Newbie

looks like you are trying to go out of your allocated directory. I mean out
of uour webspace! Get it??


bart
http://www.meshcode.net
DDK said:
Can anyone explain why my ASP.NET website works on my local machine just
fine, but when I upload it to my hosting provider I get this Server Error:


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.Reduce(String path) +701
System.Web.Util.UrlPath.Combine(String basepath, String relative) +295

System.Web.Configuration.AuthenticationConfig.GetCompleteLoginUrl(HttpContex
t context, String loginUrl) +157

System.Web.Configuration.AuthenticationConfig.AccessingLoginPage(HttpContext
context, String loginUrl) +34
System.Web.Security.FormsAuthenticationModule.OnEnter(Object source,
EventArgs eventArgs) +267

System.Web.SyncEventExecutionStep.System.Web.HttpApplication+IExecutionStep.
Execute() +60
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&
completedSynchronously) +87





-------------------------------------------------------------------------- --
----

Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET
Version:1.1.4322.573


--------------------------------------------------------------------------
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top