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
Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80040154
November 3, 2009 by Nauman · 14 Comments
Sometimes when working with office Interop assemblies the above mentioned error occurs. I had also got the same when using Microsoft Excel interop assembly and adding its reference in my ASP.NET application. The problem is that by default when Microsoft Excel is used as a COM object then it can only be [...]
displaying an image for error message in ASP.NET validator control
November 3, 2009 by Nauman · Leave a Comment
There are many instances when user wants to see interactive and elegant images in their websites, either they look at any of the controls, or the whole page itself. In ASP.NET validator controls, mostly it is seen that "*" is placed when an error has occured. Can we add some image to display when an [...]
How to validate ReCAPTCHA.
November 3, 2009 by Nauman · 7 Comments
There are some cases when a user want to validate a CAPTCHA and perform some activity on its results. ReCAPTCHA gives an .NET API to perform some operations on its CAPTCHA component. Following is the code to validate a CAPTCHA on server side. ASPX Markup: <!– Start ReCAPTCHA –> <span class="orangetext">Captcha Verification:</span> <recaptcha:RecaptchaControl ID="recaptcha" runat="server" [...]
70-528 exam dumps
November 3, 2009 by Nauman · Leave a Comment
Service Unavailable – Error message
November 3, 2009 by Nauman · Leave a Comment
When you configure your IIS webserver and find the following message Service Unavailable Then the first solution to the above error is http://support.microsoft.com/default.aspx?id=823552 but if this does not solve the problem try doing the following stuff. Open the IIS Manager, right click Web Sites and select properties: [...]
Remote Access Timeout
November 3, 2009 by Nauman · Leave a Comment
When using remote access you may find that uploading or downloading a large file or a group of files will cause the connection to time out before the operation finishes with the error message "The remote connection to the computer timed out. Please connect again." By default, remote access is configured to timeout after 20 [...]
charachter validation and count for a textbox – Javascript
November 3, 2009 by Nauman · Leave a Comment
Here I have provided a solution to put a counter for a textbox, that can be updated as each character typed into the textbox. This script will also validate the maximum character length allowed for a textbox. This script will also work when anyone copy/paste the text into the textbox. Textbox can be either single [...]
Enable/Disable DIV tags through Javascript
November 3, 2009 by Nauman · Leave a Comment
Copy/Paste following javascript code snippet. <script type="text/javascript"> function toggleAlert() { toggleDisabled(document.getElementById("content")); } function toggleDisabled(el) { try { el.disabled = el.disabled ? false : true; } catch(E){ } if (el.childNodes && el.childNodes.length > 0) { for (var x = 0; x < el.childNodes.length; x++) { toggleDisabled(el.childNodes[x]); } } } </script> Copy/Paste following HTML code in BODY [...]