Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 4 > BOOK: Beginning ASP.NET 4 : in C# and VB
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old October 23rd, 2013, 03:15 PM
Authorized User
Points: 168, Level: 3
Points: 168, Level: 3 Points: 168, Level: 3 Points: 168, Level: 3
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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>
Reply With Quote
  #2 (permalink)  
Old October 23rd, 2013, 04:57 PM
Imar's Avatar
Wrox Author
Points: 71,164, Level: 100
Points: 71,164, Level: 100 Points: 71,164, Level: 100 Points: 71,164, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 16,960
Thanks: 79
Thanked 1,559 Times in 1,536 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!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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 02: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 05:17 AM
Skin Custom Control vishwjeet ASP.NET 2.0 Basics 0 June 23rd, 2007 03:10 PM
Convert "String" type to "Control" type ? kishore_peddi C# 4 January 11th, 2006 01:21 PM



All times are GMT -4. The time now is 06:01 PM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.