Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 4.5.1 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4.5.1: in C# and VB by Imar Spaanjaars; ISBN: 978-1-118-84677-3
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4.5.1 : in C# and VB section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 12th, 2015, 10:26 PM
Authorized User
 
Join Date: Mar 2011
Posts: 12
Thanks: 2
Thanked 0 Times in 0 Posts
Default GridView.Skin message

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?
 
Old May 13th, 2015, 06:14 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

Take a look at page 233 under the four bullets. This warning is "by design" and can safely be ignored. You should also remove the code you added because you have now associated skin files with the Entity Framework which doesn't make sense.

With regards to the glyphs: did you try a hard refresh (Ctrl+F5) to force the updated stylesheet to be downloaded from the server?

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!





Similar Threads
Thread Thread Starter Forum Replies Last Post
Ch 15 GridView.skin ASP.NET warning/error AlanWheeler BOOK: Beginning ASP.NET 4.5 : in C# and VB 7 February 4th, 2014 04:49 PM
Skin Armaan BOOK: Beginning ASP.NET 4 : in C# and VB 3 April 27th, 2012 03:01 AM
Adding a skin object to a skin LSyracuse BOOK: Professional DotNetNuke Module Programming ISBN: 978-0-470-17116-5 3 November 15th, 2010 04:43 PM
Error Message Linking DDL to Gridview Cort BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 9 March 17th, 2010 02:55 AM
skin like Winamp yuhq VS.NET 2002/2003 1 January 10th, 2005 03:50 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.