I'm receiving the following error. Any help would be greatly appreciated.
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: CS1061: 'object' does not contain a definition for 'DefaultImagePath' and no extension method 'DefaultImagePath' accepting a first argument of type 'object' could be found (are you missing a using directive or an assembly reference?)
Source Error:
Line 7: <%foreach (var p in ViewData.Model.Product.RelatedProducts) { %> Line 8: <div> Line 9: <%=Html.ProductImage(p.DefaultImagePath) %><br /> Line 10: <%=Html.ActionLink<CatalogController>(x=>x.Show(p.ProductCode),p.Name) %> Line 11: </div>
Source File: i:\Documents\Visual Studio 2008\Projects\Commerce.MVC\Commerce.Web\Views\Catalog\Show.aspx
Line: 9
I removed that property a while back - I need to do a source refresh here soon. I am having nothing but problems with Codeplex and SVNBridge unfortunately -I'll do my best to get this reloaded.
ppompeii
0 Points
1 Post
Problem with DefaultImagePath
Sep 02, 2008 09:49 AM|LINK
I'm receiving the following error. Any help would be greatly appreciated.
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: CS1061: 'object' does not contain a definition for 'DefaultImagePath' and no extension method 'DefaultImagePath' accepting a first argument of type 'object' could be found (are you missing a using directive or an assembly reference?)
Source Error:
Line 7: <%foreach (var p in ViewData.Model.Product.RelatedProducts) { %>Line 8: <div>
Line 9: <%=Html.ProductImage(p.DefaultImagePath) %><br />
Line 10: <%=Html.ActionLink<CatalogController>(x=>x.Show(p.ProductCode),p.Name) %>
Line 11: </div>
Source File: i:\Documents\Visual Studio 2008\Projects\Commerce.MVC\Commerce.Web\Views\Catalog\Show.aspx Line: 9
robconery
Participant
852 Points
195 Posts
Re: Problem with DefaultImagePath
Sep 08, 2008 07:16 PM|LINK
I removed that property a while back - I need to do a source refresh here soon. I am having nothing but problems with Codeplex and SVNBridge unfortunately -I'll do my best to get this reloaded.