Visual Studio 2012 warning MSB3026: Could not copy DLL files

This is generally a permissions issue with your bin directory. Navigate to it in Windows Explorer and make sure readonly is off. If you get an error changing the read status of the directory, make sure you’re running on an administrator-level account or elevate accordingly. Once write permissions are re-enabled, your build should work fine.

CORS policy don’t want to work with SignalR and ASP.NET core

I solved my problem according to this link Add this block code to service services.AddCors(options => options.AddPolicy(“CorsPolicy”, builder => { builder.AllowAnyHeader() .AllowAnyMethod() .SetIsOriginAllowed((host) => true) .AllowCredentials(); })); and add this block code in configuring app app.UseCors(“CorsPolicy”); app.UseSignalR(routes => { routes.MapHub<General>(“/hubs/general”); });

SignalR vs. Reactive Extensions

No, they are absolutely not the same thing. Reactive Extensions is a library for creating and composing observable streams of data or events (which are actually quite similar). It basically knows nothing about client-server connections or other things. It is focused solely on Observables and is capable of wrapping any collection, stream, event, async method, … Read more

SignalR 2.0 error: Could not load file or assembly Microsoft.Owin.Security

Ok I’ve solved it. I had to upgrade my Microsoft.Owin.Security package to 2.1.0 with this command Install-Package Microsoft.Owin.Security -Version 2.1.0 And modify the bindings in my App.config like this <assemblyIdentity name=”Microsoft.Owin.Security” publicKeyToken=”31bf3856ad364e35″ culture=”neutral” /> <bindingRedirect oldVersion=”0.0.0.0-2.1.0.0″ newVersion=”2.1.0.0″ />

How do I generate API documentation for SignalR

Here’s a Nuget package which can help you. Nuget link: https://www.nuget.org/packages/SignalRSwaggerGen/ Github link: https://github.com/essencebit/SignalRSwaggerGen/wiki First you need to decorate your SignalR hubs with attributes from SignalRSwaggerGen.Attributes namespace: [SignalRHub] public class SomeHub : Hub { } Then you add SignalRSwaggerGen to Swagger generator: services.AddSwaggerGen(options => { options.SwaggerDoc(“v1”, new OpenApiInfo { Title = “Some API v1”, Version … Read more

Can I run JavaScript inside Swift code?

Last tested with Swift 5.1 Here is an example you can run in Playground to get you started: import JavaScriptCore let jsSource = “var testFunct = function(message) { return \”Test Message: \” + message;}” var context = JSContext() context?.evaluateScript(jsSource) let testFunction = context?.objectForKeyedSubscript(“testFunct”) let result = testFunction?.call(withArguments: [“the message”]) result would be Test Message: the … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)