IIS secured local debugging Aug 23, 2018 Download and run this: https://github.com/mwanchap/configs/blob/master/SetupLocalhostCerts.ps1 For each project: Open Visual StudioIn Solution Explorer, select the web project and press F4 to open properties (not right click -> Properties, that’s a different set of properties for some reason)Set “SSL Enabled” = TrueCopy the SSL URLRight click on the project name in Solution Explorer again and open Properties from thereSelect “Web” sectionPaste SSL URL into “Project Url"TODO: script to enable edit-and-continue for local IIS ...
Visual Studio: Edit and Continue issues Jul 16, 2018 Huge thanks to Steve French for this one Like him, I’d been having issues with “Edit and Continue” not working for ages. I tried everything and none of the usual advice helped at all. Finally I came across Steve’s post here, and as he suggests, uninstalling Stackify Prefix immediately fixed the problem. Turns out everything was fine to start with, it was just Prefix that was getting in the way (probably due to the way it injects itself into the runtime / server / etc). ...
Installing SQL Server Express to set up an Azure database locally Jun 27, 2018 Installing SQL Express:Download SQL Express installerSwitch to an account with full local admin permissions (our regular accounts don’t have these so I had to use a global admin account instead) and install SQL Express with that accountOnce installation completes, make a note of the connection string you’re given on the final page of the installerOpen SSMS and connect to the database - default name is localhost\sqlexpressNavigate to Security -> Logins -> New LoginAdd the regular (non-admin) domain account that you’ll be using most of the timeOnce added, open that account under the Logins section and then open the “Server Roles” pageAdd the account to the “sysadmin” roleObtaining the Azure database:Open the database and select the “Export” option at the top of the “Overview” pageChoose a storage account and container to drop the export file in and enter the server admin credsOnce the file has been created, access that storage container and download the db export fileRestoring the export fileBack in SSMS, connect to your local SQL express server instance again (if it isn’t still connected), right-click on the “Databases” node and select “Import Data-tier Application"Select the db export file, give the database a name, click “Next"Don’t forget to update connection strings in your applications ;) If they’re running under your normal account (i. ...
Dynamics CRM Microsoft.IdentityModel exception in Windows 10 Jun 04, 2018 When trying to connect to Dynamics CRM services on a Windows 10, machine, you might get this error: Could not load file or assembly ‘Microsoft.IdentityModel, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35’ or one of its dependencies There are plenty of blog posts around that will all tell you to go and install “Windows Identity Foundation”, however this is no longer the case for Windows 10 and the installer for WIF will fail. This is because it’s now a Windows feature - install it via the “Turn Windows features on or off” section in “Programs and Features” as mentioned here. ...
Salesforce admin gotchas May 17, 2018 After coming across some of these for the hundredth time, I’ve decided to keep a list of bizarre inconsistencies / gotchas in Salesforce. Editable list views for certain objects don’t allow editing of record owner field, even though certain object types (e.g. Cases) have a “Change owner” or “Assign” option right there on the list view which does the same thing, so something exactly like this is obviously already implemented.It’s possible to mass-edit most things in list views, but not tasks. ...
'A section using configSource may contain no other attributes or elements' error after installing Application Insights May 03, 2018 After installing the Application Insights nuget package to an Umbraco solution, you’ll get this error: A section using ‘configSource’ may contain no other attributes or elements <ExamineLuceneIndexSets configSource="config\ExamineIndex.config” /> <log4net configSource="config\log4net.config”> <root> <level value="ALL” /> <appender-ref ref="aiAppender” /> Source File: \project\web.config This happens because part of the Application Insights installation process adds a <log4net> section to web.config. Which would make sense, except Umbraco already has a <log4net> section in /config/log4net.config. So as you can imagine, the solution is to manually move everything its added into that file. ...
Using the Force.com CLI and Powershell Apr 12, 2018 Inserting or Updating:Put all your data into a CSV file with the exact same column headings as the Salesforce fields, again making sure to save as ASCII and not UTF8 or any other encoding (in Excel, you want the option called "CSV (Comma delimited)" not "CSV UTF-8"). And then do this: force bulk insert Object__c .\new_object_data.csv To modify fields for updating, don't do the updates in Excel unless you have to - do it inline like this: force query --format json " ...
IIS HTTP Error 500.19, Error Code 0x8007000d Jan 19, 2018 I probably come across this error at least once per year. Ran into it again today when setting up a website to host locally in IIS, on a computer I don’t use much. HTTP Error 500.19 - Internal Server Error The requested page cannot be accessed because the related configuration data for the page is invalid. Detailed Error Information: Module IIS Web Core Notification Unknown Handler Not yet determined Error Code 0x8007000d ...
Umbraco's TinyMCE error: 'Cannot read property parentsRequired of undefined' Jan 17, 2018 If you find that the “Formats” list in an Umbraco RTE refuses to open, and the Javascript console contains this error: "Cannot read property ‘parentsRequired’ of undefined" Check the stylesheet that the RTE is using. In my case, adding this style had triggered the issue: /*umb_name:Small/ small{} Although there’s nothing wrong with this style itself, the problem is in what TinyMCE considers to be “valid” HTML elements. Why is “small” not valid? ...
Using Umbraco ModelsBuilder Nov 27, 2017 Firstly, make sure the following properties are set in your solution’s top-level web.config to enable the models builder: <add key="Umbraco.ModelsBuilder.Enable” value="true”/> <add key="Umbraco.ModelsBuilder.ModelsMode” value="LiveAppData”/> I like the “LiveAppData” mode, but you should experiment with the others from the list in the ModelsBuilder docs here. Generate your model classes, and include them in the VS Solution. Unless you’re on a brand new project, any existing views will need to be modified. ...