Error updating service reference

I’ve had the same issue after updating to VS2013 Update 2. I’ve solved the issue by temporarily cutting the whole system.serviceModel section out of web.config, pasting it somewhere else like Notepad. Then, I’ve saved the web.config without the service model section. Then, I was able to update the service reference successfully. After updating the service … Read more

download windows API reference (MSDN) for offline use [closed]

Just the Win32 API, but it’s a thing of beauty: https://sourceforge.net/projects/win32-help-chm/files/ Edit: Dead link replaced with alternate download. Although it is now 17 years old, the Win32.hlp file from Microsoft is still a useful reference for those, like me, still programming using the “flat” Windows API. It still covers 99% of what I need and … Read more

“Are you missing an assembly reference?” compile error – Visual Studio

In my case it was a project defined using Target Framework: “.NET Framework 4.0 Client Profile ” that tried to reference dll projects defined using Target Framework: “.NET Framework 4.0”. Once I changed the project settings to use Target Framework: “.NET Framework 4.0” everything was built nicely. Right Click the project->Properties->Application->Target Framework

Mongoose Subdocuments in Nest.js

I dug into the source code and learned how Schema class is converted by the SchemaFactory.createForClass method. Well so how it works? 1. Take a look at this example below: @Schema() export class Cat extends Document { @Prop() name: string; } export const catSchema = SchemaFactory.createForClass(Cat); Basically, when you do SchemaFactory.createForClass(Cat) Nest will convert the … Read more

Is it possible to get the object reference count?

From your description, it seems you care less about the actual count of references than to simply know when an object has been collected. If this is the case, you can use WeakReference or PhantomReference to determine when a referenced object is ready for finalization. See: Javadoc for WeakReference: http://download.oracle.com/javase/6/docs/api/java/lang/ref/WeakReference.html Javadoc for PhantomReference: http://download.oracle.com/javase/6/docs/api/java/lang/ref/PhantomReference.html A … Read more

Using as a concrete type conforming to protocol AnyObject is not supported

I ran into the same problem when I tried to implement weak containers. As @plivesey points out in a comment above, this seems to be a bug in Swift 2.2 / Xcode 7.3, but it is expected to work. However, the problem does not occur for some Foundation protocols. For example, this compiles: let container … Read more