Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 4 > BOOK: Beginning ASP.NET 4 : in C# and VB
|
BOOK: Beginning ASP.NET 4 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4: in C# and VB by Imar Spaanjaars; ISBN: 9780470502211
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4 : 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 October 23rd, 2013, 02:15 PM
Authorized User
 
Join Date: Oct 2009
Posts: 40
Thanks: 4
Thanked 0 Times in 0 Posts
Default ID property of a control type cannot be applied through a control skin

Hi Imar. Couple of warnings and errors that i cant seem to get past. Im at the end of Chapter 6.

Error 3 The 'ID' property of a control type System.Web.UI.WebControls.Button cannot be applied through a control skin. c:\BegASPNET\Site\App_Themes\Monochrome\Button.ski n 1
Error 4 The 'ID' property of a control type System.Web.UI.WebControls.Button cannot be applied through a control skin. c:\BegASPNET\Site\App_Themes\Monochrome\Button.ski n 2



Warning 1 C:\Documents and Settings\123163\Desktop\Work Books\Beginning ASP.net in C# (Code)\Source\Chapter 06\App_Themes\Monochrome\Button.skin: ASP.NET runtime error: There is no build provider registered for the extension '.skin'. You can register one in the <compilation><buildProviders> section in machine.config or web.config. Make sure is has a BuildProviderAppliesToAttribute attribute which includes the value 'Web' or 'All'. C:\Documents and Settings\123163\Desktop\Work Books\Beginning ASP.net in C# (Code)\Source\Chapter 06\App_Themes\Monochrome\Button.skin 1 1 Miscellaneous Files

I've checked online and attempted the following fix to no avail. Added this code to web.config:
Code:
<buildProviders>

<add extension=".skin" type="System.Web.Compilation.PageBuildProvider"/>

</buildProviders>
 
Old October 23rd, 2013, 03:57 PM
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,

For the erorr message take a look at page 223, second paragraph:

Quote:
First of all, the control in the skin file cannot have an ID attribute.
and page 235 start of the TIO:

Quote:
Be aware that if you copy and paste a skin definition, VWD automatically adds an ID attribute (that is, if you connected skin files to the User Control Editor as described earlier). This ID is not allowed, so you need to remove it.
For the warning, check out page 234, below point 4:
Quote:
With this setting on, you may get a warning in the Error List about build providers when you have a skin file open. You can safely ignore this error, because skins work fine at runtime even with these settings in VWD.
Hope this helps,

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
Chapter 6: Creating a Skin for the Button Control rookie BOOK: Beginning ASP.NET 4 : in C# and VB 6 August 18th, 2012 01:43 AM
Creating a Skin for the Button Control, Ch6, Skins ??? cjdphlx1 BOOK: Beginning ASP.NET 4 : in C# and VB 2 April 23rd, 2011 04:17 AM
Skin Custom Control vishwjeet ASP.NET 2.0 Basics 0 June 23rd, 2007 02:10 PM
Convert "String" type to "Control" type ? kishore_peddi C# 4 January 11th, 2006 01:21 PM





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