Setup failed: Value cannot be null. Parameter name: hashAlgorithm

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
6 anos atrás
I've tried multiple versions of the 4.0 beta, and now the release, with the same results.  On install, I get the following error:

Setup failed: Value cannot be null. Parameter name: hashAlgorithm

I've tried everything imaginable on the server to avoid this error.  Can anyone help?
6 anos atrás
I've got the same error on Installing 4.0 to server (cannot be replicated on local).

It looks Admin Password not passed to server, web security issue?

It could be resolved if running Installing on my Mobile phone browser when testing 4.0 BETA, however mobile phone failed too if runing 4.0 today.
6 anos atrás
My "resolution":
1. Installing 4.0 on local But connecting to server database, it's successful, so the server database was built.
2. Copy the local setting dataSettings.json to server
6 anos atrás
That ended up being my solution as well.  I’m not sure what’s going on, but it seems to be working now, doing it that way.
6 anos atrás
I also had this issue. I restarted application using the restart button at the bottom of the install page and now it gives me "Setup failed:sequence contains more than one". I have spending half of a day try to deploy v4 onto Azure App Service.

Would you please help me out here? feel so frustrated.

cheers,
6 anos atrás
KhoaSyd wrote:
I also had this issue. I restarted application using the restart button at the bottom of the install page and now it gives me "Setup failed:sequence contains more than one". I have spending half of a day try to deploy v4 onto Azure App Service.

Would you please help me out here? feel so frustrated.

cheers,


I believe this is because the database tables were created before the setup failed, so you actually have to delete the database (if it was new, and not an upgrade, of course) or use a new name and *completely* start over.  It’s trying to create data tables and/or data that already exists.
6 anos atrás
So there is no solution from the developer?
6 anos atrás
Hello All, I have been having the same issue too and it's yet to be resolve.

Copying the local dataSettings.json did not work either.

I have tried with and without sample data to no avail.

Please help!
5 anos atrás
Hi. My solution is to install nopCommerce_4.00_WPI
5 anos atrás
this not a code fix but an bypass for this coding modelling and controller bug install errors in all versions

1: on your SQL data base run the script to remove all and any elements, objects, tables, etc.:



declare @n char(1)

set @n = char(10)

declare @stmt nvarchar(max)

-- procedures

select @stmt = isnull( @stmt + @n, '' ) +

    'drop procedure [' + name + ']'

from sys.procedures

-- check constraints

select @stmt = isnull( @stmt + @n, '' ) +

    'alter table [' + object_name( parent_object_id ) + '] drop constraint [' + name + ']'

from sys.check_constraints

-- functions

select @stmt = isnull( @stmt + @n, '' ) +

    'drop function [' + name + ']'

from sys.objects

where type in ( 'FN', 'IF', 'TF' )

-- views

select @stmt = isnull( @stmt + @n, '' ) +

    'drop view [' + name + ']'

from sys.views


-- foreign keys

select @stmt = isnull( @stmt + @n, '' ) +

    'alter table [' + object_name( parent_object_id ) + '] drop constraint [' + name + ']'

from sys.foreign_keys

-- tables

select @stmt = isnull( @stmt + @n, '' ) +

    'drop table [' + name + ']'

from sys.tables

-- user defined types

select @stmt = isnull( @stmt + @n, '' ) +

    'drop type [' + name + ']'

from sys.types

where is_user_defined = 1

exec sp_executesql @stmt


AND

EXEC sp_MSForEachTable 'ALTER TABLE ? NOCHECK CONSTRAINT ALL'

EXEC sp_MSForEachTable 'DELETE FROM ?'

DECLARE @Sql NVARCHAR(500) DECLARE @Cursor CURSOR

SET @Cursor = CURSOR FAST_FORWARD FOR

SELECT DISTINCT sql = 'ALTER TABLE [' + tc2.TABLE_NAME + '] DROP [' + rc1.CONSTRAINT_NAME + ']'

FROM INFORMATION_SCHEMA.REFERENTIAL_CONSTRAINTS rc1

LEFT JOIN INFORMATION_SCHEMA.TABLE_CONSTRAINTS tc2 ON tc2.CONSTRAINT_NAME =rc1.CONSTRAINT_NAME

OPEN @Cursor FETCH NEXT FROM @Cursor INTO @Sql

WHILE (@@FETCH_STATUS = 0)

BEGIN

Exec SP_EXECUTESQL @Sql

FETCH NEXT FROM @Cursor INTO @Sql

END

CLOSE @Cursor DEALLOCATE @Cursor

GO

EXEC sp_MSForEachTable 'DROP TABLE ?'

GO

EXEC sp_MSForEachTable 'ALTER TABLE ? WITH CHECK CHECK CONSTRAINT ALL'



2. use connection sting, not Db id's  

Data Source=sqlServerName;Initial Catalog=dbName;Persist Security Info=True;User ID=userName;Password=password;Persist Security Info=False

note: don't forget to add --> Persist Security Info=False;




a second non recommended option to bypass the existent element and the actual nopcommerce installation,

you can manually substitute your default string at dataSettings.json

from  Data Source=(localdb)\\ProjectsV13;Initial Catalog=\"rjv technologies\";

to the one at server which has already the sample data

"Data Source=sqlServerName;Initial Catalog=dbName;Persist Security Info=True;User ID=userName;Password=password; Persist Security Info=False;"

NOTE: the sample data maybe not complete
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.