• Toll-free  888-665-8637
  • International  +1 717-220-0012
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

James England (Resposio)
#1 Posted : Wednesday, May 13, 2015 4:53:00 PM(UTC)
James England (Resposio)

Rank: Member

Joined: 5/12/2015(UTC)
Posts: 6

Thanks: 2 times
In a similar vein as the previous post, I received another compilation error. This one specifies too many arguments. Is this another case of custom code?


Compilation 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: BC30516: Overload resolution failed because no accessible 'BuildUrlForProduct' accepts this number of arguments.

Source Error:

Line 89:
Line 90: 'Dim editURL As String = Utilities.UrlRewriter.BuildUrlForProduct(lineItem.AssociatedProduct, "", "LineItemId=" & HttpUtility.UrlEncode(lineItem.Bvin))
Line 91: Dim editURL As String = Utilities.UrlRewriter.BuildUrlForProduct(lineItem.AssociatedProduct, "", "LineItemId=" & HttpUtility.UrlEncode(lineItem.Bvin), System.Web.HttpContext.Current.Request)
Line 92: Dim gwp As Catalog.Product = Catalog.InternalProduct.FindByBvin(lineItem.ProductId)
Line 93:


Source File: E:\Webs\(COMPANY)\(WEBSITE)\WWW\App_Code\PageService.vb Line: 91
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.34249


I appreciate all the help!

Edited by user Wednesday, May 13, 2015 4:55:44 PM(UTC)  | Reason: Added .NET framework version information for reference.

James England (Resposio)
#2 Posted : Thursday, May 14, 2015 10:09:42 AM(UTC)
James England (Resposio)

Rank: Member

Joined: 5/12/2015(UTC)
Posts: 6

Thanks: 2 times
FOLLOW-UP

Obviously, in the case of custom code - everyone should make their own call.

However, when I commented out the offending lines I managed to finally get the SQL setup process.

These are the errors I ran into with temporary resolution taken.


Compiler error: BC30389: 'ViewUtilities.Location' is not accessible in this context because it is 'Private'.
Line 188:
Line 189: Dim ph As New PlaceHolder
Line 190: ViewUtilities.GetInputsAndModifiersForLineItemDescription(Nothing, ph, lineItem, ViewUtilities.Location.Store)
Line 191: Dim sb As New StringBuilder
Line 192: Dim sw As New IO.StringWriter(sb)

TEMPORARY RESOLUTION: LINE 190 COMMENT OUT



Compiler Error Message: BC30311: Value of type 'System.Web.UI.WebControls.PlaceHolder' cannot be converted to 'System.Web.UI.WebControls.GridView'.

Source Error:
Line 196:
Line 197: ph = New PlaceHolder
Line 198: ViewUtilities.DisplayKitInLineItem(Nothing, ph, lineItem)
Line 199: sb = New StringBuilder
Line 200: sw = New IO.StringWriter(sb)


Source File: E:\Webs\(COMPANY)\(WEBSITE)\WWW\App_Code\PageService.vb Line: 198

TEMPORARY RESOLUTION: LINE 198 COMMENT OUT



Compiler Error Message: BC30516: Overload resolution failed because no accessible 'BuildUrlForProduct' accepts this number of arguments.

Source Error:

Line 274: For Each lineItem As Orders.LineItem In o.Items
Line 275:
Line 276: Dim editURL As String = Utilities.UrlRewriter.BuildUrlForProduct(lineItem.AssociatedProduct, "", "LineItemId=" & HttpUtility.UrlEncode(lineItem.Bvin), System.Web.HttpContext.Current.Request)
Line 277: Dim gwp As Catalog.Product = Catalog.InternalProduct.FindByBvin(lineItem.ProductId)
Line 278:
Source File: E:\Webs\(COMPANY)\(WEBSITE)\WWW\App_Code\PageService.vb Line: 276
NOTE: THIS AFFECTS RenderFloatCart (Public Shared Function)

TEMPORARY RESOLUTION: LINE 276 COMMENT OUT



Compiler Error Message: BC30451: 'editURL' is not declared. It may be inaccessible due to its protection level.

Source Error:
Line 285: result.Append("</div></td>")
Line 286: result.Append("<td class=""productdescriptioncolumn"" style=""width:100%;"" valign=""top"">")
Line 287: result.Append("<a href=""" & editURL & """>")
Line 288: result.Append("<div class=""cartproductname"">" & lineItem.ProductName & "</div>")
Line 289: result.Append("<div class=""cartsku"">Item #:" & lineItem.AssociatedProduct.Sku & "</div>")
Source File: E:\Webs\(COMPANY)\(WEBSITE)\WWW\App_Code\PageService.vb Line: 287

TEMPORARY RESOLUTION: LINE 288 COMMENT OUT


After commenting out those lines, I managed to get to the next step in the process - SQL setup. Oh, the joys of upgrading!
Aaron
#3 Posted : Thursday, May 14, 2015 10:26:00 AM(UTC)
Aaron

Rank: Administration

Joined: 4/2/2004(UTC)
Posts: 2,381
United States
Location: Hummelstown, PA

Thanks: 6 times
Was thanked: 163 time(s) in 158 post(s)
It looks like more custom code that needs to be updated. I would try this signature for the BuildUrlForProduct function:

Code:
Dim editURL As String = Utilities.UrlRewriter.BuildUrlForProduct(lineItem.AssociatedProduct, System.Web.HttpContext.Current.Request, "LineItemId=" & HttpUtility.UrlEncode(lineItem.Bvin))

Edited by user Thursday, May 14, 2015 11:03:09 AM(UTC)  | Reason: Not specified

Aaron Sherrick
BV Commerce
Toll-free 888-665-8637 - Int'l +1 717-220-0012
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.

©2024 Develisys. All rights reserved.
  • Toll-free  888-665-8637
  • International  +1 717-220-0012