<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-5438718323397352877</id><updated>2024-10-25T01:14:42.177-07:00</updated><category term="FileSystemWatcher"/><category term="Form Authentication"/><category term="Security"/><category term="Session State"/><category term="SharePoint 2007 Alert Mail Issue"/><category term="silverlight media element"/><title type='text'>Lets Secure</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://letssecure.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5438718323397352877/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://letssecure.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>pankajg</name><uri>http://www.blogger.com/profile/07379965909987335024</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhy0VRdhv7XI3hzGww22ehz4NwK1hq7b8W9yrdqIdfEeoTp74yfWMV6Ivt8eDQREkG5ZW6L5O6GG_6xEPfdbe-m5QHjFaEtOH6rbSHKEYXNGa61rkZCDMGc8Aiwwie0mQ/s220/pankaj_smallimage.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>13</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5438718323397352877.post-3351657908417453581</id><published>2011-04-13T04:30:00.000-07:00</published><updated>2011-04-13T04:33:01.842-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SharePoint 2007 Alert Mail Issue"/><title type='text'>SharePoint 2007 Alert Mail Issue</title><content type='html'>&lt;h1&gt;SharePoint 2007 Alert Mail Issue&lt;/h1&gt;&lt;br /&gt;&lt;br /&gt;I came across an issue today related to alert mail not getting delivered whenever I modify or create a task item. Initially I was not getting the alert creation email as well. Following are the steps followed&lt;br /&gt;&lt;strong&gt;Step 1.&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Check whether the SMTP server is working. Below is a simple code to verify the service is working or not.&lt;br /&gt;using System;&lt;br /&gt;using System.Net.Mail;&lt;br /&gt;    public class Program&lt;br /&gt;    {&lt;br /&gt;        public static void Main(string[] args)&lt;br /&gt;        {&lt;br /&gt;            try&lt;br /&gt;            {&lt;br /&gt;                // Check arguments&lt;br /&gt;                if (args.Length != 3)&lt;br /&gt;                {&lt;br /&gt;                    Show();&lt;br /&gt;                    return;&lt;br /&gt;                }&lt;br /&gt;&lt;br /&gt;                // Create message&lt;br /&gt;                MailMessage mmMessage = new MailMessage();&lt;br /&gt;                mmMessage.To.Add(new MailAddress(args[2] as string));&lt;br /&gt;                mmMessage.From = new MailAddress(args[1] as string);&lt;br /&gt;                mmMessage.Subject = &quot;TestMail&quot;;&lt;br /&gt;                mmMessage.Body = &quot;This is a test&quot;;&lt;br /&gt;&lt;br /&gt;                // Send message&lt;br /&gt;                SmtpClient sc = new SmtpClient(args[0] as string);&lt;br /&gt;                sc.Send(mmMessage);&lt;br /&gt;&lt;br /&gt;            }&lt;br /&gt;            catch (Exception ex)&lt;br /&gt;            {&lt;br /&gt;                Console.WriteLine(ex);&lt;br /&gt;            }            &lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        private static void Show()&lt;br /&gt;        {&lt;br /&gt;            Console.WriteLine(&quot;TestMail [SmtpServer] [FromAddress] [ToAddress]&quot;);&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;    }&lt;br /&gt;Save the file as SMTPTest.cs&lt;br /&gt;Open the Visual Studio command prompt and execute the below &lt;br /&gt;&gt;csc.exe /out:SMTPTest.exe SMTPTest.cs&lt;br /&gt;&gt;SMTPTest.exe [SMTP Server IP address][FromAddress][ToAddress]&lt;br /&gt;If you receive a mail then the SMTP servvice is working fine.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Step 2.&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Open the Central Administration – Operation -&gt; Topology and Services -&gt; Outgoing e-mail settings&lt;br /&gt;Enter the outbound SMTP server address and the other details. Click OK.&lt;br /&gt;Verify if the email alerts are going.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Step 3.&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Open the Central Administration -&gt;Application Management -&gt; Web application outgoing e-mail settings&lt;br /&gt;Select the web application and verify the outbound smtp server.&lt;br /&gt;Verify if the email alerts are going.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Step 4.&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Check out the stsadm command in the below link to verify if the alerts are enabled.&lt;br /&gt;http://sharepointalert.info/&lt;br /&gt;Verify if the email alerts are going.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Step 5.&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Check the Windows SharePoint Services Timer Service, if it is started. If the service is not started then start the services.&lt;br /&gt;Verify if the email alerts are going.&lt;br /&gt;Please reset IIS if the alerts mails are not going.&lt;br /&gt;&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://letssecure.blogspot.com/feeds/3351657908417453581/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://letssecure.blogspot.com/2011/04/sharepoint-2007-alert-mail-issue.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5438718323397352877/posts/default/3351657908417453581'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5438718323397352877/posts/default/3351657908417453581'/><link rel='alternate' type='text/html' href='http://letssecure.blogspot.com/2011/04/sharepoint-2007-alert-mail-issue.html' title='SharePoint 2007 Alert Mail Issue'/><author><name>pankajg</name><uri>http://www.blogger.com/profile/07379965909987335024</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhy0VRdhv7XI3hzGww22ehz4NwK1hq7b8W9yrdqIdfEeoTp74yfWMV6Ivt8eDQREkG5ZW6L5O6GG_6xEPfdbe-m5QHjFaEtOH6rbSHKEYXNGa61rkZCDMGc8Aiwwie0mQ/s220/pankaj_smallimage.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5438718323397352877.post-7287873141277599612</id><published>2011-04-12T03:23:00.000-07:00</published><updated>2011-04-12T03:25:02.085-07:00</updated><title type='text'>Is HTML5 replacing SIlverlight</title><content type='html'>Please check this blog&lt;br /&gt;http://team.silverlight.net/announcement/standards-based-web-plug-ins-and-silverlight/</content><link rel='replies' type='application/atom+xml' href='http://letssecure.blogspot.com/feeds/7287873141277599612/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://letssecure.blogspot.com/2011/04/is-html5-replacing-silverlight.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5438718323397352877/posts/default/7287873141277599612'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5438718323397352877/posts/default/7287873141277599612'/><link rel='alternate' type='text/html' href='http://letssecure.blogspot.com/2011/04/is-html5-replacing-silverlight.html' title='Is HTML5 replacing SIlverlight'/><author><name>pankajg</name><uri>http://www.blogger.com/profile/07379965909987335024</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhy0VRdhv7XI3hzGww22ehz4NwK1hq7b8W9yrdqIdfEeoTp74yfWMV6Ivt8eDQREkG5ZW6L5O6GG_6xEPfdbe-m5QHjFaEtOH6rbSHKEYXNGa61rkZCDMGc8Aiwwie0mQ/s220/pankaj_smallimage.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5438718323397352877.post-982525744800227245</id><published>2011-04-11T22:09:00.000-07:00</published><updated>2011-04-11T22:33:32.440-07:00</updated><title type='text'>SOLID</title><content type='html'>SOLID but for those who don’t know, it stands for &lt;strong&gt;S&lt;/strong&gt;ingle &lt;strong&gt;R&lt;/strong&gt;esponsibility, &lt;strong&gt;O&lt;/strong&gt;pen/Closed Principle, &lt;strong&gt;L&lt;/strong&gt;iskov substitution, &lt;strong&gt;I&lt;/strong&gt;nterface Segregation and &lt;strong&gt;D&lt;/strong&gt;ependency Inversion, introduced by Robert C. Martin, which is basically a collection of principles that one should keep in mind while creating a system that’s easy to maintain and extend over time</content><link rel='replies' type='application/atom+xml' href='http://letssecure.blogspot.com/feeds/982525744800227245/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://letssecure.blogspot.com/2011/04/solid.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5438718323397352877/posts/default/982525744800227245'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5438718323397352877/posts/default/982525744800227245'/><link rel='alternate' type='text/html' href='http://letssecure.blogspot.com/2011/04/solid.html' title='SOLID'/><author><name>pankajg</name><uri>http://www.blogger.com/profile/07379965909987335024</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhy0VRdhv7XI3hzGww22ehz4NwK1hq7b8W9yrdqIdfEeoTp74yfWMV6Ivt8eDQREkG5ZW6L5O6GG_6xEPfdbe-m5QHjFaEtOH6rbSHKEYXNGa61rkZCDMGc8Aiwwie0mQ/s220/pankaj_smallimage.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5438718323397352877.post-7422379444254613838</id><published>2011-04-11T03:32:00.000-07:00</published><updated>2011-04-11T03:44:04.416-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="silverlight media element"/><title type='text'>The file is not part of the project or its Build Action property is not set to Resource</title><content type='html'>I wanted to play .wmv file in my website using the Silverlight Media Element. Here is the Syntax &lt;br /&gt;&lt;br /&gt;&amp;ltmediaelement name=&quot;media&quot; source=&quot;Test.wmv&quot; width=&quot;300&quot; height=&quot;300&quot;&amp;gt&lt;br /&gt;&lt;br /&gt;But I was getting the error. &quot;The file is not part of the project or its Build Action property is not set to &#39;Resource&#39;. &lt;br /&gt;&lt;br /&gt;I modified the Source attribute of the Media Element as shown below and it worked. &lt;br /&gt;&lt;br /&gt;&amp;ltmediaelement name=&quot;media&quot; source=&quot;/[SolutionName];component/Test.wmv&quot; width=&quot;300&quot; height=&quot;300&quot;&amp;gt</content><link rel='replies' type='application/atom+xml' href='http://letssecure.blogspot.com/feeds/7422379444254613838/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://letssecure.blogspot.com/2011/04/file-is-not-part-of-project-or-its.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5438718323397352877/posts/default/7422379444254613838'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5438718323397352877/posts/default/7422379444254613838'/><link rel='alternate' type='text/html' href='http://letssecure.blogspot.com/2011/04/file-is-not-part-of-project-or-its.html' title='The file is not part of the project or its Build Action property is not set to Resource'/><author><name>pankajg</name><uri>http://www.blogger.com/profile/07379965909987335024</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhy0VRdhv7XI3hzGww22ehz4NwK1hq7b8W9yrdqIdfEeoTp74yfWMV6Ivt8eDQREkG5ZW6L5O6GG_6xEPfdbe-m5QHjFaEtOH6rbSHKEYXNGa61rkZCDMGc8Aiwwie0mQ/s220/pankaj_smallimage.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5438718323397352877.post-462938126895999538</id><published>2010-05-19T01:31:00.000-07:00</published><updated>2010-05-19T01:33:35.944-07:00</updated><title type='text'>Visual Studio Color Schemes</title><content type='html'>Came across this nice website. It talks about the Visual Studio color schemes.&lt;br /&gt; Visual Studio allows us to completely customize the editor background and text colors to whatever we want. Here is the link.&lt;br /&gt;&lt;br /&gt;http://weblogs.asp.net/scottgu/archive/2010/04/29/download-and-share-visual-studio-color-schemes.aspx</content><link rel='replies' type='application/atom+xml' href='http://letssecure.blogspot.com/feeds/462938126895999538/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://letssecure.blogspot.com/2010/05/visual-studio-color-schemes.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5438718323397352877/posts/default/462938126895999538'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5438718323397352877/posts/default/462938126895999538'/><link rel='alternate' type='text/html' href='http://letssecure.blogspot.com/2010/05/visual-studio-color-schemes.html' title='Visual Studio Color Schemes'/><author><name>pankajg</name><uri>http://www.blogger.com/profile/07379965909987335024</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhy0VRdhv7XI3hzGww22ehz4NwK1hq7b8W9yrdqIdfEeoTp74yfWMV6Ivt8eDQREkG5ZW6L5O6GG_6xEPfdbe-m5QHjFaEtOH6rbSHKEYXNGa61rkZCDMGc8Aiwwie0mQ/s220/pankaj_smallimage.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5438718323397352877.post-3499889710580542580</id><published>2010-04-16T05:29:00.000-07:00</published><updated>2010-04-16T05:39:03.897-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="FileSystemWatcher"/><title type='text'>Monitoring the File System</title><content type='html'>Today one of my friend asked about retrieving the Time stamp value in C# whenever a file is Renamed. I was not sure as how to achieve this. As far as I know System.IO doesn&#39;t expose any property to retrieve the time stamp value whenever a file is renamed. We can use the System.IO.FileSystemWatcher class to monitor the file system.</content><link rel='replies' type='application/atom+xml' href='http://letssecure.blogspot.com/feeds/3499889710580542580/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://letssecure.blogspot.com/2010/04/monitoring-file-system.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5438718323397352877/posts/default/3499889710580542580'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5438718323397352877/posts/default/3499889710580542580'/><link rel='alternate' type='text/html' href='http://letssecure.blogspot.com/2010/04/monitoring-file-system.html' title='Monitoring the File System'/><author><name>pankajg</name><uri>http://www.blogger.com/profile/07379965909987335024</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhy0VRdhv7XI3hzGww22ehz4NwK1hq7b8W9yrdqIdfEeoTp74yfWMV6Ivt8eDQREkG5ZW6L5O6GG_6xEPfdbe-m5QHjFaEtOH6rbSHKEYXNGa61rkZCDMGc8Aiwwie0mQ/s220/pankaj_smallimage.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5438718323397352877.post-2964138560265093627</id><published>2010-03-10T15:29:00.000-08:00</published><updated>2010-03-10T15:31:00.952-08:00</updated><title type='text'>The worker process failed to initialize the http.sys communication or the w3svc communication layer and therefore could not be started.</title><content type='html'>&lt;strong&gt;The worker process failed to initialize the http.sys communication or the w3svc communication layer and therefore could not be started. The data field contains the error number.&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;On one of the customer’s server we got this error while navigating to a website. Ours is a WebClient application and we use the ClickOnce technology to publish our files to the Server.&lt;br /&gt;Recently there was an upgrade happened on that system. The system was running Windows 2003 Server with Service Pack 2. It was to be upgraded to Windows Server 2003 Enterprise Edition. Unfortunately, the upgrade was not successful and in the process the registry got overwritten. IIS too get corrupted. The website was running IIS 6.&lt;br /&gt;IIS 6 has Application Pool; an Application Pool can contain one or more applications and allows us to configure a level of isolation between different Web applications. Each application Pool has its own Identity. Usually, it runs with the Network Service credentials. &lt;br /&gt;The Problem:&lt;br /&gt;Whenever we tried opening a web site we were getting the “Service Not Available” screen. The reason was the application pool would automatically get stopped. Event Viewer was displaying the above error. Please refer to the article below for further reference.&lt;br /&gt;http://support.microsoft.com/kb/896286&lt;br /&gt;Troubleshoot:&lt;br /&gt;We tried the above steps mentioned in the article but unfortunately it didn’t worked out. We also referred to the below link which mentioned about an issue with one of the service pack 2 updates. Please refer the article below.&lt;br /&gt;http://www.pmcdonnell.ie/?p=42&lt;br /&gt;None of the above resolution helped us in resolving this issue. &lt;br /&gt;Following are the steps that resolved the issue.&lt;br /&gt;1. Uninstall IIS&lt;br /&gt;2. Re-Install IIS&lt;br /&gt;3. Run the below command. If IIS is installed after .Net then we need to register the asp.net. Open the VS command prompt or go to c:\[windows/winnt]\[Microsoft.Net]\[Framwowrk]\[ v2.0.50727]\aspnet_regiis.exe –i.&lt;br /&gt;4. Create the virtual directory.&lt;br /&gt;5. Create the Application Pool.&lt;br /&gt;6. Assign the application pool to the virtual directory.&lt;br /&gt;7. Run the website.</content><link rel='replies' type='application/atom+xml' href='http://letssecure.blogspot.com/feeds/2964138560265093627/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://letssecure.blogspot.com/2010/03/worker-process-failed-to-initialize.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5438718323397352877/posts/default/2964138560265093627'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5438718323397352877/posts/default/2964138560265093627'/><link rel='alternate' type='text/html' href='http://letssecure.blogspot.com/2010/03/worker-process-failed-to-initialize.html' title='The worker process failed to initialize the http.sys communication or the w3svc communication layer and therefore could not be started.'/><author><name>pankajg</name><uri>http://www.blogger.com/profile/07379965909987335024</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhy0VRdhv7XI3hzGww22ehz4NwK1hq7b8W9yrdqIdfEeoTp74yfWMV6Ivt8eDQREkG5ZW6L5O6GG_6xEPfdbe-m5QHjFaEtOH6rbSHKEYXNGa61rkZCDMGc8Aiwwie0mQ/s220/pankaj_smallimage.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5438718323397352877.post-1881131253043093402</id><published>2009-10-26T00:23:00.000-07:00</published><updated>2009-10-26T00:33:01.068-07:00</updated><title type='text'>DataReader and Dataset</title><content type='html'>In one of the project that I was working on there was a Time Out exception happened while navigating through lot of records. It was causing the whole application to crash. While examinig the application closely and running the sql profiler and using the below query to get all the processes that are active or getting created.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Query Analyzer:&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;EXEC SP_WHO2&lt;br /&gt;&lt;br /&gt;SELECT [sql_handle],stmt_start,stmt_end,loginame,[program_name],hostname,* FROM MASTER..SYSPROCESSES WHERE [program_name]=&#39;.Net SqlClient Data Provider&#39; ORDER BY SPID DESC&lt;br /&gt;&lt;br /&gt;SELECT * FROM MASTER..SYSDATABASES&lt;br /&gt;SYSDATABASES will give the database name that is being used.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;SQL Profiler:&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;In the Sql profiler we can examine for which database and for what processes the queries are executed. &lt;br /&gt;&lt;br /&gt;***********************************************************************************&lt;br /&gt;&lt;br /&gt;While closely examining the code I found out that the datareader was cauing the issue. And also I noticed that the &lt;strong&gt;sp_reset_connection&lt;/strong&gt; Stored procedure was not getting called after the datareader performed its operation.&lt;br /&gt;Changing this to dataset really resolved the issue and unnecessary connection was not getting opened and also &lt;strong&gt;sp_reset_connection&lt;/strong&gt; was getting called.</content><link rel='replies' type='application/atom+xml' href='http://letssecure.blogspot.com/feeds/1881131253043093402/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://letssecure.blogspot.com/2009/10/datareader-and-dataset.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5438718323397352877/posts/default/1881131253043093402'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5438718323397352877/posts/default/1881131253043093402'/><link rel='alternate' type='text/html' href='http://letssecure.blogspot.com/2009/10/datareader-and-dataset.html' title='DataReader and Dataset'/><author><name>pankajg</name><uri>http://www.blogger.com/profile/07379965909987335024</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhy0VRdhv7XI3hzGww22ehz4NwK1hq7b8W9yrdqIdfEeoTp74yfWMV6Ivt8eDQREkG5ZW6L5O6GG_6xEPfdbe-m5QHjFaEtOH6rbSHKEYXNGa61rkZCDMGc8Aiwwie0mQ/s220/pankaj_smallimage.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5438718323397352877.post-8172932087460522478</id><published>2009-10-25T04:40:00.000-07:00</published><updated>2009-10-25T04:41:18.761-07:00</updated><title type='text'>Bin Scope Binary Analyzer: Mini Fuzz Tool</title><content type='html'>Bin Scope Binary Analyzer:&lt;br /&gt;&lt;br /&gt;The BinScope Binary Analyzer is a Microsoft verification tool that analyzes binaries to ensure that they have been built in compliance with Microsoft’s Security Development Lifecycle (SDL) requirements and recommendations.  BinScope checks that SDL-required compiler/linker flags are being set, strong-named assemblies are in use, and up-to-date build tools are in place. BinScope also reports on dangerous constructs that are prohibited or discouraged by the SDL (e.g. read/write shared sections and global function pointers).  &lt;br /&gt;This below article has a small demonstration video.&lt;br /&gt;&lt;br /&gt;http://blogs.technet.com/security/&lt;br /&gt;&lt;br /&gt;It can be run standalone or integrated with the VS IDE.&lt;br /&gt;&lt;br /&gt;Download: &lt;br /&gt;http://www.microsoft.com/downloads/details.aspx?displaylang=en&amp;FamilyID=90e6181c-5905-4799-826a-772eafd4440a&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Mini File Fuzzer:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;A testing technique that can help find denial of service and security vulnerabilities in software.&lt;br /&gt;&lt;br /&gt;Technique:&lt;br /&gt;1. Force application to malformed data.&lt;br /&gt;2. If crash occurs, identify where and how.&lt;br /&gt;3. File a security bug.&lt;br /&gt;4. Investigate underlying code for security risk.&lt;br /&gt;&lt;br /&gt;This below article has a small demonstration video.&lt;br /&gt;http://blogs.technet.com/security/&lt;br /&gt;&lt;br /&gt;Download&lt;br /&gt;http://www.microsoft.com/downloads/details.aspx?displaylang=en&amp;FamilyID=b2307ca4-638f-4641-9946-dc0a5abe8513</content><link rel='replies' type='application/atom+xml' href='http://letssecure.blogspot.com/feeds/8172932087460522478/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://letssecure.blogspot.com/2009/10/bin-scope-binary-analyzer-mini-fuzz.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5438718323397352877/posts/default/8172932087460522478'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5438718323397352877/posts/default/8172932087460522478'/><link rel='alternate' type='text/html' href='http://letssecure.blogspot.com/2009/10/bin-scope-binary-analyzer-mini-fuzz.html' title='Bin Scope Binary Analyzer: Mini Fuzz Tool'/><author><name>pankajg</name><uri>http://www.blogger.com/profile/07379965909987335024</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhy0VRdhv7XI3hzGww22ehz4NwK1hq7b8W9yrdqIdfEeoTp74yfWMV6Ivt8eDQREkG5ZW6L5O6GG_6xEPfdbe-m5QHjFaEtOH6rbSHKEYXNGa61rkZCDMGc8Aiwwie0mQ/s220/pankaj_smallimage.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5438718323397352877.post-6689280858935993989</id><published>2009-03-19T21:56:00.000-07:00</published><updated>2009-03-19T22:18:04.024-07:00</updated><title type='text'>Protecting Web.Config file</title><content type='html'>Sensitive information should not be kept as clear text. At times we need to store sensitive information into web.config file. We store the database connection string in unencrypted format also. Some of the vulnerability in doing so..&lt;br /&gt;&lt;br /&gt;1. Client changes things they shouldn&#39;t change in the web.config file.&lt;br /&gt;&lt;br /&gt;2. An employee of your ISP can read your sensitive data when your site is hosted in a shared hosting environment&lt;br /&gt;&lt;br /&gt;Since Web.config may contain sensitive data such as connection strings, it is important that the contents of Web.config be kept safe and hidden from unauthorized viewers. By default, any HTTP request to a file with the .config extension is handled by the ASP.NET engine, which returns the “This type of page is not served” message.&lt;br /&gt;&lt;br /&gt;But what if an attacker is able to find some other exploit that allows them to view the Web.config file’s contents? What could an attacker do with this information, and what steps can be taken to further protect the sensitive information within Web.config? Fortunately, most sections in Web.config do not contain sensitive information. What harm can an attacker perpetrate if they know the name of the default Theme used by your ASP.NET pages?&lt;br /&gt;Certain Web.config sections, however, contain sensitive information that may include connection strings, user names, passwords, server names, encryption keys, and so forth. This information is typically found in the following Web.config sections:&lt;br /&gt;• appSettings&lt;br /&gt;• connectionStrings&lt;br /&gt;• identity&lt;br /&gt;• sessionState&lt;br /&gt;Refer the following link to read more on this article by.. &lt;strong&gt;Scott Mitchell&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;http://www.asp.net/Learn/data-access/tutorial-73-cs.aspx</content><link rel='replies' type='application/atom+xml' href='http://letssecure.blogspot.com/feeds/6689280858935993989/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://letssecure.blogspot.com/2009/03/protecting-webconfig-file.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5438718323397352877/posts/default/6689280858935993989'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5438718323397352877/posts/default/6689280858935993989'/><link rel='alternate' type='text/html' href='http://letssecure.blogspot.com/2009/03/protecting-webconfig-file.html' title='Protecting Web.Config file'/><author><name>pankajg</name><uri>http://www.blogger.com/profile/07379965909987335024</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhy0VRdhv7XI3hzGww22ehz4NwK1hq7b8W9yrdqIdfEeoTp74yfWMV6Ivt8eDQREkG5ZW6L5O6GG_6xEPfdbe-m5QHjFaEtOH6rbSHKEYXNGa61rkZCDMGc8Aiwwie0mQ/s220/pankaj_smallimage.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5438718323397352877.post-4594010454791147223</id><published>2009-03-12T22:41:00.000-07:00</published><updated>2009-03-12T23:00:53.092-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Form Authentication"/><category scheme="http://www.blogger.com/atom/ns#" term="Session State"/><title type='text'>Form Authentication and Session State</title><content type='html'>&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjh1TWSyqalO25LG2zt0WJItloGZ4p16Mxzp7zu0QUh89uO88yocFFeTrVOQE7mPi-Ay2hYMcy_RD0UGMx-lB5tzLMN1rcVR_EQe9jQjsn6Bx_1IvI_YjWHhg13cZ2Thvmdf1R7MzQ0xwc/s1600-h/Temp.jpg&quot;&gt;&lt;img style=&quot;float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 320px; height: 92px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjh1TWSyqalO25LG2zt0WJItloGZ4p16Mxzp7zu0QUh89uO88yocFFeTrVOQE7mPi-Ay2hYMcy_RD0UGMx-lB5tzLMN1rcVR_EQe9jQjsn6Bx_1IvI_YjWHhg13cZ2Thvmdf1R7MzQ0xwc/s320/Temp.jpg&quot; border=&quot;0&quot; alt=&quot;&quot;id=&quot;BLOGGER_PHOTO_ID_5312546830198472066&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;strong&gt;Form Authentication and Session State&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Form Authentication with default configuration is next to impossible to create a forged forms authentication ticket. The problem with depending on session state as an indicator of a logon session is that unlike forms authentication, it is trivial to create a valid session identifier.&lt;br /&gt;A session identifier is nothing more than a 120-bit random number encoded using letters and numbers (this works out to a 24-character cookie value due to the way session state encodes the random number), there is a chance that we can easily create a perfectly valid session identifier. Of course, if we send such an identifier to Asp.NET, there probably isn’t going to be any session data associated with it. (We have 2^120 possible combinations to guess if you were actually trying to grab someone else’s session).&lt;br /&gt;The configuration options for session state, unlike forms authentication, don’t include options for setting a cookie domain or a cookie path.&lt;br /&gt;Another flaw of using session state for tracking logon status is the inability to set the secure property of the session state cookie. Unlike forms authentication, the session state cookie always flows across the network regardless of the state of any SSL security on the connection. If we think about it, this makes sense for a feature like session state because many applications break If the data in session randomly became unavailable when a user surfer between secure and insecure pages.&lt;br /&gt;The whole point of a logon session is that it requires authentication to obtain a session, and once established there is persistent association between an authenticated user and the actual session data. Please check the image for a security feature comparison of forms authentication and session state.&lt;br /&gt;&lt;br /&gt;The best way to think about session data is to treat session state as if it were data stored in forms variables on a page.  Session state acts as a server-side store for this type of information.&lt;br /&gt;Protecting Session Cookies&lt;br /&gt;As with forms authentication in ASP.NET 2.0, the session state feature explicitly sets the HttpOnly property on the cookie to true. Because applications store interesting information inside of session state, ASP.NET protects the session identifier from client-side cross-site scripting(XSS) attacks.&lt;br /&gt;The likelihood of an attacker ever guessing a live session cookie is astronomically low (with 120 bits in the session identifier, that works out to an average of 2^60 guesses required.&lt;br /&gt;HttpOnly property prevents cookie hijacking.&lt;br /&gt;Why SessionID is not encrypted like forms authentication ticket ?&lt;br /&gt;The default session state cookie is a cryptographically strong 120-bit random number, there didn’t seem to be much point in layering the overhead of encryption and signing on top of it. Furthermore, not only is the session identifier a strong random number, because the session state identifier is stored in a session based cookie, the session ID changes from browser session to browser session.&lt;br /&gt;With session state the only time we can really someone else’s session state is while that user’s session is still active. There is no such thing as an offline brute force decryption attack or hash collision attack with session state. With session state, an attacker must successfully guess (incredibly unlikely) or hijack (possible but difficult to accomplish) a session identifier while that session is still active somewhere in an application. Although an attacker could theoretically stumble across a session identifier associated with an expired session, this isn’t of any use because an expired session means that the data associated with that session is no longer available.&lt;br /&gt;When you abandon a session, the session ID cookie is not removed from the browser of the user. Therefore, as soon as the session has been abandoned, any new requests to the same application will use the same session ID but will have a new session state instance. At the same time, if the user opens another application within the same DNS domain, the user will not lose their session state after the Abandon method is called from one application.&lt;br /&gt;Sometimes, you may not want to reuse the session ID. If you do and if you understand the ramifications of not reusing the session ID, use the following code example to abandon a session and to clear the session ID cookie:&lt;br /&gt;Session.Abandon();&lt;br /&gt;Response.Cookies.Add(new HttpCookie(&quot;ASP.NET_SessionId&quot;, &quot;&quot;));&lt;br /&gt;This code example clears the session state from the server and sets the session state cookie to null. The null value effectively clears the cookie from the browser.&lt;br /&gt;&lt;br /&gt;Reference: Asp.Net security book related to roles, authentication by Stephan Schakow. Its a great book.</content><link rel='replies' type='application/atom+xml' href='http://letssecure.blogspot.com/feeds/4594010454791147223/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://letssecure.blogspot.com/2009/03/form-authentication-and-session-state.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5438718323397352877/posts/default/4594010454791147223'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5438718323397352877/posts/default/4594010454791147223'/><link rel='alternate' type='text/html' href='http://letssecure.blogspot.com/2009/03/form-authentication-and-session-state.html' title='Form Authentication and Session State'/><author><name>pankajg</name><uri>http://www.blogger.com/profile/07379965909987335024</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhy0VRdhv7XI3hzGww22ehz4NwK1hq7b8W9yrdqIdfEeoTp74yfWMV6Ivt8eDQREkG5ZW6L5O6GG_6xEPfdbe-m5QHjFaEtOH6rbSHKEYXNGa61rkZCDMGc8Aiwwie0mQ/s220/pankaj_smallimage.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjh1TWSyqalO25LG2zt0WJItloGZ4p16Mxzp7zu0QUh89uO88yocFFeTrVOQE7mPi-Ay2hYMcy_RD0UGMx-lB5tzLMN1rcVR_EQe9jQjsn6Bx_1IvI_YjWHhg13cZ2Thvmdf1R7MzQ0xwc/s72-c/Temp.jpg" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5438718323397352877.post-2545253662267464920</id><published>2009-02-11T05:14:00.000-08:00</published><updated>2009-02-11T05:15:28.418-08:00</updated><title type='text'>Protect Forms Authentication in ASP.NET 2.0</title><content type='html'>&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/ms998310.aspx&quot;&gt;http://msdn.microsoft.com/en-us/library/ms998310.aspx&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://letssecure.blogspot.com/feeds/2545253662267464920/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://letssecure.blogspot.com/2009/02/protect-forms-authentication-in-aspnet.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5438718323397352877/posts/default/2545253662267464920'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5438718323397352877/posts/default/2545253662267464920'/><link rel='alternate' type='text/html' href='http://letssecure.blogspot.com/2009/02/protect-forms-authentication-in-aspnet.html' title='Protect Forms Authentication in ASP.NET 2.0'/><author><name>pankajg</name><uri>http://www.blogger.com/profile/07379965909987335024</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhy0VRdhv7XI3hzGww22ehz4NwK1hq7b8W9yrdqIdfEeoTp74yfWMV6Ivt8eDQREkG5ZW6L5O6GG_6xEPfdbe-m5QHjFaEtOH6rbSHKEYXNGa61rkZCDMGc8Aiwwie0mQ/s220/pankaj_smallimage.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5438718323397352877.post-9147689593586925934</id><published>2008-12-30T11:00:00.000-08:00</published><updated>2008-12-30T11:04:54.280-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Security"/><title type='text'>Security</title><content type='html'>Security, an important aspect of human life. We are concerned about individual security, family security and spend half of our life thinking about securing ourselves and our dear ones.&lt;br /&gt;Likewise, Security in software is a major concern for organization. Internet security is one such aspect. Please look forward in this blog for article related to security.</content><link rel='replies' type='application/atom+xml' href='http://letssecure.blogspot.com/feeds/9147689593586925934/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://letssecure.blogspot.com/2008/12/security.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5438718323397352877/posts/default/9147689593586925934'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5438718323397352877/posts/default/9147689593586925934'/><link rel='alternate' type='text/html' href='http://letssecure.blogspot.com/2008/12/security.html' title='Security'/><author><name>pankajg</name><uri>http://www.blogger.com/profile/07379965909987335024</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhy0VRdhv7XI3hzGww22ehz4NwK1hq7b8W9yrdqIdfEeoTp74yfWMV6Ivt8eDQREkG5ZW6L5O6GG_6xEPfdbe-m5QHjFaEtOH6rbSHKEYXNGa61rkZCDMGc8Aiwwie0mQ/s220/pankaj_smallimage.jpg'/></author><thr:total>0</thr:total></entry></feed>