Compilation Error

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
11 years ago
I keep getting this in my custom header:

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: CS1501: No overload for method 'NopCssFiles' takes 1 arguments

Source Error:


Line 27:     @Html.Partial("Head")
Line 28:     @Html.Widget("head_html_tag")
Line 29:     @Html.NopCssFiles(ResourceLocation.Head)
Line 30:     @Html.NopScripts(ResourceLocation.Head)
Line 31:     @Html.NopCanonicalUrls()

Source File: e:\Silkscreen\OchTees\OchTees Nop\Themes\OchTees\Views\Shared\_OchTeesRoot.Head.cshtml    Line: 29
11 years ago
Oh i found it, i needed to use:

    @Html.NopCssFiles(this.Url, ResourceLocation.Head)
    @Html.NopScripts(this.Url, ResourceLocation.Head)
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.