“Possibly unhandled rejection” when closing ngDialog

    Found my solution at: https://github.com/angular/material/issues/10369 When using the openConfirm function use: TypeScript: ngDialog .openConfirm(dialogOptions) .catch(function dialogCloseErrorCallback(reason: any) {         // ngDialog v1.4.0 throws an exception, when closing the dialog with reason “undefined”.         // Prevent this error:     if (reason !== undefined) {         throw new Error(`Error when closing the dialog: [${reason}].`); …

Allow *.css, *.js and *.html from the MVC 5 Views map

  If you want to allow static content to be served from the asp .net MVC 5 views folder, just added the web.config in this folder and change path=”*” to path=”*.cshtml”. https://stackoverflow.com/questions/17949460/how-do-you-request-static-html-files-under-the-views-folder-in-asp-net-mvc   <system.webServer> <handlers> <remove name=“BlockViewHandler“/> <add name=“BlockViewHandler“ path=“*.cshtml“ verb=“*“ preCondition=“integratedMode“ type=“System.Web.HttpNotFoundHandler“ /> </handlers> </system.webServer>

Git / Bitbucket – The remote end hung up unexpectedly – Early EOF – index-pack failed at exactly 1GB

  Suddenly my repository failed to clone: git clone https://myuser@myurl.nl/scm/myproject/myrepo.git Cloning into ‘myrepo’… remote: Counting objects: 332184, done. remote: Compressing objects: 100% (59662/59662), done. fatal: The remote end hung up unexpectedly020.57 MiB | 9.89 MiB/s fatal: early EOF fatal: index-pack failed   It failed at exactly 1GB. I found the …

Uncaught SyntaxError: Unexpected token in JSON at position 30 with escaped unicode character

  When you execute the JavaScript code: JSON.parse(“\”This is a unicode character: \u0007\””) in a browser you will get the error: Uncaught SyntaxError: Unexpected token in JSON at position 30     at JSON.parse (<anonymous>)     at <anonymous>:1:6 I fixed this by altering the C# code that returned the JSON. public static class …

Microsoft Word 2016: Word cannot register your account. The provider where you are trying to publish is unavailable. Contact your provider for assistance.

  I was getting the error: “Word cannot register your account. The provider where you are trying to publish is unavailable. Contact your provider for assistance.” This was caused by me forgetting to add ” /xmlrpc.php” to the end of the url. So if you want to register a blog …