Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
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
  #1 (permalink)  
Old January 31st, 2014, 01:40 PM
Authorized User
Points: 416, Level: 7
Points: 416, Level: 7 Points: 416, Level: 7 Points: 416, Level: 7
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2013
Posts: 84
Thanks: 29
Thanked 2 Times in 2 Posts
Default 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
  #2 (permalink)  
Old January 31st, 2014, 02:04 PM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

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
__________________
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!
  #3 (permalink)  
Old January 31st, 2014, 03:40 PM
Authorized User
Points: 416, Level: 7
Points: 416, Level: 7 Points: 416, Level: 7 Points: 416, Level: 7
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2013
Posts: 84
Thanks: 29
Thanked 2 Times in 2 Posts
Default

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
  #4 (permalink)  
Old January 31st, 2014, 07:14 PM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

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
__________________
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!
  #5 (permalink)  
Old February 4th, 2014, 12:47 PM
Authorized User
Points: 416, Level: 7
Points: 416, Level: 7 Points: 416, Level: 7 Points: 416, Level: 7
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2013
Posts: 84
Thanks: 29
Thanked 2 Times in 2 Posts
Default

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
  #6 (permalink)  
Old February 4th, 2014, 01:38 PM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

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
__________________
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!
  #7 (permalink)  
Old February 4th, 2014, 04:43 PM
Authorized User
Points: 416, Level: 7
Points: 416, Level: 7 Points: 416, Level: 7 Points: 416, Level: 7
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2013
Posts: 84
Thanks: 29
Thanked 2 Times in 2 Posts
Default

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
  #8 (permalink)  
Old February 4th, 2014, 04:49 PM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

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
__________________
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!
The Following User Says Thank You to Imar For This Useful Post:
AlanWheeler (February 4th, 2014)


Similar Threads
Thread Thread Starter Forum Replies Last Post
CH 15 AddBid.ASP rauf BOOK: Beginning ASP 3.0 1 November 11th, 2008 01:51 PM
Implement a Skin Feature in ASP.NET Anwar Javed ASP.NET 1.0 and 1.1 Professional 2 August 2nd, 2005 11:37 AM
Ch 15 Register.asp query daveyarwood BOOK: Beginning ASP 3.0 0 July 16th, 2005 12:52 PM
Ch 15 login.asp code sirandre007 BOOK: Beginning ASP 3.0 1 January 3rd, 2004 07:11 AM





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