Adding custom code to Local Reports in Visual Studio.NET 2005 (Problems & Solutions)

If you are one of the people who used and enjoyed SQL Server Reporting Services (SSRS) in SQL 2000 and you wanted to use it in your windows/web applications without the server side components (just like what you are doing with Crystal Reports). So you would be much exited about the new ReportViewer Controls. ReportViewer…

70

Encrypting configuration files using protected configuration

One of the cool security features in ASP.NET 2.0 is the ability to parts of web.config. Web.config encryption uses XML encryption standards at its core.   Protected configuration uses a class derived from the abstract class ProtectedConfigurationProvider. .NET framework has shipped with two providers RSAProtectedConfigurationProvider which uses TripleDES and RSA encryption and DPAPIProtectedConfigurationProvider which uses…

42

A quick post: Where’s my "Sync with table of content"

If you are a one who wants to know where’s the content that you are reading the in the MSDN library table of contents then you would miss this button in the new Microsoft Document Explorer. Microsoft Document Explorer is the new Microsoft Help system shipped with Visual Studio.NET 2005 and SQL 2005. If you…

2

VistaDB solved database hosting problems.

I’ve been invited to test a new product, VistaDB. I found it amazing. It’s a tiny database engine with huge benefits. VistaDB engine is only a dll with 32 Kb foot print and it works with almost all development platforms (.NET, COM, Delphi, C/C++). The best thing about VistaDB that it doesn’t need any installation…

11

MSecurityLibrary library for symmetric encryption and hashing

This time I’m introducing one of the most favorite codes for me. I built this library a year ago while I was working with symmetric encryption. I felt that I need to do it myself instead of using any ready-made components because I either found a very complex component or a very simple one that…

0

How to take your web application offline with simple action [ASP.NET 2.0]

If you are deploying your web application and you don’t the users to browse your web application until the deployment process finishes or you want to take you web application offline for a while. Just put a file with the name App_offline.htm and write any message you want to show to your users in it…

1

The complete picture of ASP.NET 2.0 compilation

ASP.NET 2.0 compilation is much different than ASP.NET 1.x compilation.  In ASP.NET 1.x there was two classes for each web form: 1)      Code-behind class —> which is compiled inside the assembly in the bin folder along with all other classes for all web forms 2)      Run time-generated class —> which is generated at run time…

0

You have a problem with Hijri dates and SQL Server?

Let’s first discuss the problem. We use Hijri calendar and SQL server uses Gregorian calendar. And SQL server has restriction on the Gregorian dates earlier than 1753. But SQL server saves dates internally in another format (It’s neutral and doesn’t depend on any calendar) So we need to convert the dates directly from SQL Server…

14

Installing Microsoft Enterprise Library on production servers

Many of us encountered a lot of problems when installing Microsoft Enterprise Library on production servers, you may face or see error like ” System.Security.SecurityException: Requested registry access is not allowed”   Simply to deploy your web application that depends on Microsoft Enterprise Library, you need to do two things   1) Copy the Enterprise Library…

14

Simple application configuration reader/writer class

app.config and web.config are very powerfull techniques for managing application settings. For more information about using configuration file please check this article in MSDN But the manipulation of these files has 2 issues 1) There’s no class in .NET framework to update the files so you have to write your own code to access the…

5