What does Protected Internal mean in .Net [duplicate]

It’s a confusing one. protected means “only this class and derived classes”. internal means “only classes in this assembly”. protected internal means “protected OR internal” (any class in the same assembly, or any derived class – even if it is in a different assembly). i.e. it does not mean “protected AND internal” (only derived classes … Read more

How to increase the timeout period of web service in asp.net?

1 – You can set a timeout in your application : var client = new YourServiceReference.YourServiceClass(); client.Timeout = 60; // or -1 for infinite It is in milliseconds. 2 – Also you can increase timeout value in httpruntime tag in web/app.config : <configuration> <system.web> <httpRuntime executionTimeout=”<<**seconds**>>” /> … </system.web> </configuration> For ASP.NET applications, the Timeout … Read more

Interface + Extension (mixin) vs Base Class

Downside of extension methods: clients pre-C#3/VB9 won’t be able to use it as easily. That’s about it as far as I’m concerned – I think the interface-based approach is significantly nicer. You can then mock out your dependencies nicely, and everything is basically less tightly coupled. I’m not a huge fan of class inheritance unless … Read more

What version of the .NET framework is installed on Windows XP, Vista, and 7?

From Wikipedia and MSDN: .NET Framework 1.1: Windows Server 2003 .NET Framework 2.0: Windows Server 2003 R2 .NET Framework 3.0: Windows Vista, Windows Server 2008 .NET Framework 3.5: Windows 7, Windows Server 2008 R2 .NET Framework 4.0: n/a .NET Framework 4.5: Windows 8, Windows Server 2012 .NET Framework 4.5.1: Windows 8.1, Windows Server 2012 R2 … Read more

Why does my .NET application crash when run from a network drive?

It indeed has to do with the fact the apps on a network location are less trusted then on your local hdd (due to the default policy of the .NET framework). If I’m not mistaken Microsoft finally corrected this annoyance in .NET 3.5 SP1 (after a lot of developers complaining). I google’d it: .NET Framework … Read more

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