Try our conversational search powered by Generative AI!

External Url has mismatching id-parameter, does not refer to same page

Vote:
 

Hi,

I am currently experiencing an eventlog on the webserver that is yellow like the finest autumns due to the fact that a lot of bots, of reasons unknown, are using invalid URLs in the format http://www.examplesite.com/no/Overnatting/?id=789455 (where the part before the ?-mark is valid, but the id supplied is another page).

This gives the following error message:

####################################################################################

External Url has mismatching id-parameter, does not refer to same page

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: EPiServer.Core.EPiServerException: External Url has mismatching id-parameter, does not refer to same page

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:

[EPiServerException: External Url has mismatching id-parameter, does not refer to same page]
   EPiServer.Web.FriendlyUrlRewriteProvider.ConvertToInternalInternal(UrlBuilder url, Object& internalObject) +1356
   EPiServer.Web.FriendlyUrlRewriteProvider.ConvertToInternal(UrlBuilder url, Object& internalObject) +304
   EPiServer.Web.UrlRewriteModule.HttpUrlRewriteToInternal(UrlBuilder url) +313
   EPiServer.Web.UrlRewriteModuleBase.BeginRequestEventHandler(Object sender, EventArgs e) +158
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +68
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75

#################################################################################

Do anyone here know how to avoid this exception?

Regards,
Frode

#47551
Feb 02, 2011 9:04
Vote:
 

Hi,

I'm getting same error. Did you mange to solve the problem?

This is my situation:

It is enterprise solution with 6 sites using episerver version 5.2.375.133. All site using same data base but have different VPP folders.
 
One of the site(for Norway) has custom login page. All pages on Norway site required user to be logged into see page , so start page as well. And if you are not logged in you are redirected to that custom login page.
 
When I'm logged in into some other site than Norwegian in edit mode with master admin that can see all sites, and I click on start page for Norway site, it tries to redirect me to custom login page for Norway site but brakes with this error:
 
"External Url has mismatching id-parameter, does not refer to same page"

Url in address bar is:
http://NorwaySite/Disclaimer/Login/?ReturnUrl=%2fepiui%2fedit%2fdefault.aspx%3fid%3d243&id=243

I do not know why episerver add page id in query string on the end of pages url in edit mode, even if EPiServerFriendlyUrlRewriteProvider is in use. This id is not added when site is browsed externally (not with in edit mode).

Everithing works fine with default episerver login page.

Any ideas?

This is stack trace:
[EPiServerException: External Url has mismatching id-parameter, does not refer to same page]
   EPiServer.Web.FriendlyUrlRewriteProvider.ConvertToInternalInternal(UrlBuilder url, Object& internalObject) +1356
   EPiServer.Web.FriendlyUrlRewriteProvider.ConvertToInternal(UrlBuilder url, Object& internalObject) +304
   EPiServer.Web.UrlRewriteModule.HttpUrlRewriteToInternal(UrlBuilder url) +313
   EPiServer.Web.UrlRewriteModuleBase.BeginRequestEventHandler(Object sender, EventArgs e) +158
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +68
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75

Thanks in advance for help.

 

Regards,

Tuta

#62732
Nov 01, 2012 16:34
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.