Chapter 15, page 546, step #5: under the "Creating Advanced Style Solutions" Try it out.
A blue wiggly line shows up when I complete step#5 under the first line of code (shown in bold)
Code:
<asp:GridView runat="server" CssClass="Gridview">
<HeaderStyle CssClass="GridViewHeaderStyle" />
<PagerStyle CssClass="GridViewPagerStyle" />
<SortedAscendingHeaderStyle CssClass="GridViewAscendingHeaderStyle" />
<SortedDescendingHeaderStyle CssClass="GridViewDescendingHeaderStyle" />
</asp:GridView>
when I hover over this line I get the following message:
////
runtime error: there is no build provider registered for the extension .skin. You can register one in the web.config or machine.config file in the <compilation><buildproviders> section. Make sure it has a BuildProviderAppliesToAttribute attribute which includes the value 'Web' or 'All'.
\\\\
So I put the following line of code in the web.config file in the <buildproviders> section as follows (Code I added for this is in bold)
Code:
<compilation debug="true" strict="false" explicit="true" targetFramework="4.5.1">
<assemblies>
<add assembly="System.Security, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
<add assembly="System.Data.Entity.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</assemblies>
<buildProviders>
<add extension=".edmx" type="System.Data.Entity.Design.AspNet.EntityDesignerBuildProvider" />
<add extension=".skin" type="System.Data.Entity.Design.AspNet.EntityDesignerBuildProvider" />
</buildProviders>
</compilation>
The application builds fine and the grid view works but there is no 'glyph' besides the name to indicate sort direction and the 'delete links' are not disabled. Not sure if its because of the runtime error or not. I double checked everything else and its all there properly. The Images folder, GridView.skin, and Management.css are all in the Management folder under App_Themes.
I also cant find any 'BuildProviderAppliesToAttribute attribute which includes the value 'Web' or 'All''.
The blue line under the code and the runtime error message persist.
Any help on this appreciated - or am I missing something?