Client Profile vs Full [duplicate]

There is very little point in targeting the client profile for .NET 4.0. The download is 41MB, the full version is 48MB, only 15% bigger. The client profile does make a lot of sense if you target 3.5, the full installer is ~350 MB. The huge difference is explained by the prerequisites, .NET 4.0 requires … Read more

Drag and drop a DLL to the GAC (“assembly”) in windows server 2008 .net 4.0

In .net 4.0 Microsoft removed the ability to add DLLs to the Assembly simply by dragging and dropping. Instead you need to use gacutil.exe, or create an installer to do it. Microsoft actually doesn’t recommend using gacutil, but I went that route anyway. To use gacutil on a development machine go to: Start -> programs … Read more

.Net 4.0 Windows Application crashes in clr.dll under Windows Server 2008

I’m having the same issue. At approximately 8-10 hours of application life CLR error rises. I suspected my unmanaged code generating exception in the background thread. However I could not really find out why. You can give the following a try however: If you are using unmanaged code review exception handling statements while executig it. … Read more

C# casting to nullable type?

In your first example, the as operator attempts to use the object s as an int?. Since int? isn’t anywhere in the inheritance chain of short?, this operation fails. In your second example, you’re actually creating a new int? i with the value from short? s. This is a more generous operation, because it doesn’t … Read more

How to use LINQ in C++/CLI – in VS 2010/.Net 4.0

You can use the Linq methods that are defined in the System::Linq namespace, but you’ll have to jump through a couple extra hoops. First, C++/CLI doesn’t support extension methods. However, the extension methods are regular methods defined on various classes in System::Linq, so you can call them directly. List<int>^ list = gcnew List<int>(); int i … Read more

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