Getting Unexpected Token Export

I am trying to run some ES6 code in my project but I am getting an unexpected token export error. ``` export class MyClass { constructor() { console.log("es6"); } } ```

Application_Error() not firing

I'm trying to run an ASP.NET application that logs exceptions to the database. I'm using Application_Error to catch the exception. Before adding the connection string, just to test my code (Logger cl...

12 Jul at 18:48

ServiceStack.Text RegisterLicense throws exception

I just recently upgraded to ServiceStack.Text 4.x, the paid license. One of my apps is a console app and it uses the following code to register the license: ``` public static class License { publ...

10 Jul at 18:40

How to return value from function which has Observable subscription inside?

I dont know how to extract value from Observable to be returned by function in which Observable is present. I need just a value from it to be returned, nothing else. Current version which works ``` ...

13 Nov at 22:49

Can not open ServiceStack mvc project

I can not open ServiceStack Mvc project on visual studio 2012. This error message appears: [](https://i.stack.imgur.com/qC6Os.png) I've installed "Microsoft Visual Studio 2012 Shell (Isolated) Redi...

10 Jul at 14:40

Killing gracefully a .NET Core daemon running on Linux

I created a .NET Core console application running as a daemon on a Ubuntu 14.04 machine. I want to stop the service without forcing it, being able to handle a kill event. How can I achieve this?

10 Jul at 11:51

OWIN Configuration: What's the difference between CookieAuthenticationDefaults.AuthenticationType and DefaultAuthenticationTypes.ApplicationCookie

I'm revisiting some code in my OwinStartup class and have this definition: ``` app.UseCookieAuthentication(new CookieAuthenticationOptions { AuthenticationType = DefaultAuthenticationTypes.Applic...

10 Jul at 00:31

Calculate Code Metrics for .NET Core Projects?

I am playing arround with ASP.NET Core and .NET Core projects. For classic C# projects Visual Studio 2015 has got the feature to calculate code metrics. For .NET Core the support is missing in the Pre...

ASP.NET Core Browser Link `Unable to get property 'files'`

In the Microsoft Virtual Academy course ['Introduction to ASP.NET Core (formerly ASP.NET 5)'](https://mva.microsoft.com/en-US/training-courses/introduction-to-asp-net-core-formerly-asp-net-5--13786?l=...

Python's equivalent to null-conditional operator introduced in C# 6

Is there an equivalent in Python to C# [null-conditional operator](https://msdn.microsoft.com/en-us/library/dn986595.aspx)? ``` System.Text.StringBuilder sb = null; string s = sb?.ToString(); // No e...

9 Jul at 20:51

TimeSpan to Custom string like HH:mm:ss

I would like to convert ``` var delta = TimeSpan.FromSeconds(10); ``` to string like `00:00:01` I try this `delta.ToString(@"0:\\hh\\:mm\\:ss", System.Globalization.CultureInfo.InvariantCulture);...

9 Jul at 19:55

Rendering an array.map() in React

I am having a problem where I am trying to use array of data to render a `<ul>` element. In the code below the console logs are working fine, but the list items aren't appearing. ``` var Main = React....

28 Dec at 16:33

How to read data from java properties file using Spring Boot

I have a spring boot application and I want to read some variable from my `application.properties` file. In fact below codes do that. But I think there is a good method for this alternative. ``` Prop...

6 Aug at 09:28

Jenkins CI Pipeline Scripts not permitted to use method groovy.lang.GroovyObject

I am Using Jenkins 2 for compiling Java Projects, I want to read the version from a pom.xml, I was following this example: [https://github.com/jenkinsci/pipeline-plugin/blob/master/TUTORIAL.md](https...

Newtonsoft.Json customize date serialization

I am using `Newtonsoft.Json` for serializing my dates from C# to JSON. What I want to do is have the json serializer use the current culture for formatting dates into string. Here is what I am getting...

23 Feb at 06:50

ServiceStack v4.0.60 does not have IRedisClientFactory

After upgrading ServiceStack from version 4.0.23 to 4.0.60 I got following error: > The type or namespace name 'IRedisClientFactory' could not be found I searched release notes for 2015 and 2016 and...

8 Jul at 20:49

Impersonate user in Windows Service

I am trying to impersonate a domain user in a windows service with the service logged in as the Local System Account. So far, I am only able to get this to work by logging the service and set the pro...

The type 'IEnumerable<>' is defined in an assembly that is not referenced

I have added the following nuget package to my MVC 5 application X.PagedList.Mvc I return the results in my controller/view as follows: ``` // Repo public IPagedList<Post> GetPagedPosts(int pageNum...

8 Jul at 21:4

Chart.js axes label font size

In chart.js how can I set the set the font size for just the x axis labels without touching global config? I've already tried setting the 'scaleFontSize' option my options object. I've also tried set...

8 Jul at 17:33

CS0103 C# The name 'Json' does not exist in the current context

Well, I have written JsonResult funtion. But i get the following error: > CS0103 C# The name 'Json' does not exist in the current context I cant find solution to it... plzz help? ``` public JsonRe...

8 Jul at 23:5

Experimental decorators warning in TypeScript compilation

I receive the warning... > Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option `to remove this warning. ... even t...

System.ObjectModel Warning Xamarin does not run on Android

We are running the 'Welcome to Xamarin` example on Visual Studio Enterprise, using the latest Xamarin, in a Windows 8.1 environment. We are managing to build and run on both Windows and Apple, but we...

Could not load file or assembly tools\EntityFramework .PowerShell.Utility.dll'

When try to Install Entity Framework 6.1.3 From Package Manager console. I get following output. ``` Install-Package EntityFramework Attempting to gather dependency information for package 'EntityFr...

Check if a value is in an array or not with Excel VBA

I've got some code below, that is supposed to be checking if a value is in an Array or not. ``` Sub test() vars1 = Array("Examples") vars2 = Array("Example") If IsInArray(Range("A1").Valu...

8 Oct at 09:23

ServiceStack Redis client : remove all objects

I want to remove all objects that are stored in Redis via the ServiceStack Redis client. I tried to use the Remove method with "*" as a key but it is not ok. Thanks.

8 Jul at 13:17