Updated Error in 7.0.2-Is this correct

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
Carolharry
Commander (CMDR)
Commander (CMDR)
Posts: 121
Joined: Wed Dec 17, 2008 9:13 am

Updated Error in 7.0.2-Is this correct

Post by Carolharry » Tue Feb 17, 2009 12:00 pm

Hi,

I updated existing version of ablecommerce with 7.0.2. When Compiling it gave me error saying no CreateUser overloaded methods accepts only 7 parameters.
UserDataSource.CreateUser(Email.Text, Password.Text, string.Empty, string.Empty, true, 0, out status);

Changed to

UserDataSource.CreateUser(Email.Text,Email.Text, Password.Text, string.Empty, string.Empty, true, 0, out status);

It got compiled and working well. Is this change acceptable.
Please let me know.

Thanks,
Carol

User avatar
sohaib
Developer
Developer
Posts: 1079
Joined: Fri Jan 23, 2004 1:38 am

Re: Updated Error in 7.0.2-Is this correct

Post by sohaib » Tue Feb 17, 2009 12:10 pm

Yes it seems all right.
Where were you using this code?

If this was custom code modified from an existing file then have a look at what changed in that file in 7.0.2 by comparing the new file to the original file.

Carolharry
Commander (CMDR)
Commander (CMDR)
Posts: 121
Joined: Wed Dec 17, 2008 9:13 am

Re: Updated Error in 7.0.2-Is this correct

Post by Carolharry » Tue Feb 17, 2009 12:17 pm

Code is in Admin\people\users\adduserdialog.ascx.

On our server it works right without any change.
On developer computer when I compile same files by copying from server, I got compilation error in Visual Studio.
Not able to figure out how it's working on the server and not on my local computer.
Intellisense in VisualStudio shows 8 parameters for CreateUser method.
I checked all dll dates and they are 02/10/2009. There is no change in my server files and my local pc files.


Thank you,
Carol.

User avatar
sohaib
Developer
Developer
Posts: 1079
Joined: Fri Jan 23, 2004 1:38 am

Re: Updated Error in 7.0.2-Is this correct

Post by sohaib » Tue Feb 17, 2009 12:49 pm

Well there are different overloaded version of Create user... I don't know why you are getting an error on your local PC.

Code: Select all

public static User CreateUser(string email)

Code: Select all

public static User CreateUser(string email, string password)

Code: Select all

public static User CreateUser(string email, string password, string passwordQuestion, string passwordAnswer)

Code: Select all

public static User CreateUser(string username, string email, string password, string passwordQuestion, string passwordAnswer)

Code: Select all

public static User CreateUser(string username, string email, string password, string passwordQuestion, string passwordAnswer, bool isApproved, int affiliateId, out System.Web.Security.MembershipCreateStatus status)

Carolharry
Commander (CMDR)
Commander (CMDR)
Posts: 121
Joined: Wed Dec 17, 2008 9:13 am

Re: Updated Error in 7.0.2-Is this correct

Post by Carolharry » Tue Feb 17, 2009 1:03 pm

Can you please send admin\people\users\adduserdialog.ascx file from 7.0.2 version.

The change I made is working fine. Just to be sure I want to replace my file with the one you are having.

Thanks alot,
Carol

User avatar
sohaib
Developer
Developer
Posts: 1079
Joined: Fri Jan 23, 2004 1:38 am

Re: Updated Error in 7.0.2-Is this correct

Post by sohaib » Tue Feb 17, 2009 1:10 pm

Tell you what. There is no 'admin\people\users\adduserdialog.ascx' file in 7.0.2.
This file is not used anymore. It has been removed.

Carolharry
Commander (CMDR)
Commander (CMDR)
Posts: 121
Joined: Wed Dec 17, 2008 9:13 am

Re: Updated Error in 7.0.2-Is this correct

Post by Carolharry » Tue Feb 17, 2009 1:20 pm

You are right.

I have replaced files from our original 7.1 version file with 7.0.2 files. With this new files where added, existing files where overwritten and
files which doesn't exist in 7.0.2 but exists in 7.1 are still there(eg:adduserdialog.ascx). That's why it was happening like that.

It's solved.

Thank you.
Carol

Carolharry
Commander (CMDR)
Commander (CMDR)
Posts: 121
Joined: Wed Dec 17, 2008 9:13 am

Re: Updated Error in 7.0.2-Is this correct

Post by Carolharry » Tue Feb 17, 2009 1:35 pm

Hi sohaib,

Can you guys give list of files which are no longer used in 7.0.2 but are still in 7.1. That would help.

Thank you,
Carol

Carolharry
Commander (CMDR)
Commander (CMDR)
Posts: 121
Joined: Wed Dec 17, 2008 9:13 am

Re: Updated Error in 7.0.2-Is this correct

Post by Carolharry » Fri Mar 13, 2009 11:09 am

Hi Admin,

I request you guys to please give us list of files which are no longer used in 7.2 but where used in 7.1 . We updated AbleCommerce from 7.1 to 7.2 During upgrade process like in the forum mentioned old files which are not used in 7.2 are still there in our folder. We might end up working on the file which is not used and wonder why our coding changes are not showing up.

Any quick help will be appreciated.

Thanks,
Carol

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Updated Error in 7.0.2-Is this correct

Post by mazhar » Fri Mar 13, 2009 12:30 pm

Following files/folders are removed from 7.1 to 7.2

Code: Select all

Website\Admin\DigitalGoods\AddDigitalGood.ascx
Website\Admin\DigitalGoods\AddDigitalGood.ascx.cs
Website\Admin\Orders\Payments\AVSCodes.aspx
Website\Admin\Orders\Payments\CVVCodes.aspx
Website\Admin\People\Users\AddUserDialog.ascx
Website\Admin\Products\Variants\Choices.aspx
Website\Admin\Products\Variants\EditChoices.aspx
Website\Admin\Products\Variants\EditOptions.aspx
Website\Admin\Shipping\Providers\AustraliaPost\Activate.aspx
Website\Admin\Shipping\Providers\DHLInternational\BetaProgram.aspx
Website\Admin\Shipping\Providers\DHLInternational\BetaProgram.aspx.cs
Website\Admin\Store\EmailTemplates\GeneralEmailSettingsDialog.ascx
Website\Admin\Store\EmailTemplates\SmtpSettingsDialog.ascx
Website\Bin\edtFTPnet.dll
Website\ValidationSummaryOnSubmit.js
Website\FCKeditor\editor\_source

Carolharry
Commander (CMDR)
Commander (CMDR)
Posts: 121
Joined: Wed Dec 17, 2008 9:13 am

Re: Updated Error in 7.0.2-Is this correct

Post by Carolharry » Fri Mar 13, 2009 2:20 pm

Thanks a lot!

Post Reply