Using Tasks with conditional continuations

I think your main problem is that you’re telling those two tasks to “Wait” with your call to Task.WaitAll(onSuccess, onError); The onSuccess and onError continuations are automatically setup for you and will be executed after their antecedent task completes. If you simply replace your Task.WaitAll(…) with taskThrows.Start(); I believe you will get the desired output. … Read more

Getting 404.0 error for ASP.NET MVC 3 app on IIS 7.0 / Windows Server 2008

You actually just reminded me that I needed to fix this issue in an enviroment here. If your situation is the same as mine then it’s a simple fix. Just add the following to your web config: <system.webServer> <modules runAllManagedModulesForAllRequests=”true” /> Edit: To provide further explanation on the issue at hand. In my case what … Read more

why is Lazy constrained to static contexts?

Object initializers outside a constructor (or method) has to refer to static members only. This is because the instance hasn’t been constructed until the constructor is run, hence the fields are not “ready yet” and therefor cannot be referenced. Static fields work because they are initialized before fields. Note that the error isn’t caused by … Read more

Could not find required file ‘setup.bin’

With Process Monitor I found that, right before trying to access the path, a DLL is used to retrieve this path. The following may be borderline legal, but I’d like to share my findings anyway. The DLL is located at C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Build.Tasks.v4.0.dll and the class being used is Microsoft.Build.Tasks.Deployment.Bootstrapper.BootstrapperBuilder. Using your favourite disassembly tool, you can … Read more

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