Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspdotnet_website_programming thread: ThePhile VB.NET Code Available!


Message #1 by David Barnes <DavidB@w...> on Mon, 16 Dec 2002 11:49:13 -0000
Hi
 
If you're working on translating the code from ASP.NET Website Programming
to VB.NET, you can stop!
 
We've been working on a VB.NET edition of the book, which is now finished.
I've put the (compile) code online at:
 
http://www.wrox.com/dynamic/books/download.aspx?isbn=1861006934
<http://www.wrox.com/dynamic/books/download.aspx?isbn=1861006934>
<ftp://ftp.wrox.com/download/code/Professional/ThePhileVB.zip> 
 
Just scroll down the page if you don't want to register.
 
The VB.NET edition of the book itself should be out just before Christmas:
 
http://www.amazon.com/exec/obidos/ASIN/1861008163
<http://www.amazon.com/exec/obidos/ASIN/1861008163> 
 
... but the code is obviously available to anybody who wants it.
 
Cheers
 
David Barnes
Editor, Wrox Press
 
-- 
So You'd Like To...
Begin
<http://www.amazon.com/exec/obidos/tg/guides/guide-display/-/29Y4KI41ESUSB/1
02-8074949-6987353> .NET Programming?  Program
<http://www.amazon.com/exec/obidos/tg/guides/guide-display/-/YAEJ7I55O1ED/10
2-8074949-6987353> ASP.NET Websites? Write
<http://www.amazon.com/exec/obidos/tg/guides/guide-display/-/Z1VEY1B8Q0CC/10
2-8074949-6987353> ADO.NET Database Software?
 
Look at
<http://www.amazon.com/exec/obidos/tg/listmania/list-browse/-/2WAK89OYFI0PX/
102-8074949-6987353> books I've worked on
 

Message #2 by "Martin Schmalenbach" <martin.schmalenbach@n...> on Sun, 29 Dec 2002 19:59:09
Is it me??!!

I have the C# version of the book (bought in error - waiting now for the 
VB version) - I have downloaded the code, and after some serious messing 
about with the files in NOTEPAD to get the project/solution files to point 
to the right place (C:\wrox\ThePhile, where I put the downloaded, 
extracted files), I now get the following (oh yeah, and I DO have the 
database ThePhile running on my SQL Server too, with the right password 
(none) for user 'sa')

Any ideas (and yes, I am VERY new to VS.NET, am in the process of moving 
(trying!) to move from standard ASP and VBSCRIPT

Many thanks

Martin Schmalenbach

Error

---------------------------------------------------------------------------
-----
An unexpected error has occurred on this page.The system administrators 
have been notified.

The error occurred in:
http://localhost/ThePhile/Default.aspx

Error Message:
There is no row at position 0.

Error Stack:
System.IndexOutOfRangeException: There is no row at position 0.
   at System.Data.DataRowCollection.get_Item(Int32 index)
   at Wrox.WebModules.AdsManager.Data.Advertisement.RetrieveAd(Int32 
advertisementId) in 
C:\wrox\ThePhile\WebModules\AdsManager\AdsManager.Data\Advertisement.vb:lin
e 37
   at Wrox.WebModules.AdsManager.Business.Advertisement..ctor(Int32 
advertId) in 
C:\wrox\ThePhile\WebModules\AdsManager\AdsManager.Business\Advertisement.vb
:line 47
   at Wrox.ThePhile.Web.Controls.User.SiteFooter.Rotator_AdCreated(Object 
sender, AdCreatedEventArgs e) in 
C:\wrox\ThePhile\Controls\User\SiteFooter.ascx.vb:line 67
   at System.Web.UI.WebControls.AdRotator.OnAdCreated(AdCreatedEventArgs e)
   at System.Web.UI.WebControls.AdRotator.OnPreRender(EventArgs e)
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Page.ProcessRequestMain()


> Hi
 
If you're working on translating the code from ASP.NET Website Programming
to VB.NET, you can stop!
 
We've been working on a VB.NET edition of the book, which is now finished.
I've put the (compile) code online at:
 
http://www.wrox.com/dynamic/books/download.aspx?isbn=1861006934
<http://www.wrox.com/dynamic/books/download.aspx?isbn=1861006934>
<ftp://ftp.wrox.com/download/code/Professional/ThePhileVB.zip> 
 
Just scroll down the page if you don't want to register.
 
The VB.NET edition of the book itself should be out just before Christmas:
 
http://www.amazon.com/exec/obidos/ASIN/1861008163
<http://www.amazon.com/exec/obidos/ASIN/1861008163> 
 
... but the code is obviously available to anybody who wants it.
 
Cheers
 
David Barnes
Editor, Wrox Press
 
-- 
So You'd Like To...
Begin
<http://www.amazon.com/exec/obidos/tg/guides/guide-display/-
/29Y4KI41ESUSB/1
02-8074949-6987353> .NET Programming?  Program
<http://www.amazon.com/exec/obidos/tg/guides/guide-display/-
/YAEJ7I55O1ED/10
2-8074949-6987353> ASP.NET Websites? Write
<http://www.amazon.com/exec/obidos/tg/guides/guide-display/-
/Z1VEY1B8Q0CC/10
2-8074949-6987353> ADO.NET Database Software?
 
Look at
<http://www.amazon.com/exec/obidos/tg/listmania/list-browse/-
/2WAK89OYFI0PX/
102-8074949-6987353> books I've worked on
 

Message #3 by David Barnes <DavidB@w...> on Mon, 30 Dec 2002 15:09:42 -0000
Hi Martin

I don't know if it's you or not. :) However my colleague and arch nemesis
Dan Kent has added some instructions to the VB.NET version now, and may have
made a few changes. You can pick it up from the VB.NET edition's download
page:

http://www.wrox.com/dynamic/books/download.aspx?isbn=1861008163

This may help.

It looks to me (and I don't know exactly how this has happened) as if the
database you're using doesn't have the rows required for the ad rotator to
function (if there are no ads in the database, it seems that the ad rotator
raises an exception).

Dan's away today what with Christmas, New Year, and so on... but I've copied
him in and he might be able to offer you some more advice. He's had far more
to do with the VB.NET code than I have.

Please let me know if this makes any difference.

Dave

> -----Original Message-----
> From: Martin Schmalenbach [mailto:martin.schmalenbach@n...]
> Sent: Sunday, December 29, 2002 7:59 PM
> To: Website Programming with ASP.NET
> Subject: [aspdotnet_website_programming] Re: ThePhile VB.NET Code
> Available!
> 
> 
> Is it me??!!
> 
> I have the C# version of the book (bought in error - waiting 
> now for the 
> VB version) - I have downloaded the code, and after some 
> serious messing 
> about with the files in NOTEPAD to get the project/solution 
> files to point 
> to the right place (C:\wrox\ThePhile, where I put the downloaded, 
> extracted files), I now get the following (oh yeah, and I DO have the 
> database ThePhile running on my SQL Server too, with the 
> right password 
> (none) for user 'sa')
> 
> Any ideas (and yes, I am VERY new to VS.NET, am in the 
> process of moving 
> (trying!) to move from standard ASP and VBSCRIPT
> 
> Many thanks
> 
> Martin Schmalenbach
> 
> Error
> 
> --------------------------------------------------------------
> -------------
> -----
> An unexpected error has occurred on this page.The system 
> administrators 
> have been notified.
> 
> The error occurred in:
> http://localhost/ThePhile/Default.aspx
> 
> Error Message:
> There is no row at position 0.
> 
> Error Stack:
> System.IndexOutOfRangeException: There is no row at position 0.
>    at System.Data.DataRowCollection.get_Item(Int32 index)
>    at Wrox.WebModules.AdsManager.Data.Advertisement.RetrieveAd(Int32 
> advertisementId) in 
> C:\wrox\ThePhile\WebModules\AdsManager\AdsManager.Data\Adverti
> sement.vb:lin
> e 37
>    at Wrox.WebModules.AdsManager.Business.Advertisement..ctor(Int32 
> advertId) in 
> C:\wrox\ThePhile\WebModules\AdsManager\AdsManager.Business\Adv
> ertisement.vb
> :line 47
>    at 
> Wrox.ThePhile.Web.Controls.User.SiteFooter.Rotator_AdCreated(Object 
> sender, AdCreatedEventArgs e) in 
> C:\wrox\ThePhile\Controls\User\SiteFooter.ascx.vb:line 67
>    at 
> System.Web.UI.WebControls.AdRotator.OnAdCreated(AdCreatedEventArgs e)
>    at System.Web.UI.WebControls.AdRotator.OnPreRender(EventArgs e)
>    at System.Web.UI.Control.PreRenderRecursiveInternal()
>    at System.Web.UI.Control.PreRenderRecursiveInternal()
>    at System.Web.UI.Control.PreRenderRecursiveInternal()
>    at System.Web.UI.Control.PreRenderRecursiveInternal()
>    at System.Web.UI.Page.ProcessRequestMain()
> 
> 
> > Hi
>  
> If you're working on translating the code from ASP.NET 
> Website Programming
> to VB.NET, you can stop!
>  
> We've been working on a VB.NET edition of the book, which is 
> now finished.
> I've put the (compile) code online at:
>  
> http://www.wrox.com/dynamic/books/download.aspx?isbn=1861006934
> <http://www.wrox.com/dynamic/books/download.aspx?isbn=1861006934>
> <ftp://ftp.wrox.com/download/code/Professional/ThePhileVB.zip> 
>  
> Just scroll down the page if you don't want to register.
>  
> The VB.NET edition of the book itself should be out just 
> before Christmas:
>  
> http://www.amazon.com/exec/obidos/ASIN/1861008163
> <http://www.amazon.com/exec/obidos/ASIN/1861008163> 
>  
> ... but the code is obviously available to anybody who wants it.
>  
> Cheers
>  
> David Barnes
> Editor, Wrox Press
>  
> -- 
> So You'd Like To...
> Begin
> <http://www.amazon.com/exec/obidos/tg/guides/guide-display/-
> /29Y4KI41ESUSB/1
> 02-8074949-6987353> .NET Programming?  Program
> <http://www.amazon.com/exec/obidos/tg/guides/guide-display/-
> /YAEJ7I55O1ED/10
> 2-8074949-6987353> ASP.NET Websites? Write
> <http://www.amazon.com/exec/obidos/tg/guides/guide-display/-
> /Z1VEY1B8Q0CC/10
> 2-8074949-6987353> ADO.NET Database Software?
>  
> Look at
> <http://www.amazon.com/exec/obidos/tg/listmania/list-browse/-
> /2WAK89OYFI0PX/
> 102-8074949-6987353> books I've worked on
>  
> 
> ---
> Professional Design Patterns in VB.NET: 
> Building Adaptable Applications
> 
> Want to know how design patterns bring reusable 
> design and adaptabilty to your applications? How 
> to recognize the need for a design pattern 
> solution? How to select, design, and implement 
> the right patterns? How parts of the .NET Framework 
> (like the .NET Data Providers and .NET Remoting) 
> take advantage of design patterns? This book 
> presents a practical approach to using design 
> patterns in VB.NET, by focusing on the relevance 
> of design patterns in the different tiers of a 
> distributed n-tier architecture. 
> 
> http://www.wrox.com/books/1861006985.htm
> 
> 
Message #4 by "Byron Leoppky" <bleoppky@a...> on Mon, 30 Dec 2002 18:53:25
This error is due to a couple of missing advertisements in the database. 
If you remove the XML for ads 6 and 7 from 
\Wrox\ThePhileVB\Config\AdRotator.Xml the error will go away. The contents 
of the database have changed since the C# version but the changes are not 
structural.

 

> Is it me??!!

> I have the C# version of the book (bought in error - waiting now for the 
V> B version) - I have downloaded the code, and after some serious messing 
a> bout with the files in NOTEPAD to get the project/solution files to 
point 
t> o the right place (C:\wrox\ThePhile, where I put the downloaded, 
e> xtracted files), I now get the following (oh yeah, and I DO have the 
d> atabase ThePhile running on my SQL Server too, with the right password 
(> none) for user 'sa')

> Any ideas (and yes, I am VERY new to VS.NET, am in the process of moving 
(> trying!) to move from standard ASP and VBSCRIPT

> Many thanks

> Martin Schmalenbach

> Error

> -------------------------------------------------------------------------
--
-> ----
A> n unexpected error has occurred on this page.The system administrators 
h> ave been notified.

> The error occurred in:
h> ttp://localhost/ThePhile/Default.aspx

> Error Message:
T> here is no row at position 0.

> Error Stack:
S> ystem.IndexOutOfRangeException: There is no row at position 0.
 >   at System.Data.DataRowCollection.get_Item(Int32 index)
 >   at Wrox.WebModules.AdsManager.Data.Advertisement.RetrieveAd(Int32 
a> dvertisementId) in 
C> :\wrox\ThePhile\WebModules\AdsManager\AdsManager.Data\Advertisement.vb:l
in
e>  37
 >   at Wrox.WebModules.AdsManager.Business.Advertisement..ctor(Int32 
a> dvertId) in 
C> :\wrox\ThePhile\WebModules\AdsManager\AdsManager.Business\Advertisement.
vb
:> line 47
 >   at Wrox.ThePhile.Web.Controls.User.SiteFooter.Rotator_AdCreated
(Object 
s> ender, AdCreatedEventArgs e) in 
C> :\wrox\ThePhile\Controls\User\SiteFooter.ascx.vb:line 67
 >   at System.Web.UI.WebControls.AdRotator.OnAdCreated(AdCreatedEventArgs 
e)
 >   at System.Web.UI.WebControls.AdRotator.OnPreRender(EventArgs e)
 >   at System.Web.UI.Control.PreRenderRecursiveInternal()
 >   at System.Web.UI.Control.PreRenderRecursiveInternal()
 >   at System.Web.UI.Control.PreRenderRecursiveInternal()
 >   at System.Web.UI.Control.PreRenderRecursiveInternal()
 >   at System.Web.UI.Page.ProcessRequestMain()

> 
>>  Hi
 > 
I> f you're working on translating the code from ASP.NET Website 
Programming
t> o VB.NET, you can stop!
 > 
W> e've been working on a VB.NET edition of the book, which is now 
finished.
I> 've put the (compile) code online at:
 > 
h> ttp://www.wrox.com/dynamic/books/download.aspx?isbn=1861006934
<> http://www.wrox.com/dynamic/books/download.aspx?isbn=1861006934>
<> ftp://ftp.wrox.com/download/code/Professional/ThePhileVB.zip> 
 > 
J> ust scroll down the page if you don't want to register.
 > 
T> he VB.NET edition of the book itself should be out just before 
Christmas:
 > 
h> ttp://www.amazon.com/exec/obidos/ASIN/1861008163
<> http://www.amazon.com/exec/obidos/ASIN/1861008163> 
 > 
.> .. but the code is obviously available to anybody who wants it.
 > 
C> heers
 > 
D> avid Barnes
E> ditor, Wrox Press
 > 
-> - 
S> o You'd Like To...
B> egin
<> http://www.amazon.com/exec/obidos/tg/guides/guide-display/-
/> 29Y4KI41ESUSB/1
0> 2-8074949-6987353> .NET Programming?  Program
<> http://www.amazon.com/exec/obidos/tg/guides/guide-display/-
/> YAEJ7I55O1ED/10
2> -8074949-6987353> ASP.NET Websites? Write
<> http://www.amazon.com/exec/obidos/tg/guides/guide-display/-
/> Z1VEY1B8Q0CC/10
2> -8074949-6987353> ADO.NET Database Software?
 > 
L> ook at
<> http://www.amazon.com/exec/obidos/tg/listmania/list-browse/-
/> 2WAK89OYFI0PX/
1> 02-8074949-6987353> books I've worked on
 > 


  Return to Index