TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Guest User
Tech Writer
2.1k
470.8k
How to resolve nuget command issue group-policy?
May 25 2020 7:27 AM
Hi Team
I have this issue below each time i tried to either update-database or scaffold-dbcontext i always get this exception and cant seem to pass it on my project.I really need more options to resolve this issue its been more than a week.
Update-Database
& : File C:\Users\gcobanim\source\repos\eNtsaRegistrationTraining\packages\Microsoft.EntityFrameworkCore.Tools.3.1.3\tools\init.ps1 cannot be loaded because its operation
is
blocked by software restriction policies, such
as
those created by
using
Group Policy.
At line:1
char
:45
+ ... rgs+=$_}; & 'C:\Users\gcobanim\source\repos\eNtsaRegistrationTraining ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : SecurityError: (:) [], PSSecurityException
+ FullyQualifiedErrorId : UnauthorizedAccess
Specify the
'-Verbose'
flag to view the SQL statements being applied to the target database.
No pending
explicit
migrations.
Unable to update database to match the current model because there are pending changes and automatic migration
is
disabled. Either write the pending model changes to a code-based migration or enable automatic migration. Set DbMigrationsConfiguration.AutomaticMigrationsEnabled to
true
to enable automatic migration.
You can use the Add-Migration command to write the pending model changes to a code-based migration.
Reply
Answers (
1
)
ASP.NET Core Razor Add new data from Main page
Microsoft.Azure.Cosmos.CosmosException: Response status 400