I have a page with an ImageButton and on my button's command method, I have this:
The value of CurrentPage.ProductPerspectivePage is "/Templates/Spinifex/Pages/ProductPerspective.aspx?id=112"
However, it gives me a violation exception.
[AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.]
EPiServer.Web.UrlRewriteModule.HttpUrlRewriteToExternal(String url, Boolean removeId, RebaseKind typeOfUrl) +740
EPiServer.Web.UrlRewriteModuleBase.EndRequestEventHandler(Object sender, EventArgs e) +137
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +170
ProductPerspective.aspx has barely nothing on it.
Hoping someone could shed some light. Thanks.
For some reason, it's working now. Earlier when I restarted IIS and tested the site, it still failed.
So I modified the code to Response.Redirect("http://www.google.com") and as expected it went to google's site.
I changed it back to the original code, and it's working now. weird.