Posts

Showing posts from May, 2019

Delete single user database SQL Server

Delete single user database SQL Server USE master GO DECLARE @kill varchar(max) = ''; SELECT @kill = @kill + 'KILL ' + CONVERT(varchar(10), spid) + '; ' FROM master..sysprocesses WHERE spid > 50 AND dbid = DB_ID('Quicksilver.Cms') EXEC(@kill); GO SET DEADLOCK_PRIORITY HIGH ALTER DATABASE [Quicksilver.Cms] SET MULTI_USER WITH NO_WAIT ALTER DATABASE [Quicksilver.Cms] SET MULTI_USER WITH ROLLBACK IMMEDIATE GO https://stackoverflow.com/questions/18965980/exit-single-user-mode Tags: blogger May 21, 2019 at 04:43PM Open in Evernote

Add source code to tinymce Episerver

Add source code to tinymce Episerver Create  CustomizedTinyMceInitialization (you can put it anywhere in your project) [ ModuleDependency ( typeof ( TinyMceInitialization ))] public class CustomizedTinyMceInitialization : IConfigurableModule {     public void Initialize ( InitializationEngine context )     {     }     public void Uninitialize ( InitializationEngine context )     {     }     public void ConfigureContainer ( ServiceConfigurationContext context )     {         context . Services . Configure < TinyMceConfiguration >( config =>         {             config . Default ()             . AddPlugin ( "code" ) // Reference code plugin  ...

ContentDeliveryAPI Getting Started

Image
Installation: 1. Install EPiServer.ContentDeliveryApi via nuget 2. Enable token authorization public   class   Startup {    public   void   Configuration ( IAppBuilder   app )   {      app . UseContentApiIdentityOAuthAuthorization < ApplicationUserManager < SiteUser >, SiteUser >(        new   ContentApiOAuthOptions ()       {          RequireSsl  =  false ,       }     );   } } 3. If you get the error "System.ArgumentException: A route named 'MS_attributerouteWebApi' is already in the route collection. Route names must be unique." < add key = "episerver:contentdeliverysearch:maphttpattributeroutes" value = "false" /> < add key = "episerver:contentdelivery:maphttpattributeroutes" value = "false" /> Testing using Postman: Do...