2
Answers

Cannot load PSReadline module. Console is running without PS

Hello All,
 
Getting below error when trying to open SharePoint Online Managment Shell.
Cannot load PSReadline module. Console is running without PSReadline.
Import-Module : Errors occurred while loading the format data file:
C:\Program Files\SharePoint Online Management
Shell\Microsoft.Online.SharePoint.PowerShell\Microsoft.Online.SharePoint.PowerShell.ps1xml, , C:\Program
Files\SharePoint Online Management
Shell\Microsoft.Online.SharePoint.PowerShell\Microsoft.Online.SharePoint.PowerShell.ps1xml: The file was skipped
because of the following validation exception: File C:\Program Files\SharePoint Online Management
Shell\Microsoft.Online.SharePoint.PowerShell\Microsoft.Online.SharePoint.PowerShell.ps1xml cannot be loaded. A
certificate chain processed, but terminated in a root certificate which is not trusted by the trust provider..
At line:1 char:1
+ Import-Module Microsoft.Online.SharePoint.PowerShell -DisableNameChec ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Import-Module], RuntimeException
+ FullyQualifiedErrorId : FormatXmlUpdateException,Microsoft.PowerShell.Commands.ImportModuleCommand
Please suggest.
Answers (2)
2
Ravi Patel

Ravi Patel

NA 7.8k 532.4k 8y
Hi,
I hope you are talking about code first approach
once you create database using code first approach then after that if you want to change the model class . that reflect your database
if you do not want loose any column value then use migration
here is step
open your package manager console type the following comand
1. enable-migrations
2. add-migration
3. update-database
when ever you change the model class repeat the second and third step
 
for more details  check this
 
http://www.c-sharpcorner.com/UploadFile/4b0136/perform-code-first-migration-in-Asp-Net-mvc-5/ 
0
Bikesh Srivastava

Bikesh Srivastava

NA 19.8k 835k 8y
I think you are saying about Migration.
Visit here:-
http://www.dotnet-tricks.com/Tutorial/entityframework/R54K181213-Understanding-Entity-Framework-Code-First-Migrations.html