 |
BOOK: Beginning ASP.NET 4.5 : in C# and VB
 | This is the forum to discuss the Wrox book Beginning ASP.NET 4.5: in C# and VB by Imar Spaanjaars; ISBN: 978-1-118-31180-6 |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the BOOK: Beginning ASP.NET 4.5 : 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
|
|
|
|
|

January 31st, 2014, 01:40 PM
|
|
Authorized User
|
|
Join Date: Nov 2013
Posts: 84
Thanks: 29
Thanked 2 Times in 2 Posts
|
|
Ch 15 GridView.skin ASP.NET warning/error
Hi Imar,
I get the following warning in GridView.skin for the 2nd Try it Out:
"<path>...\GridView.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'."
I can't seem to create a proper statement in web.config to get rid of the error. Can you help/explain?
Does this relate to being in a sub-folder off of the root? Do I need to put the requested markup in the root web.config?
The site does compile, however.
Best Regards,
Alan
|
|

January 31st, 2014, 02:04 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Hi Alan,
Take a look at page 247, directly below step 4. This is caused by the fact you linked the skin extension to the user control editor.
Cheers,
Imar
|
|

January 31st, 2014, 03:40 PM
|
|
Authorized User
|
|
Join Date: Nov 2013
Posts: 84
Thanks: 29
Thanked 2 Times in 2 Posts
|
|
Unfortunately I'm reading in Kindle which doesn't have page numbers. (I've never understood that...)
Can you give me the Chapter and which Try It Out you are referring to?
Thanks.
Best Regards,
Alan
|
|

January 31st, 2014, 07:14 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Hi Alan,
Chapter 6, just before the exercise :"Creating a Skin for the Button Control"
Quote:
|
Unfortunately I'm reading in Kindle which doesn't have page numbers. (I've never understood that...)
|
Given the fluid layout of ebooks (screen size, resolution, font size etc) a page number doesn't have any meaning. What's page 230 now can be 275 tomorrow if you increase the font size.
Cheers,
Imar
|
|

February 4th, 2014, 12:47 PM
|
|
Authorized User
|
|
Join Date: Nov 2013
Posts: 84
Thanks: 29
Thanked 2 Times in 2 Posts
|
|
Hi Imar,
I thought I would report back that I found the issue but I still don't understand it. Perhaps you can explain. Maybe I missed something in the book, although I did re-read the skins section and didn't see a comment as such.
On my system, if an <asp:GridView ... or <asp:Button ... control is on the first line of a .skin file, the error is displayed just below the line. If a blank line is the first line of the .skin file and the control is on the second or later line, the error is not displayed.
Anyway, thanks for the tip re Kindle pages. Makes sense now, although oddly every now and then I find a book w/ page numbers. I'll have to check and see if font size is disabled for them.
Best Regards,
Alan
|
|

February 4th, 2014, 01:38 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
It's just a warning that you can ignore. It just shows up when you have the skin file open and is caused by the fact that VS doesn't properly recognize the skin file. It works fine at run-time so nothing to worry about.
Cheers,
Imar
|
|

February 4th, 2014, 04:43 PM
|
|
Authorized User
|
|
Join Date: Nov 2013
Posts: 84
Thanks: 29
Thanked 2 Times in 2 Posts
|
|
Hi Imar,
Thanks for that confirmation. Unfortunately, I didn't write my post very well and the important point was buried. Sorry.
The error goes away if the control is NOT the first line of the file.
Best Regards,
Alan
|
|

February 4th, 2014, 04:49 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Yes, I got that. But the main point is: It's not an error in your site, just something that Visual Studio cannot deal with correctly, You can fully ignore the warning, regardless of when it appears or disappears....
Imar
|
|
The Following User Says Thank You to Imar For This Useful Post:
|
|
|
 |
|