Hi
Has anyone come across the following error when trying to login with a non-existent user? We recently moved to .NET 3.5 but I can't be sure this has anything to do with it as a reference copy we have running on 2.0 throws the same message. It does strike me as odd though that an extremely frequent error, such as logging in to a non-existent user, doesn't have a 'prettier' error message...
"Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500"
Any advice would be greatly appreciated.
Many thanks
Benjamin
Bad error if user doesn't exist in ac_Users...?
Re: Bad error if user doesn't exist in ac_Users...?
Give a try by adding this code in your page
If your page is Login.aspx then it would be like this one
Code: Select all
ValidateRequest="true"
Code: Select all
<%@ Page Language="C#" MasterPageFile="~/Layouts/Scriptlet.master" Inherits="CommerceBuilder.Web.UI.AbleCommercePage" Title="Login or Register" ValidateRequest="true" %>
hope this helps!
__________________
s_ismail
AbleCommerce Customization
Free Plugins and Add-Ons
AbleCommerce Plugins and Add-Ons
Plugables Blog
__________________
s_ismail
AbleCommerce Customization
Free Plugins and Add-Ons
AbleCommerce Plugins and Add-Ons
Plugables Blog
Re: Bad error if user doesn't exist in ac_Users...?
Can you have a look at your error log right after the occurrence of this error and see if there are some more details about issue?b3n wrote:Hi
Has anyone come across the following error when trying to login with a non-existent user? We recently moved to .NET 3.5 but I can't be sure this has anything to do with it as a reference copy we have running on 2.0 throws the same message. It does strike me as odd though that an extremely frequent error, such as logging in to a non-existent user, doesn't have a 'prettier' error message...
"Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500"
Any advice would be greatly appreciated.
Many thanks
Benjamin
- jmestep
- AbleCommerce Angel
- Posts: 8164
- Joined: Sun Feb 29, 2004 8:04 pm
- Location: Dayton, OH
- Contact:
Re: Bad error if user doesn't exist in ac_Users...?
We have seen sites getting a 500 error from Paypal now when it hadn't happened before and nothing in the site code has changed.
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx
Re: Bad error if user doesn't exist in ac_Users...?
Sorry for digging up an old thread but I think this is related...
So I took care of the 'User doesn't exist' error and it turns out it was a result of the combination of server software we were using and the latest version of Able and switching to .NET 3.5. I'm pretty confident that this is the case as we've now discovered the exact same 500 error on a custom bit of code elsewhere. In our shop we carry 'conference' products and due to the way our back-office systems work we can only process one booking per customer at once. To prevent people adding more than one conference to their basket at once a simple check is in place when they hit 'Add to Basket' that scans the basket for existing items and checks the product category of each; if the category matches 'Conferences' then the new conference is not allowed into the basket.
Seems simple enough? Unfortunately this is now throwing the same 500 error as the previous bug, but only when the user has nothing currently in their basket... do we think my assumption about empty result sets is correct? The way I see it if the query that says 'SELECT * FROM BasketItems WHERE id = <ID>' returns nothing, we're getting the 500 error, therefore something has changed in the way SQL is being handled.
I can also confirm this due to my local test shop not suffering this error, while running from the same code. The only difference is we've got MSSQL 2008 & IIS 7 here, and the live server is running MSSQL 2005 & IIS 6 (both are running on .NET 3.5).
I'm going to look at modifying the check code now, but hopefully this helps someone else who's seeing odd errors after an update.
So I took care of the 'User doesn't exist' error and it turns out it was a result of the combination of server software we were using and the latest version of Able and switching to .NET 3.5. I'm pretty confident that this is the case as we've now discovered the exact same 500 error on a custom bit of code elsewhere. In our shop we carry 'conference' products and due to the way our back-office systems work we can only process one booking per customer at once. To prevent people adding more than one conference to their basket at once a simple check is in place when they hit 'Add to Basket' that scans the basket for existing items and checks the product category of each; if the category matches 'Conferences' then the new conference is not allowed into the basket.
Seems simple enough? Unfortunately this is now throwing the same 500 error as the previous bug, but only when the user has nothing currently in their basket... do we think my assumption about empty result sets is correct? The way I see it if the query that says 'SELECT * FROM BasketItems WHERE id = <ID>' returns nothing, we're getting the 500 error, therefore something has changed in the way SQL is being handled.
I can also confirm this due to my local test shop not suffering this error, while running from the same code. The only difference is we've got MSSQL 2008 & IIS 7 here, and the live server is running MSSQL 2005 & IIS 6 (both are running on .NET 3.5).
I'm going to look at modifying the check code now, but hopefully this helps someone else who's seeing odd errors after an update.