BV Commerce Forum
»
BV Commerce Support
»
General Support
»
376: OPEN - SP1 Final Potential Bug with URL Rewriting
Rank: Member
Joined: 9/24/2003(UTC) Posts: 402
|
Showing up on both on the remote and test site.
The file '/Product.aspx' does not exist.[ at System.Web.UI.Util.CheckVirtualFileExists(VirtualPath virtualPath) at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean noAssert) at System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp, Boolean noAssert) at System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) at System.Web.UI.PageHandlerFactory.System.Web.IHttpHandlerFactory2.GetHandler(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) at System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig) at System.Web.HttpApplication.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) ]
|
|
|
|
Rank: Member
Joined: 9/24/2003(UTC) Posts: 402
|
These messages occur when the "add to cart" button is selected. The product is entered to the cart correctly however.
12/4/2006 5:50:07 PM Error <br>Session:0ffd7ae0-5b23-42f5-b3c9-ee34f231fc5b<br>To:http://www.xyz.com/Product.aspx?productid=344e62be-b82c-43fd-98aa-53b4441cf210&Anthem_CallBack=true <br>From:http://www.xyz/1650-32_Leeds_Twist_USB_Drive.aspx<br>User:75.69.163.102(75.69.163.102)<br>Agent:Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727) 12/4/2006 5:50:07 PM System.Web The file '/Product.aspx' does not exist.[ at System.Web.UI.Util.CheckVirtualFileExists(VirtualPath virtualPath) at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean noAssert) at System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp, Boolean noAssert) at System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) at System.Web.UI.PageHandlerFactory.System.Web.IHttpHandlerFactory2.GetHandler(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) at System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig) at System.Web.HttpApplication.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
|
|
|
|
Rank: Member
Joined: 6/26/2006(UTC) Posts: 351
|
Yes, I have seen this message in my error log on my dev test site. |
|
|
|
|
Rank: Member
Joined: 9/24/2003(UTC) Posts: 402
|
EDIT: This only occurs when I enter a custom url. Without it no error, which makes sense as the Anthem callback is perhaps looking for the non-custom filename.
I don't know the technical aspects of it, but it is being triggered entirely by the use of custom urls in this case.
|
|
|
|
Rank: Member
Joined: 9/24/2003(UTC) Posts: 402
|
This ends up being pretty simple. By default the "Auto Url Rewriting for Product" is enabled. I do not know why it only causes problems on the live server (2003) but with that checked it tossed errors. Without it checked, no errors.
What's the reason behind it? I'm struggling to see how that would effect anything.
|
|
|
|
Rank: Member
Joined: 6/26/2006(UTC) Posts: 351
|
I just came here to post the same thing - if I rename the URL, it throws the error, and doesn't do the fancy Anthem stuff. But if I rename it to product/productname.aspx, then it is fine. That's ok with me. :)
If I uncheck the Auto Url Rewriting though, it does work, but then I don't have my search-engine friendly name. |
|
|
|
|
Rank: Member
Joined: 9/24/2003(UTC) Posts: 402
|
I'm trying to figure out what exactly the friendly SE actually does that naming it ourselves doesn't.
I think it's redundant, IE, once we give it our own name that's all it needs but we need a CLARIFICATION from BV on what is going on.
|
|
|
|
Rank: Member
Joined: 3/1/2006(UTC) Posts: 1,142
|
I'm looking into this now and I'll let you know when I find out what exactly is going on with this. |
Justin Etheredge Senior Software Engineer BVSoftware |
|
|
|
Rank: Member
Joined: 9/24/2003(UTC) Posts: 402
|
Justin...when you get a minute if you can reply... exactly what does the check box for friendly URLs do? I was assuming it modified URLs if the admin did not create their own. IE, instead of the long asp query type address, it modified it to be a more user friendly .aspx page name. Is that correct?
If so I can see why having both a user defined custom URL and a check box telling the app to give it a name would cause confusion. What I'm asking is this... does the check box do something additional to even a custom url or are they redundant?
|
|
|
|
Rank: Member
Joined: 3/1/2006(UTC) Posts: 1,142
|
They are redundant, the friendly urls simply rewrite the urls using the category and product sku. If you specify a custom url then this overrides the other behavior. One question though, when you specify your custom url for a product, are you including the full path, or just the relative path? |
Justin Etheredge Senior Software Engineer BVSoftware |
|
|
|
Rank: Member
Joined: 9/24/2003(UTC) Posts: 402
|
I'm just typing in the desired end page:
myproduct.aspx just as it appears. The app adds the / when I view it later in the product edit page.
|
|
|
|
Rank: Member
Joined: 3/1/2006(UTC) Posts: 1,142
|
When you go to your rewritten URL, can you tell me what the "action" attribute has in it on the form tag. (In the html just seach for "<form" and you'll find it) |
Justin Etheredge Senior Software Engineer BVSoftware |
|
|
|
Rank: Member
Joined: 9/24/2003(UTC) Posts: 402
|
Justin, when attempting to visit this page: http://www.mycompany.com...-08_Northwest_Brief.aspxwhich is actually http://www.mycompany.com...les/ProductTemplates/BVC 2004 Layout/Product.aspx?productid=4bb0148d-a26e-4942-bcd4-ce5ccb1c57a3 Viewing the source reveals this information as you have requested: <form name="aspnetForm" method="post" action="BVModules/ProductTemplates/BVC%20 2004%20 Layout/Product.aspx?productid=4bb0148d-a26e-4942-bcd4-ce5ccb1c57a3" onsubmit="javascript :return WebForm_OnSubmit();" id="aspnetForm"> Which I believe is the problem? It's submitting itself as the original, not rewritten page and is therefore throwing an error as the callback tries to refer to a page that was not created (long one). That's my take on it, I may and probably am totally wrong. EDIT: Changing the product modifier drop down list also triggers the error. NOTE: The reason I/we do not get the error with the Auto URL rewriting for products disabled is BECAUSE of the fact that when that is disabled BV5 is defaulting to the standard URLs therefore it is looking for the BVModules/xxxxx page instead of the custom url page. Removing the check for Auto Rewrite is a symptom of something wrong in the code I think. IE, I would have thought to make this work the action= SHOULD reflect the custom URL, not the unwritten URL. That page isn't being generated and when it goes looking for the virtual file it isn't finding it.
|
|
|
|
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.