Posts
- Quick SSL Certs For Local IIS Development
You can use selfssl from the IIS 6 Resource Kit to quickly add self signed SSL certs for local development. When installing select custom install and only install selfssl.exe. Then you can run the following command: selfssl /N:CN=site.local /V:9999 /T /S:2 CN is the hostname you want to register.
- Eclipse AEM Plugin and AEM 6.2 org.apache.sling.api.scripting.ScriptEvaluationException
Using a fresh install of Eclipse and the Adobe AEM Plugin with AEM 6.2 you will get the following exception when trying to install a bundle: org.apache.sling.api.scripting.ScriptEvaluationException From http://stackoverflow.com/questions/38474627/service-component-missing-in-aem add the following line to the pom.xml of the core project:
- Reinstall Umbraco 7 and Delete Content
To reinstall Umbraco 7 you need to reset the following items in the web.config and go to /install to re-run the installation: <connectionStrings> <remove name="umbracoDbDSN" /> <add name="umbracoDbDSN" connectionString="" providerName="" /> </connectionStrings> <add key="umbracoConfigurationStatus" value="" />
- AEM (Adobe Experience Manager) WebDAV Windows 10
When trying to connect to AEM (Adobe Experience Manager) using WebDAV on Windows 10 I received the following error: Add Network Location The folder you entered does not appear to be valid. Please choose another. According to this Stack Overflow answer you need to change the value of the following registry key to 2 or more and restart your machine:
- Create a self signed certificate with OpenSSL on Windows
First unzip OpenSSL from https://code.google.com/p/openssl-for-windows/downloads/list and put it anywhere you want e.g. c:\openssl. Right click on c:\openssl\bin\openssl.exe and "run as administrator". Enter the following command where c:\openssl is the location you unzipped into: > req -newkey rsa:2048 -new -nodes -x509 -days 3650 -keyout key.pem -out cert.pem -config "C:\OpenSSL\openssl.cnf" Country name or any of the other information isnt required so you can keep pressing enter. You should now have two files in the bin folder key.pem and cert.pem.
- Use npm http-server to quickly create a secure web site with host name on Windows
Node and npm makes it really simple to install command line tools. One of my favourites is http-server. Http-server allows you to start a web server from any folder using the command prompt. To do this first install node from https://nodejs.org/en/ this will also install npm. Then open a command prompt and type:
- No default subscription has been designated. Use Select-AzureSubscription -Default to set the default subscription.
When trying to run the Select-AzureSubscription powershell command i recieved the following error even though the subscription name was correct: No default subscription has been designated. Use Select-AzureSubscription -Default to set the default subscription. It turns out that you need to download and update the Azure Publish Settings File before you can do this. The easiest way to do this is to run the following command and follow the prompts:
- .NET 5 DNX The type or namespace name 'List' could not be found (are you missing a using directive or an assembly reference?)
When playing around with the new .NET 5 DNX solution I encountered the following error: The type or namespace name ‘List’ could not be found (are you missing a using directive or an assembly reference?) I don’t understand exactly what was causing the error. I think the problem is that my project.json file was not configured correctly. I think that the dnxcore05 didn’t know about system.collections and just adding it to the dependencies didn’t work. Instead I had to add it to the dependencies under the frameworks section of the config like so:
- 'Assembly' does not contain a definition for 'GetExecutingAssembly' ConsoleUI.DNX Core 5.0
When trying to run the following code in a .NET DNX Core 5.0 project: var asm = Assembly.GetExecutingAssembly(); I got the following error: ‘Assembly’ does not contain a definition for ‘GetExecutingAssembly’ ConsoleUI.DNX Core 5.0 For DNX 5.0 projects you have to use the following:
- Visual Studio 2015 - A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)
Today when opening a project in Visual Studio 2015 I recieved the following error: —————————Microsoft Visual Studio ————————— A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)