Entry point was not found exception

I have converted a project from MVC3+.NET4 to MVC4+.NET4.5 and I receive the exception Entry point was not found when invoking a controller’s action. My solution was to insert an assembly binding redirect inside web.config to point at MVC 4 assemblies: <runtime> <assemblyBinding xmlns=”urn:schemas-microsoft-com:asm.v1″> <dependentAssembly> <assemblyIdentity name=”System.Web.Helpers” publicKeyToken=”31bf3856ad364e35″ /> <bindingRedirect oldVersion=”1.0.0.0-2.0.0.0″ newVersion=”2.0.0.0″ /> </dependentAssembly> <dependentAssembly> … Read more

App_Start Folder in ASP 4.5 only in WebApplications Projects?

There is nothing special about App_Start, it’s just a folder. What’s special is how it’s used, and that’s specific to the WebActivator framework, which is a NuGet package you can install. App_Start and WebActivator are not specific to .NET 4.5, but they do require .net 4 (which means VS 2010 or 2012) See http://blog.davidebbo.com/2011/02/appstart-folder-convention-for-nuget.html

Will .NET 4.5 introduce a new version of the CLR?

Yes, .NET 4.5 has a brand spanking new version of the CLR, you can read about the improvements at; http://blogs.microsoft.co.il/blogs/sasha/archive/2011/09/17/improvements-in-the-clr-core-in-net-framework-4-5.aspx To clarify; this is a new version of the CLR that actually replaces the 4.0 one, so whether to call it an update or a new CLR is disputable. To tell which CLR version you’re … Read more

Upgrading to .NET 4.5: An ItemsControl is inconsistent with its items source

WPF 4.5 provides some new functionality to access collections on non-UI Threads. It WPF enables you to access and modify data collections on threads other than the one that created the collection. This enables you to use a background thread to receive data from an external source, such as a database, and display the data … Read more

DelegatingHandler for response in WebApi

Yes. You can do that in the continuation task. I explain it here. For example, this code (from the blog above) traces request URI and adds a dummy header to response. public class DummyHandler : DelegatingHandler { protected override async Task<HttpResponseMessage> SendAsync(HttpRequestMessage request, CancellationToken cancellationToken) { // work on the request Trace.WriteLine(request.RequestUri.ToString()); var response = … Read more

Custom awaitables for dummies

Why would you want a custom awaiter? You can see the compiler’s interpretation of await here. Essentially: var temp = e.GetAwaiter(); if (!temp.IsCompleted) { SAVE_STATE() temp.OnCompleted(&cont); return; cont: RESTORE_STATE() } var i = temp.GetResult(); Edit from comments: OnCompleted should schedule its argument as a continuation of the asynchronous operation.

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