BOOK: ASP.NET 3.5 Enterprise Application Development with Visual Studio 2008: Problem Design Solutio
This is the forum to discuss the Wrox book ASP.NET 3.5 Enterprise Application Development with Visual Studio 2008: Problem Design Solution by Vincent Varallo; ISBN: 9780470396865
You are currently viewing the BOOK: ASP.NET 3.5 Enterprise Application Development with Visual Studio 2008: Problem Design Solutio section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of computer programmers 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 programmers’ questions, win occasional prizes given to our best members, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
I have made it through to Chapter 6 a little scarred but still plodding on. I get the above error when compiling and it relates to ErrorPage.aspx.cs and states that in line 31 'ErrorPage.CapabilityNames()': return type must be 'string[]' to match overridden member 'BasePage.CapabilityNames()'
If I remove the [] after string on line 51 of BasePage.cs, public abstract string[] CapabilityNames();
I get that it cannot convert type 'char' to 'string'
All the other projects build ok it;s just the UI I am having issues with at the moment.
Help greatly received...I must finsih this book/framework soon.
Take a look at what the method code is returning - it should be returning a string [], otherwise you'll continue to get errors compiling.
In other words, if your method code ends with return xyz, and xyz is anything other than a string [], it won't work. As the compiler said, it has to be string [] to match the method it's overriding.
Tim
The Following User Says Thank You to Corsair For This Useful Post: