Crystal Report Viewer width – Visual Studio
November 5, 2009 by Nauman · Leave a Comment
By default Crystal report viewer width is fixed according to it toolbar, but changes due to amount of data present in the report. And the width is not editable (as it is seen). Because of this reason if a crystal report has good amount of data then it goes past page width and disturbs the [...]
Setting Windows Service account dynamically
November 5, 2009 by Nauman · Leave a Comment
Often we need to change the windows service account to our needs or when a new user is logged in who has not installed the service. Here is a quick way to check and change the service account. string objPath = string.Format("Win32_Service.Name=’{0}’", serviceName); using (ManagementObject service = new ManagementObject(new ManagementPath(objPath))) { object[] wmiParams = new [...]
The maximum report processing jobs limit configured by your system administrator has been reached.
November 5, 2009 by Nauman · 2 Comments
call Close or Dispose method at the end so the reporting engine remove the report entry from its queue.
MS Charts in Visual Studion 2008
November 5, 2009 by Nauman · Leave a Comment
Looking for some good looking and lightweight charting control to be used with VS 2008 applications. I have checked the following article on adding an using MS Charts control in vs 2008. It contains all the basic information regarding the creation and implementation of ms chart controls. MS Charts MS Charts Download Chart Templates
Compile c++ DLL to 64 bit using VS 2003
November 5, 2009 by Nauman · Leave a Comment
HI, Do the following things to compile it to 64-Bit application ———————————————————– 1) Open from the start menu "Microsoft Platform SDK for Windows Server 2003 SP1\Open Build Environment Window\Windows Server 2003 64-bit Build Environment\ Set Win Svr 2003 x64 Build Env (Retail)"(if didn’t find this, please install this SDK) 2) In the command line prompt [...]
SetWindowLong Function doesn’t work in 64 bit machine
November 5, 2009 by Nauman · Leave a Comment
The SetWindowLong function changes an attribute of the specified window. The function also sets the 32-bit (long) value at the specified offset into the extra window memory. This function has been superseded by the SetWindowLongPtr function. To write code that is compatible with both 32-bit and 64-bit versions of Microsoft Windows, use the SetWindowLongPtr function.
How to reg 64-bit assembly using VS2005 setup on 64-bit
November 5, 2009 by Nauman · Leave a Comment
I got one problem on registering a 64bit assembly during theinstallation. The installation package was developed using VS2005setup project.I could not invoke this assembly after installation. I believe thereason is the assembly had not been registered properly duringinstallation.(The assembly works well if I run Framework64/regasm.exe manually ) Ialready set the Register property of the assembly [...]
The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.0 Must issue a STARTTLS command first
November 5, 2009 by Nauman · Leave a Comment
This annoying error comes up when using some smtp server that uses SSL. A simple implementation to configure smtp settings in an ASP.NET web application is to add these setting in the specific "MailSettings" tag of Web.config file. I had also declared all the settings in web.config file but still I get this every time [...]
Securing ASP.NET Web applications – Beginner’s article
November 5, 2009 by Nauman · Leave a Comment
Want to secure a web application. A very good article relating to ASP.NET web application security hacks, and prevention techniques are defined at a beginner level. A good article for beginners, those who want to secure their applications. Article Here
Disabling Repair option from installer
November 5, 2009 by saim · Leave a Comment
I was facing problem to disable “Repair” option from msi installer. I found the solution in little time. If you haven’t install MSI ORCA then install it. Open the msi file in MSI ORCA editor. Select “Property” from left pane (Table pane), and Right click and ‘Add Row’ with property name ‘ARPNOREPAIR’ and value ’1′ [...]