BV Commerce Forum
»
BV Commerce Support
»
General Support
»
error under SP2 - ImageUrl is not a valid member of...
Rank: Member
Joined: 8/13/2004(UTC) Posts: 73
|
Guys, we've installed the sp2 under a new site. We've imported the products by the import/export tool... and when we choose any product in the store we have this problem:
<H2>[color=#ffffcc>
<TR> <TD>[1]
Version Information:[/1] Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.210
[3]Any help? thanks.[/3]<!-- [HttpCompileException]: C:\Inetpub\wwwroot\BV Commerce 5\CPADUSAsp2\BVModules\ProductTemplates\cpad\Product.aspx.vb(85): error BC30456: 'ImageUrl' is not a member of 'ASP.bvmodules_controls_productmainimage_ascx'. at System.Web.Compilation.BuildManager.CompileWebFile(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) --><!-- This error page might contain sensitive information because ASP.NET is configured to show verbose error messages using <customErrors mode="Off"/>. Consider using <customErrors mode="On"/> or <customErrors mode="RemoteOnly"/> in production environments.-->
|
|
|
|
Rank: Member
Joined: 9/27/2004(UTC) Posts: 1,099
|
You can safely remove or comment out this line. That should fix the issue. |
|
|
|
|
Rank: Member
Joined: 8/13/2004(UTC) Posts: 73
|
Now I get another error...
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: BC30456: 'CurrentPrice' is not a member of 'BVSoftware.Bvc5.Core.Catalog.Product'.
Source Error:
Line 93: 'add on selected modifier prices Line 94: Dim priceAdjustment As Decimal = VariantsDisplay.GetPriceAdjustment() Line 95: Me.LocalProduct.CurrentPrice += priceAdjustment Line 96: Line 97: ' Prices
|
|
|
|
Rank: Member
Joined: 9/27/2004(UTC) Posts: 1,099
|
In SP2, CurrentPrice got changed from a property on the product to a method named “GetCurrentPrice”.
I believe it requires the user BVIN. You can get this by calling SessionManager.GetCurrentUserId() |
|
|
|
|
Rank: Member
Joined: 8/13/2004(UTC) Posts: 73
|
Ok, this time I didn't understood what should I do...
Do I have to replace the "Me.LocalProduct.CurrentPrice += priceAdjustment" just for the "GetCurrentPrice"?
And where should I put the "SessionManager.GetCurrentUserId()"
(And I dont understand how are the UserId and the Price related...)
Sorry, this time I got lost... and thanks again.
|
|
|
|
Rank: Member
Joined: 1/8/2007(UTC) Posts: 79
|
I didn't answered this before, because I've really forgot this post. My mistake was stupid and easy to solve.
This store was started under SP1, then we made the upgrade to SP2 but by mistake, I've uploaded this module's SP1 file. Thanks anyway for the help.
|
|
|
|
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.