Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to run application due #376

Open
PeterJD opened this issue Apr 11, 2019 · 5 comments
Open

Unable to run application due #376

PeterJD opened this issue Apr 11, 2019 · 5 comments

Comments

@PeterJD
Copy link

PeterJD commented Apr 11, 2019

Unable to run application due to duplicate key being entered into AspNetUsers
if I delete data still error appears

if I then disable the code not to add record still fails

@ngohungphuc
Copy link
Member

How can it be. Because the SeedData.cs contain unique entity. Can you try to truncate the data from your database and run application again to have a seed data

@PeterJD
Copy link
Author

PeterJD commented Apr 12, 2019

Have you got the script to build the database CMSCore this appears to be the problem

One of the many errors:-
System.AggregateException
HResult=0x80131500
Message=One or more errors occurred. (An error occurred while updating the entries. See the inner exception for details.)
Source=System.Private.CoreLib
StackTrace:
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at System.Threading.Tasks.Task.Wait()
at AwesomeCMSCore.Program.Main(String[] args) in C:\Users\Awesome-CMS-Core-master\src\AwesomeCMSCore\AwesomeCMSCore\Program.cs:line 23

Inner Exception 1:
DbUpdateException: An error occurred while updating the entries. See the inner exception for details.

Inner Exception 2:
SqlException: Cannot insert the value NULL into column 'IsDeleted', table 'CMSCore.dbo.Posts'; column does not allow nulls. INSERT fails.
The statement has been terminated.

System.AggregateException
HResult=0x80131500
Message=One or more errors occurred. (An error occurred while updating the entries. See the inner exception for details.)
Source=System.Private.CoreLib
StackTrace:
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at System.Threading.Tasks.Task.Wait()
at AwesomeCMSCore.Program.Main(String[] args) in C:\Users\Awesome-CMS-Core-master\src\AwesomeCMSCore\AwesomeCMSCore\Program.cs:line 23

Inner Exception 1:
DbUpdateException: An error occurred while updating the entries. See the inner exception for details.

Inner Exception 2:
SqlException: Invalid object name 'Comments'.

@PeterJD
Copy link
Author

PeterJD commented Apr 12, 2019

@PeterJD
Copy link
Author

PeterJD commented Apr 12, 2019

Well shorted the DB out, but still having issues running the program, I follow your instruction which seem a little peace meal (not detailed enough)
Are you in the position to give me more detailed instruction?

@ngohungphuc
Copy link
Member

Do you have skype so I can make a call

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants