I’m getting, “Could not load file or assembly ‘Bla’ or one of its dependencies. An attempt was made to load a program with an incorrect format.”
Source: registry – How can I enable Assembly binding logging? – Stack Overflow
My bookmarks and blogposts regarding Software Development in .NET, C#, Angular, JavaScript, CSS, Html
I’m getting, “Could not load file or assembly ‘Bla’ or one of its dependencies. An attempt was made to load a program with an incorrect format.”
Source: registry – How can I enable Assembly binding logging? – Stack Overflow
The easiest and most powerful way to compile LESS, Scss, Stylus, JSX and CoffeeScript files directly within Visual Studio or through MSBuild.
A simple WCF test client is included in Visual Studio.
It resides here for my Visual Studio 2017 installation:
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\WcfTestClient.exe
Initially imported into SQL Express 2014 but got some warnings/errors regarding the import, so SQL 2016 works better.
Steps:
1. Access to a bacpac file locally / on azure storage
2. Use the UI wizard in Management Studio. (See below)
Source: Import a BACPAC File to Create a New User Database | Microsoft Docs
Solved the error by setting TrustServerCertificate=false in the connectionstring.
More info here:
https://stackoverflow.com/questions/17615260/the-certificate-chain-was-issued-by-an-authority-that-is-not-trusted-when-conn
Login to azure portal
https://portal.azure.com/
Goto your web app
Select the tab “Deployment credentials” and set username and password to be used for FTP access. (remember to save).
Goto the “Overview” tab (the top tab)
In the right column you find:
Introducing: Library Manager – Available in Visual Studio 2017 v15.7 Preview 3.0 in the Web Development and .NET Core workloads. Library Manager (“LibMan” for short) is Microsoft’s new static client-side library management system, specifically designed with web projects in mind. It provides a mechanism, similar to Bower or npm, that helps users find and fetch library files from an external source such as CDNJS or a local library catalog. Library configuration can be stored with the project and files can be downloaded during build, or with Visual Studio …
blogs.msdn.microsoft.com/webdev/2018/04/17/library-manager-client-side-content-manager-for-web-apps/
RDCMan manages multiple remote desktop connections. It is useful for managing server labs or large server farms where you need regular access to each machine such as automated checkin systems and data centers. It is similar to the built-in MMC Remote Desktops snap-in, but more flexible. The RDCMan 2.7 version is a major feature release. New features include: – Virtual machine connect-to-console support – Smart groups – Support for credential encryption with certificates – Windows 8 remote action support – Support for Windows 8, Windows 8.1 / Windows Server 2012, Windows Server 2012 R2
Source: Download Remote Desktop Connection Manager 2.7 from Official Microsoft Download Center
Here is a short guide for importing users from an existing EPiServer site into an empty EPiServer site. And then setup the default user groups and access rights. This is for EPiServer 7.5 using the standard Sql Membership but will probably work fine with newer EPiServer versions as well.
Run deployment center as administrator -> select create Sql db.
How to copy table data, see this guide: https://www.sqlshack.com/how-to-copy-tables-from-one-database-to-another-in-sql-server/
The tables are named like: aspnet_Applications
Marked in bold are the tables that was used by my EPiServer 7.5 installation (the other tables where just empty). This is the order used, (see the link above), making sure the Users table is uploaded early on is important.
1. Application
2. Users
3.Membership
4.Paths
5.PersonalizationAllUsers
6.PersonalizationPerUser
7.Profile
8.Roles
9.Events
10.UsersInRoles (watch out for FK constraints to Users and Roles)
11.SchemaVersions (identical between same EPiServer db versions)
Override the access protection to EPiServer admin until valid admin user and user groups are created:
Find location elements in web.config and comment out:
<location path="epi">
Comment out the <authorization> element entirely (removes the access protection). The same for location:
<location path="epi/CMS/admin">
Goto http://mysite.local/epi/CMS/Admin/Default.aspx or similar for epi admin area.
Create new roles in admin: (these are EPiServer defaults)
WebEditors
WebAdmins
Add your admin user to WebEditors and WebAdmins group.
Goto admin “Set access rights”
Set correct access rights for editors and admin groups.
Check lower checkbox to make descendant content inherit the rights.
Also “Everyone” group should have Read access on root and downwards.
Set this in web.config:
<siteSettings pageRootId="1" pageStartId="1"
PagestartId should be root id.
Uncomment the authorization for /epi and /epi/cms/admin (enable the authorization again).
Login with you admin user
Create a start page or import an episerver export xml file.
Run [mysite.local]/epi/CMS/Admin/IndexContent.aspx to update search index if imported content.
Goto site settings in admin and point out the page as start page. And/or set in web.config
<siteSettings pageRootId="1" pageStartId="4"
(usually becomes 4)
Goto site settings in admin and point out the all site hosts (dev, test, prod etc).
Add more users such as editors and adminstrators that need access to site.