Wrox Programmer Forums
|
BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6
This is the forum to discuss the Wrox book ASP.NET 2.0 Instant Results by Imar Spaanjaars, Paul Wilton, Shawn Livermore; ISBN: 9780471749516
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 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
 
Old January 15th, 2008, 10:32 AM
Registered User
 
Join Date: Jan 2008
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default Wrox FileShare generates blank email to recepient

Hi,

Can you plz help me?
Im trying to solve this from many days but couldnt find solution.
In wrox FileShare project Resource and Email table is always empty but Contact table is working with fromContactEmail and toContactEmail values. Finally a blank email is send to Recepient without any emailBody.Just like email is blank.
Can you plz tell me what is causing the error???
Its very urgent plz
If any one done this project plz help me

Thank you in advance
 
Old January 15th, 2008, 02:24 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

What happens when you debug the code and set a breakpoint right before the mail gets sent? What do you / how's the mail message constructed?

And is this with the standard solution that comes with the book? Do you have the book and did you follow the installation instructions?

Imar
---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.
 
Old January 15th, 2008, 04:20 PM
Registered User
 
Join Date: Jan 2008
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank you Imar that was quick reply.

Yes I debug the code by setting breakpoint its always shows emailBody="" ResourceID = 0 and Email table dont show any content in text which is NULL. I solved with Resource table , Resource table showing values now.But Email table is blank which is generating blank mail to recepient.

 I made some changes to code by removing Login controls instead of using membership(removed ASPNETDB)and created custom login with Username and pwd.Does this made any changes?

I followed all installation instructions to setup project.

Thank you
 
Old January 15th, 2008, 04:23 PM
Registered User
 
Join Date: Jan 2008
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank you Imar that was quick reply.

Yes I debug the code by setting breakpoint its always shows emailBody="" ResourceID = 0 and Email table dont show any content in text which is NULL. I solved with Resource table , Resource table showing values now.But Email table is blank which is generating blank mail to recepient.

 I made some changes to code by removing Login controls instead of using membership(removed ASPNETDB)and created custom login with Username and pwd.Does this made any changes?

I followed all installation instructions to setup project.
Im able to send mail to recepient but always blank which means emailBody is Empty

Thank you
 
Old January 15th, 2008, 07:43 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi jrweb,

emailBody is built up in a couple of different places in the code, so I don't know what location you are talking about exactly.

However, it doesn't get a value just like that; it gets a value from a database or from other variables. So, you need to look into that. Follow the code that builds up emailBody and see where it gets its data. Maybe the SqlDataReader doesn't return a record for some reason.

I think the root cause is the empty Email table....

Imar
---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.
 
Old February 12th, 2008, 12:02 PM
Registered User
 
Join Date: Jan 2008
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank you Imar. I solved it.
Its working great.

 
Old February 12th, 2008, 01:17 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Glad it's working now.
For the benefit of the archive of this forum, would you mind sharing *how* you solved it? That might help a fellow programmer in the future...

Imar
---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.
 
Old February 18th, 2008, 09:34 AM
Registered User
 
Join Date: Jan 2008
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Its very simple mistake.
In table Email 'text' column is Empty which caused to generate Blank email.

But when i try to send files upto 1GB I'm getting the following error.It works great for small files when coming to big files im getting error.

Error:<br/>
Maximum request length exceeded.

I tried by adding in web.confif the following code:

<system.web>
<httpRuntime maxRequestLength="1097152" executionTimeout="18000"/>


even then error occurs which is:

The value for the property 'maxRequestLength' is not valid. The error is: The value must be inside the range 0-2097151.


Can you please help how to solve it.

Thank you

 
Old February 18th, 2008, 02:58 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Where and when do you get that error? I can successfully set it to values up to 2097151 as the error suggests.

Personally, I would look into other means to process large files like that (FTP for example). Dealing with files this big in a web site is likely to get you into trouble....

Imar


---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004





Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I change how VS2008 generates certain items? chobo2 C# 2008 aka C# 3.0 1 October 8th, 2008 04:16 PM
SProc generates different results same data David_0223 SQL Server 2005 5 June 16th, 2008 05:52 PM
Wrox fileshare - resourceID link b67 BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 5 May 7th, 2007 04:18 PM
EMail (CDONTS) File Attachment is blank Jorge Classic ASP Components 1 March 11th, 2004 03:54 PM
DLL generates Database read-only error Howard Classic ASP Databases 0 July 19th, 2003 08:18 AM





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