Rank: Member
Joined: 6/15/2014(UTC) Posts: 3 Thanks: 1 times
|
When initial request comes in and no connection string is configured, the Global.aspx redirects user to the SqlPatch.aspx. I need to intercept this condition and redirect to my custom handler. So I modified Global.aspx to look like this
If runSql Then runSql = False redirectedForSqlUpdate = True Response.Redirect("~/ChngStore.aspx", True) End If
however, I have an issue. When SqlPatch.aspx loads, it does not involve any theme files or anything. Very simple page load. When I try to load my handler, suddenly I see some other files trying to load E:\Projects\Resposio\Bvc 2013.0.1.301\www\BVModules\Themes\Bvc5\Header.ascx.vb that in turn tries to load categories and fails.
What is the magic? How can I get my handler to load the same way as SqlPatch does? My page is very simple and does not include any musters. Why do I see other files try to load?
I did modify E:\Projects\Resposio\Bvc 2013.0.1.301\source\BVSoftware.Bvc5.Core\Utilities\UrlRewriter.vb to If Not parts.Url.EndsWith("sqlpatch.aspx") And Not parts.Url.EndsWith("chngstore.aspx") Then
but I still cannot get my page just simply load without crashing just a few moments after it loads.
Any help would be greatly appreciated! Thanks.
|
|
|
|
Rank: Administration
Joined: 4/2/2004(UTC) Posts: 2,393 Location: Hummelstown, PA Thanks: 6 times Was thanked: 163 time(s) in 158 post(s)
|
Genady,
Is your Page class inheriting from something other than System.Web.UI.Page? Have you tried copying the SqlPath.aspx page and modifying it? |
Aaron Sherrick BV Commerce Toll-free 888-665-8637 - Int'l +1 717-220-0012 |
1 user thanked Aaron for this useful post.
|
|
|
Rank: Member
Joined: 6/15/2014(UTC) Posts: 3 Thanks: 1 times
|
Resolved my issue last night. It was stupid mistake on my part. Html that I copied from old version had a reference to non existent image that triggered this.
it's all set now. Cannot believe how much time wasted on a stupid mistake!!
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.