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
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