 |
BOOK: Beginning ASP.NET 4 : in C# and VB
 | This is the forum to discuss the Wrox book Beginning ASP.NET 4: in C# and VB by Imar Spaanjaars; ISBN: 9780470502211 |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the BOOK: Beginning ASP.NET 4 : 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 19th, 2012, 11:36 PM
|
Authorized User
|
|
Join Date: Dec 2011
Posts: 39
Thanks: 9
Thanked 0 Times in 0 Posts
|
|
The nifty javascript for the contact form isn't working in production. : (
I decided to deploy my personal site just for fun and while the slide up seems the work the whole thing with the red expanding box and the message don't show up at all in either firefox or IE.
Any idea what could be causing this? They work just fine in the development environment.
Thanks.
|

January 20th, 2012, 11:32 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Hi there,
Did you deply the jQuery script to the server? And is the path to that file correct? Can I take a look at the live site?
Imar
|

January 20th, 2012, 05:37 PM
|
Authorized User
|
|
Join Date: Dec 2011
Posts: 39
Thanks: 9
Thanked 0 Times in 0 Posts
|
|
I don't know about deploying the javascript but I did copy over my entire website directory on to the web server.
The slide up part seems to be working but the appearing message with the expanding red box is completely nonexistent.
The url is www.dbilinski.com
It's not a huge deal as this site is just practice in case I decide to do some web programming in the future but it is odd that only half of it works on a live server.
P.S. I noticed the overall performance on the live server is pretty bad and is nothing like it is on my local server. Would caching the masterpage help at all? I tried putting update panels on most content pages but it only helped with the grids. but they still load pretty slow.
Thanks.
Last edited by IceThatJaw; January 20th, 2012 at 05:39 PM..
|

January 20th, 2012, 07:12 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
I tested out the form, and it seems the server returns an error (your error page with "I'm sorry, an error has occurred") rather than the status message.
Maybe something goes wrong when sending the e-mail? Try turning off friendly error messages, or configure the "errors by e-mail" feature as explained in the book.
>> Would caching the masterpage help at all?
No, it won't. You can't cache a master page as it should render differently for each page.
Maybe you just have a slow server? Have you talked to your host?
Imar
|

January 21st, 2012, 07:12 PM
|
Authorized User
|
|
Join Date: Dec 2011
Posts: 39
Thanks: 9
Thanked 0 Times in 0 Posts
|
|
Hey Imar,
Well the whenever I use the contact form it does indeed send me an email.
I took out the custom error stuff and what's happening now is that anytime I try to log in or create a new account I get this error.
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)
Am I supposed to enable something in my web-config so that the aspnet.mdf file in my app_data can be used on the web server?
|

January 22nd, 2012, 05:44 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Hi there,
Quote:
Am I supposed to enable something in my web-config so that the aspnet.mdf file in my app_data can be used on the web server?
|
It depends. If you control the server and it's running SQL Server Express with an instance name of SqlExpress, it should work. However, if you're hosting your site with a hosting company, they typically don't support Express and you need to modify your connection string to match their setup. Chapter 19 and Appendix B provide all the details.
Cheers,
Imar
|
Similar Threads
|
Thread |
Thread Starter |
Forum |
Replies |
Last Post |
I need help with contact form |
iorgusu |
Need help with your homework? |
1 |
September 27th, 2009 01:56 AM |
Contact form? |
philthy |
BOOK: ASP.NET MVC Website Programming Problem Design Solution ISBN: 9780470410950 |
1 |
July 23rd, 2009 05:14 PM |
My contact form stopped working..again. |
Will |
BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 |
18 |
March 21st, 2009 01:47 PM |
contact form |
Will |
BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 |
6 |
February 24th, 2009 01:42 PM |
Contact Form |
myself |
Classic ASP Basics |
1 |
November 18th, 2006 11:16 AM |
|
 |
|