<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><atom:id>tag:blogger.com,1999:blog-15774329</atom:id><lastBuildDate>Mon, 28 Nov 2011 00:34:29 +0000</lastBuildDate><category>asp</category><category>80004005</category><category>Crystal Reports</category><category>Visual Studio</category><category>iis</category><category>Digital Signature</category><category>VC#</category><category>GridDropDownColumn</category><category>Combo</category><category>UserControl</category><category>CacheKey</category><category>Estimate</category><category>Add-on</category><category>.Net</category><category>SharePoint</category><category>DropdownList</category><category>Workflow</category><category>command</category><category>VB</category><category>Oracle</category><category>impersonation</category><category>Ajax</category><category>C#</category><category>LOC</category><category>SAP</category><category>Filter</category><category>Site Column</category><category>Assembly</category><category>CurrVal</category><category>windows 2003</category><category>WebPart</category><category>Procedure</category><category>RadGrid</category><category>asp.net</category><category>tnsnames.ora</category><category>XMLDataSource</category><category>TNS</category><category>RadDatePicker</category><category>Error</category><category>UpdatePanel</category><category>Sequence</category><category>DOS</category><title>Programming Discussions</title><description>Solutions to Programming Problems ASP,ASP.Net,SQL and ORACLE</description><link>http://jatindersingh.blogspot.com/</link><managingEditor>noreply@blogger.com (Jatinder Singh)</managingEditor><generator>Blogger</generator><openSearch:totalResults>61</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/ProgrammingDiscussions" /><feedburner:info uri="programmingdiscussions" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:emailServiceId>ProgrammingDiscussions</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><item><guid isPermaLink="false">tag:blogger.com,1999:blog-15774329.post-6146761220560654746</guid><pubDate>Wed, 15 Sep 2010 09:12:00 +0000</pubDate><atom:updated>2010-09-23T23:33:31.376-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Error</category><category domain="http://www.blogger.com/atom/ns#">Procedure</category><category domain="http://www.blogger.com/atom/ns#">asp.net</category><category domain="http://www.blogger.com/atom/ns#">command</category><title>Procedure has no parameters and arguments were supplied</title><description>&lt;strong&gt;Problem : &lt;/strong&gt;Procedure has no parameters and arguments were supplied&lt;br /&gt;&lt;br /&gt;Stored procedure code&lt;br /&gt;&lt;code&gt;&lt;br /&gt;ALTER procedure [dbo].[GetCompany]&lt;br /&gt;AS&lt;br /&gt;begin&lt;br /&gt;select * from Company&lt;br /&gt;end&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Method which calls the above procedure&lt;br /&gt;&lt;code&gt;&lt;br /&gt;public void RefreshCompany()&lt;br /&gt;        {&lt;br /&gt;            try&lt;br /&gt;            {&lt;br /&gt;  SQLCommand command=new SQLCommand();&lt;br /&gt;                command.CommandType = CommandType.StoredProcedure;&lt;br /&gt;                command.CommandText = "GetCompany";&lt;br /&gt;                da.SelectCommand = command;&lt;br /&gt;                da.Fill(StaticValues.data.Tables["Company"]);&lt;br /&gt;            }&lt;br /&gt;            catch (Exception ex)&lt;br /&gt;            {&lt;br /&gt;                throw new Exception(ex.Message);&lt;br /&gt;            }&lt;br /&gt;        }&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;Now the problem is that first time everything is fine, but when the application calls it again (e.g. refresh after update) &lt;br /&gt;it throws the exception "Procedure has no parameters and arguments were supplied". As it is evident that stored procedure does not actually expect any parameters. &lt;br /&gt;It is just a plain select statement &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Cause:&lt;/strong&gt;&lt;br /&gt;The same command object was used in all procedure calls, and it's caching the parameters of earlier call to another procedure &lt;br /&gt;&lt;br /&gt;command.parameters collection wasn't cleared.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Solution&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;#1 &lt;/strong&gt;command.parameters.Clear()  =&gt; Clear the parameter cache.&lt;br /&gt;&lt;strong&gt;#2&lt;/strong&gt; Use another command object for each query / procedure call.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Hope it helps&lt;br /&gt;Jatinder Singh&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15774329-6146761220560654746?l=jatindersingh.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/GXY_VQQW5yVfZSbOJOjNz6J0TuI/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/GXY_VQQW5yVfZSbOJOjNz6J0TuI/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/GXY_VQQW5yVfZSbOJOjNz6J0TuI/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/GXY_VQQW5yVfZSbOJOjNz6J0TuI/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/ProgrammingDiscussions/~4/1WPMYVt_Sk4" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/ProgrammingDiscussions/~3/1WPMYVt_Sk4/procedure-has-no-parameters-and.html</link><author>noreply@blogger.com (Jatinder Singh)</author><thr:total>1</thr:total><feedburner:origLink>http://jatindersingh.blogspot.com/2010/09/procedure-has-no-parameters-and.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-15774329.post-1366878492243413594</guid><pubDate>Tue, 27 Jul 2010 07:52:00 +0000</pubDate><atom:updated>2010-07-27T00:53:17.161-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">SharePoint</category><category domain="http://www.blogger.com/atom/ns#">Workflow</category><title>Multi-Value Columns in SharePoint Designer Workflow</title><description>&lt;span xmlns=""&gt;&lt;p&gt;&lt;span style="font-family:Trebuchet MS;font-size:10;color:#333333;"&gt;&lt;strong&gt;Requirement :&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Trebuchet MS;font-size:10;color:#333333;"&gt;Create a workflow so that any new item created in the list should fire the mail to recipients.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Trebuchet MS;font-size:10;color:#333333;"&gt;#1 Create a Multi value column in a list&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Trebuchet MS;font-size:10;color:#333333;"&gt;#2 Now on creation of new item attach the workflow to send the mail.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Trebuchet MS;font-size:10;color:#333333;"&gt;The multi value column is missing in workflow .The SPD suffers from a deficiency in the workflow component ,which doesn't allow you to send e-mail to multiple recipients from a multi-value column of a list using SharePoint Designer 2007 (SPD).&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Trebuchet MS;font-size:10;color:#333333;"&gt;&lt;strong&gt;Solution #1&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Trebuchet MS;font-size:10;color:#333333;"&gt;Turn off "Allow multiple selections" for your column (note the warning "This will remove all person values except the first one") . Now you should be able to provide the column as lookup column in workflow.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Trebuchet MS;font-size:10;color:#333333;"&gt;Change the workflow and then turn "Allow multiple selections" on for your column.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Trebuchet MS;font-size:10;color:#333333;"&gt;This solution is not acceptable as it removes all the values except first value. So the approach is good till development but once workflow goes to production you won't be able to touch the workflow or list where you would like to turn off "Allow multiple selections"&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Trebuchet MS;font-size:10;color:#333333;"&gt;&lt;strong&gt;Solution #2&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Trebuchet MS;font-size:10;color:#333333;"&gt;Create a variable var _employees in workflow&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Trebuchet MS;font-size:10;color:#333333;"&gt;Set the value of variable "_employees" to your "multi value column".&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Trebuchet MS;font-size:10;color:#333333;"&gt;Send the email using the variable "_employees"&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Trebuchet MS;font-size:10;color:#333333;"&gt;The second solution is simple and elegant.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Trebuchet MS;font-size:10;color:#333333;"&gt;I hope it helps.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15774329-1366878492243413594?l=jatindersingh.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/leXg4HJGyYgJICoqWuWS0nVk8kA/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/leXg4HJGyYgJICoqWuWS0nVk8kA/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/leXg4HJGyYgJICoqWuWS0nVk8kA/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/leXg4HJGyYgJICoqWuWS0nVk8kA/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/ProgrammingDiscussions/~4/WqH2Yym63W0" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/ProgrammingDiscussions/~3/WqH2Yym63W0/multi-value-columns-in-sharepoint.html</link><author>noreply@blogger.com (Jatinder Singh)</author><thr:total>0</thr:total><feedburner:origLink>http://jatindersingh.blogspot.com/2010/07/multi-value-columns-in-sharepoint.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-15774329.post-648737591643114947</guid><pubDate>Tue, 27 Jul 2010 06:27:00 +0000</pubDate><atom:updated>2010-07-26T23:28:41.524-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">DOS</category><category domain="http://www.blogger.com/atom/ns#">LOC</category><category domain="http://www.blogger.com/atom/ns#">Estimate</category><title>LOC in DOS</title><description>Though LOC for estimation is not very reliable , but still in case you need to find LOC of existing project. One way is to write a piece of code in your preferred language C#/VB.Net etc or another way is using some command like wc -l as in Linux.&lt;br /&gt;In DOS there is no such command directly availiable , so how to go about this one?? I assume nobody is going to write pharse "I am genius" in deployed code.&lt;br /&gt;So the trick is to find nonexisting text[/v] in lines and count those lines [/c]. For this to work copy all the source code files in one directory and run the following&lt;br /&gt;C:\CS&gt; find "I am genius" /c/v *.cs &gt;ABC&lt;br /&gt;Hope it helps&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15774329-648737591643114947?l=jatindersingh.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/ODJ2YcD4EoxeQFUpyvggCogPypA/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/ODJ2YcD4EoxeQFUpyvggCogPypA/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/ODJ2YcD4EoxeQFUpyvggCogPypA/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/ODJ2YcD4EoxeQFUpyvggCogPypA/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/ProgrammingDiscussions/~4/UpSR3x9WTe4" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/ProgrammingDiscussions/~3/UpSR3x9WTe4/loc-in-dos.html</link><author>noreply@blogger.com (Jatinder Singh)</author><thr:total>0</thr:total><feedburner:origLink>http://jatindersingh.blogspot.com/2010/07/loc-in-dos.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-15774329.post-3857590541510272113</guid><pubDate>Tue, 27 Jul 2010 06:10:00 +0000</pubDate><atom:updated>2010-07-26T23:22:47.784-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">GridDropDownColumn</category><category domain="http://www.blogger.com/atom/ns#">Filter</category><category domain="http://www.blogger.com/atom/ns#">RadGrid</category><title>Filtering By ListTextField for GridDropDownColumn</title><description>We were using Radgrid for displaying/Editing information  and to filter rows we were using filter mechanism as given by RadGrid. The issue faced was that we were unable to filter the rows on the GridDropDownColumn , so we tried to follow the suggestion as given at telerik site &lt;a href="http://www.telerik.com/help/aspnet-ajax/grdfilteringbylisttextfieldforgriddropdowncolumn.html"&gt;http://www.telerik.com/help/aspnet-ajax/grdfilteringbylisttextfieldforgriddropdowncolumn.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;We tried the suggestion #1 , everything was fine for display purpose. But as soon as we try to edit or Add a new row we were able to view both Hidden GridBoundColumn and GridDropdownColumn , and the value of both were getting passed to the objectdatasource we had for DML operations.&lt;br /&gt;&lt;br /&gt;Now to solve the problem we used "&lt;strong&gt;readonly=true&lt;/strong&gt;" for GridBoundColumn and it simply disappeared from edit form.&lt;br /&gt;&lt;strong&gt;Explaination&lt;/strong&gt;&lt;br /&gt;In case editable column types (column types that implement the IGridEditableColumn interface) have a &lt;strong&gt;ReadOnly&lt;/strong&gt; property that determines whether the column editor is visible in the edit form. When &lt;strong&gt;ReadOnly&lt;/strong&gt; is &lt;strong&gt;True&lt;/strong&gt;, the column editor does not appear in the edit form. ReadOnly does not affect whether the column is visible in browser mode.&lt;br /&gt;&lt;br /&gt;I hope it helps&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15774329-3857590541510272113?l=jatindersingh.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/pAU7so9xlVapGAsX0NQodcUxPB8/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/pAU7so9xlVapGAsX0NQodcUxPB8/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/pAU7so9xlVapGAsX0NQodcUxPB8/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/pAU7so9xlVapGAsX0NQodcUxPB8/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/ProgrammingDiscussions/~4/oQi9gDQARvM" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/ProgrammingDiscussions/~3/oQi9gDQARvM/filtering-by-listtextfield-for.html</link><author>noreply@blogger.com (Jatinder Singh)</author><thr:total>1</thr:total><feedburner:origLink>http://jatindersingh.blogspot.com/2010/07/filtering-by-listtextfield-for.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-15774329.post-4595179728381982891</guid><pubDate>Wed, 09 Jun 2010 05:57:00 +0000</pubDate><atom:updated>2010-06-08T23:00:36.717-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Site Column</category><category domain="http://www.blogger.com/atom/ns#">SharePoint</category><title>Access site column in Subsites</title><description>&lt;span style="font-size:85%;"&gt;We have created a site collection and under it many sites and subsites, now our aim was to create some basic lists like state , city,country etc at the top level site and refer the same across all the subsites. We faced the problem ,where in a lookup column you can only refer the lists of current site. In order to add one of the columns from a Parent site list in a subsite list we did the following .&lt;br /&gt;1. Create a site column. - In &lt;strong&gt;parent&lt;/strong&gt; Site Go to&lt;strong&gt; Settings -&gt; Site Column&lt;/strong&gt;. Here Create a new site column and choose the type as Lookup. Get the Lookup Information from Another list and Select your Parent list and its realted Column.&lt;br /&gt;2. &lt;strong&gt;Add site Column&lt;/strong&gt; in your &lt;strong&gt;Subsite's&lt;/strong&gt; list - Now go to your subsite list and goto list settings. Under Columns add a &lt;strong&gt;existing site column&lt;/strong&gt; and select the above created custom column.&lt;br /&gt;Hope it helps&lt;br /&gt; &lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15774329-4595179728381982891?l=jatindersingh.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/Gj4XBQ5NYC-UdL4NDcXt08UTItQ/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Gj4XBQ5NYC-UdL4NDcXt08UTItQ/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/Gj4XBQ5NYC-UdL4NDcXt08UTItQ/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Gj4XBQ5NYC-UdL4NDcXt08UTItQ/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/ProgrammingDiscussions/~4/iWcxk7DEsI0" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/ProgrammingDiscussions/~3/iWcxk7DEsI0/access-site-column-in-subsites.html</link><author>noreply@blogger.com (Jatinder Singh)</author><thr:total>0</thr:total><feedburner:origLink>http://jatindersingh.blogspot.com/2010/06/access-site-column-in-subsites.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-15774329.post-5389264303549244962</guid><pubDate>Tue, 08 Jun 2010 07:27:00 +0000</pubDate><atom:updated>2010-06-08T00:28:36.518-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">SharePoint</category><category domain="http://www.blogger.com/atom/ns#">Workflow</category><title>Workflow stuck at Starting</title><description>&lt;span style="font-size:85%;"&gt;Workflow stuck with "Starting" status is probably the most difficult to debug because there are generally no diagnostic entries in the ULS logs or event logs to point you to a problem.&lt;br /&gt;The problem we faced at our work place is that all setting are as per this blog post &lt;a href="http://www.tonytestasworld.com/post/Sharepoint-2007-Workflow-stuck-in-quot3bStartingquot3b-state-and-never-completes-when-set-to-start-programmatically.aspx"&gt;http://www.tonytestasworld.com/post/Sharepoint-2007-Workflow-stuck-in-quot3bStartingquot3b-state-and-never-completes-when-set-to-start-programmatically.aspx&lt;/a&gt; .&lt;br /&gt;i.e&lt;br /&gt;1 Environment is properly configured with the SSP and everything set up correctly as mentioned in the blog.&lt;br /&gt;2. Windows Sharepoint Timer service is up and running.&lt;br /&gt;3. Domain account was used for configuring SSP.&lt;br /&gt;Even after doing all the stuff workflows were getting stuck with a "&lt;strong&gt;Starting&lt;/strong&gt;" status.&lt;br /&gt;We have a custom workflow attached to a Document library and it is supposed to trigger when a new item is added or changed. The library has the 'require check out before editing' setting enabled so even a manual document upload to the library would first check the document in and then you'll be presented with the screen for providing any required metadata and once you are through that THEN the workflow would trigger &lt;strong&gt;(workflow requires a document to be checked-in before it can start).&lt;/strong&gt;&lt;br /&gt;So disabling the 'require check out before editing' solved the issue for us. &lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15774329-5389264303549244962?l=jatindersingh.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/TR4NrxqYjfF5i_S20kaRtyjZw0o/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/TR4NrxqYjfF5i_S20kaRtyjZw0o/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/TR4NrxqYjfF5i_S20kaRtyjZw0o/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/TR4NrxqYjfF5i_S20kaRtyjZw0o/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/ProgrammingDiscussions/~4/buKK-SGfn6o" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/ProgrammingDiscussions/~3/buKK-SGfn6o/workflow-stuck-at-starting.html</link><author>noreply@blogger.com (Jatinder Singh)</author><thr:total>1</thr:total><feedburner:origLink>http://jatindersingh.blogspot.com/2010/06/workflow-stuck-at-starting.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-15774329.post-4335537593996564965</guid><pubDate>Mon, 05 Apr 2010 12:40:00 +0000</pubDate><atom:updated>2010-04-05T05:52:29.016-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">UpdatePanel</category><category domain="http://www.blogger.com/atom/ns#">asp.net</category><category domain="http://www.blogger.com/atom/ns#">RadDatePicker</category><title>Skin not Applied to RadDatePicker inside UpdatePanel</title><description>&lt;span style="font-size:85%;"&gt;We were facing this issue where the skin was not applied to the RadDatePicker , in case it is placed inside an UpdatePanel. After searching for a solution it was observed that atleast one DatePicker Control should be placed outside the UpdatePanel. Now the rest of the process becomes easy , we need to hide that dummy Datepicker control once the rendering is complete.&lt;br /&gt;&lt;strong&gt;Code in aspx file&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;code&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&amp;lt;aspx:updatepanel id="UpdatePanel1" runat="server"&amp;gt;&lt;br /&gt;&amp;lt;contenttemplate&amp;gt;&lt;br /&gt;&amp;lt;!-- Put your content here --&amp;gt;&lt;br /&gt;&amp;lt;/contenttemplate&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;/aspx:updatepanel&amp;gt;&lt;br /&gt;&amp;lt;radcln:raddatepicker id="radDt" runat="server" displaydateformat="dd-MMM-yyyy" dateformat="dd-MMM-yyyy" width="100px" mindate="1/Jan/1900"&amp;gt;&amp;lt;/radcln:raddatepicker&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;strong&gt;In code behind.&lt;/strong&gt;&lt;br /&gt;&lt;/span&gt;&lt;code&gt;&lt;span style="font-size:85%;"&gt;protected void Page_PreRenderComplete(object sender, EventArgs e)&lt;br /&gt;{&lt;br /&gt;radDt.Visible = false;&lt;br /&gt;}&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;&lt;span style="font-size:85%;"&gt;we can put the aspx and code behind segments in .master page , so all pages reflect the same.&lt;br /&gt;Hope this helps. &lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15774329-4335537593996564965?l=jatindersingh.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/0C5kUNCo2v2bi5w1cH2lpDfw6fk/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/0C5kUNCo2v2bi5w1cH2lpDfw6fk/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/0C5kUNCo2v2bi5w1cH2lpDfw6fk/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/0C5kUNCo2v2bi5w1cH2lpDfw6fk/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/ProgrammingDiscussions/~4/X-GOz8K8CaM" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/ProgrammingDiscussions/~3/X-GOz8K8CaM/skin-not-applied-to-raddatepicker.html</link><author>noreply@blogger.com (Jatinder Singh)</author><thr:total>0</thr:total><feedburner:origLink>http://jatindersingh.blogspot.com/2010/04/skin-not-applied-to-raddatepicker.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-15774329.post-632493579506525855</guid><pubDate>Mon, 22 Mar 2010 12:07:00 +0000</pubDate><atom:updated>2010-03-22T05:12:09.491-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">WebPart</category><category domain="http://www.blogger.com/atom/ns#">SharePoint</category><category domain="http://www.blogger.com/atom/ns#">C#</category><title>DoesUserHavePermissions in WebPart</title><description>&lt;span style="font-size:85%;"&gt;I wrote a search webpart and it need check if the current user has the right to some lists so I can highlight those lists in different color , but Whenever SPList.DoesUserHavePermissions is called on the object[List/Library], for the user who does not have the permission, it should return false, but it gives an exception. An IE browser pops up asking for user to type in username and password. This dialog box should not appear as my code catches the exception.&lt;br /&gt;Solution: After googling around for some solution on the same line , found points which may help fellow visitors.&lt;br /&gt;#1 DoesUserHavePermissions only works in WSS, not SPS&lt;br /&gt;#2 Suppress Popup for Unauthorized Access:The problem happens with your SPSite object from which you get the web, then the list, there is a property called CatchAccessDeniedException, you should set it to false, then make your call, end the popup will not show up. This is a standard WSS feature, and will happen every time you try to access a resource to which the current user does not have access.&lt;br /&gt;WorkAround : Use the following in your webpart&lt;br /&gt;&lt;code&gt;&lt;pre&gt;&lt;br /&gt;=====&lt;br /&gt;using(SPWeb oWeb=SPContext.Current.Web)&lt;br /&gt;{&lt;br /&gt;   oSite.CatchAccessDeniedException = false; // Suppress the popup&lt;br /&gt;   SPListCollection oList = oWeb.Lists;&lt;br /&gt;   oList.ListsForCurrentUser = true;&lt;br /&gt;   int iCount = oList.Count;&lt;br /&gt;   for(int i=0;i&lt;icount;i++)&gt;{&lt;br /&gt;   try&lt;br /&gt;   {&lt;br /&gt;        if(oList[i].Permissions.DoesUserHavePermissions(SPRights.ViewListItems)) // Check for view Rights&lt;br /&gt;        {&lt;br /&gt;        // Do something&lt;br /&gt;        }&lt;br /&gt;    }&lt;br /&gt;    catch(System.UnauthorizedAccessException ex)&lt;br /&gt;    {&lt;br /&gt;      //Do Nothing, or as you please&lt;br /&gt;    }&lt;br /&gt;   }&lt;br /&gt;}&lt;br /&gt;===== &lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;Hope this helps&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15774329-632493579506525855?l=jatindersingh.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/vMETjnWYVxUd72npBUF73anbCKg/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/vMETjnWYVxUd72npBUF73anbCKg/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/vMETjnWYVxUd72npBUF73anbCKg/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/vMETjnWYVxUd72npBUF73anbCKg/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/ProgrammingDiscussions/~4/ZCE1aFymgXM" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/ProgrammingDiscussions/~3/ZCE1aFymgXM/doesuserhavepermissions-in-webpart.html</link><author>noreply@blogger.com (Jatinder Singh)</author><thr:total>0</thr:total><feedburner:origLink>http://jatindersingh.blogspot.com/2010/03/doesuserhavepermissions-in-webpart.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-15774329.post-7801026742661480114</guid><pubDate>Wed, 03 Feb 2010 13:36:00 +0000</pubDate><atom:updated>2010-02-10T06:55:09.423-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">asp.net</category><category domain="http://www.blogger.com/atom/ns#">XMLDataSource</category><category domain="http://www.blogger.com/atom/ns#">CacheKey</category><title>When caching is enabled for the XmlDataSource that is control tree it requires a UniqueID that is unique throughout the application</title><description>&lt;span style="font-size:85%;"&gt;We were using XmlDataSource in code behind and assigning the same to a menu.&lt;br /&gt;&lt;/span&gt;&lt;code&gt;&lt;span style="font-size:85%;"&gt;XmlDataSource XmlMenu = new XmlDataSource();&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;&lt;span style="font-size:85%;"&gt;This was resulting in "&lt;strong&gt;When caching is enabled for the XmlDataSource that is control tree it requires a UniqueID that is unique throughout the application&lt;/strong&gt;" - Use an ID for XmlDataSource .&lt;br /&gt;The &lt;strong&gt;solution&lt;/strong&gt; for which is specifying the &lt;strong&gt;ID&lt;/strong&gt; of XmlDataSource .&lt;br /&gt;&lt;/span&gt;&lt;code&gt;&lt;span style="font-size:85%;"&gt;XmlMenu.ID = "Menu1";&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;&lt;span style="font-size:85%;"&gt;&lt;strong&gt;Reason:&lt;/strong&gt;XmlDataSource class internally calls a private method called CreateCacheKey.Now, if you are using XmlDataSource without an ID in Code-Behind. This might throw an exception - "When caching is enabled for the XmlDataSource that is not in the pages control tree it requires a UniqueID that is unique throughout the application." This is due to the absence of the &lt;strong&gt;UniqueID&lt;/strong&gt; ,which is used as part of the caching key.Without ID all instances would try to use same caching key. Setting a &lt;strong&gt;distinct&lt;/strong&gt; ID will resolve the problem.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15774329-7801026742661480114?l=jatindersingh.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/aihRUYXGy5uwEzzy2g7UjhT828w/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/aihRUYXGy5uwEzzy2g7UjhT828w/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/aihRUYXGy5uwEzzy2g7UjhT828w/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/aihRUYXGy5uwEzzy2g7UjhT828w/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/ProgrammingDiscussions/~4/kfa7eUt-VwY" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/ProgrammingDiscussions/~3/kfa7eUt-VwY/when-caching-is-enabled-for.html</link><author>noreply@blogger.com (Jatinder Singh)</author><thr:total>0</thr:total><feedburner:origLink>http://jatindersingh.blogspot.com/2010/02/when-caching-is-enabled-for.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-15774329.post-1874408410509139891</guid><pubDate>Mon, 01 Feb 2010 14:49:00 +0000</pubDate><atom:updated>2010-02-01T06:53:14.062-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">VB</category><category domain="http://www.blogger.com/atom/ns#">VC#</category><category domain="http://www.blogger.com/atom/ns#">Visual Studio</category><title>Change default language from VB to VC#</title><description>Visual Studio 2005 is installed on all of our development PCs.Initially our projects were in VB so while installing we choselanguage "Visual Basic" instead of "Visual C#.Now .We are working more on C# and when a new project/site is to be created, we should take care which language we chose otherwise it will get created in default language which is VB in our case.So we wanted to have VC# as our default lanaguage. Searched google/newsgroups to figure out solution.&lt;br /&gt;&lt;br /&gt;Solution&lt;br /&gt;#1. We can do this by using Registry by changing this registry key:HKCU\Software\Microsoft\VisualStudio\8.0\General\NewProjectDialogPreferredLanguage. It was VB in our case we can change it to VC#. The same key also exist in HKEY_USERS. We might do a search for that value name and just change to VC# anywhere you find it.Though this option is not preferrable.&lt;br /&gt;&lt;br /&gt;#2 If we wish to remove VB and use only C# in our programming environment then we could do that using add/remove programs and click on change button for the installation. Just uncheck vb and check off C#.Though this option is also not preferrable.&lt;br /&gt;&lt;br /&gt;#3 The easiest option to do so is&lt;br /&gt;a) Choose Tools -&gt; Import and Export Settings...&lt;br /&gt;b) Select Reset All Settings and click Next&lt;br /&gt;c) Select whether you would like to save the current settings and click Next&lt;br /&gt;d) Select the settings you want to use(change the language to VC#) and click Finish&lt;br /&gt;&lt;br /&gt;Hope it helps the visitor.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15774329-1874408410509139891?l=jatindersingh.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/Oi5hW3d7GiNJ-NzQ-HcyHQlD6dg/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Oi5hW3d7GiNJ-NzQ-HcyHQlD6dg/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/Oi5hW3d7GiNJ-NzQ-HcyHQlD6dg/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Oi5hW3d7GiNJ-NzQ-HcyHQlD6dg/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/ProgrammingDiscussions/~4/nBfmdemOVhU" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/ProgrammingDiscussions/~3/nBfmdemOVhU/change-default-language-from-vb-to-vc.html</link><author>noreply@blogger.com (Jatinder Singh)</author><thr:total>0</thr:total><feedburner:origLink>http://jatindersingh.blogspot.com/2010/02/change-default-language-from-vb-to-vc.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-15774329.post-6492267831347800240</guid><pubDate>Fri, 29 Jan 2010 08:10:00 +0000</pubDate><atom:updated>2010-01-29T00:27:12.861-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">impersonation</category><category domain="http://www.blogger.com/atom/ns#">Crystal Reports</category><category domain="http://www.blogger.com/atom/ns#">.Net</category><title>Exception Details: System.Runtime.InteropServices.COMException: Access is Denied</title><description>"Access Denied" : Error was creeping when we are tring to load the crystal report file by using Load("~/Reports/MyReport.rpt"); The error looks silly as it is not pointing where the access should be given. After doing bit of googling and applying/reverting the changes found the solution.&lt;br /&gt;&lt;strong&gt;Reason &amp;amp; Solution&lt;/strong&gt;&lt;br /&gt;When a CR[Crystal Report] is being created in ASP.NET, the .NET will create a report file in a temp folder, e.g. C:\Documents and Settings\MachineName\ASPNET\Local Settings\Temp.&lt;br /&gt;#1 You can try to give ASPNET permission for this folder.&lt;br /&gt;#2 You can also update web.config to impersonate.&lt;br /&gt;&lt;code&gt;&lt;br /&gt;&amp;lt;authentication mode="Windows"&amp;gt;&lt;br /&gt;&amp;lt;identity impersonate="true"&lt;br /&gt;userName="mydomainname\myusername"&lt;br /&gt;password="mypassword" /&amp;gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;I preferred the #1 solution ,as it is easier to give permissions once on the folder; You may like to try option #2 but keep a note that whenever Domain[very rare],user or password changes at that point web.config needs to be updated.&lt;br /&gt;&lt;br /&gt;Hope it helps&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15774329-6492267831347800240?l=jatindersingh.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/na8uLK0PprsYzBgSBKfKByztsjw/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/na8uLK0PprsYzBgSBKfKByztsjw/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/na8uLK0PprsYzBgSBKfKByztsjw/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/na8uLK0PprsYzBgSBKfKByztsjw/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/ProgrammingDiscussions/~4/G_26sm2ST0M" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/ProgrammingDiscussions/~3/G_26sm2ST0M/exception-details-systemruntimeinterops.html</link><author>noreply@blogger.com (Jatinder Singh)</author><thr:total>0</thr:total><feedburner:origLink>http://jatindersingh.blogspot.com/2010/01/exception-details-systemruntimeinterops.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-15774329.post-4935827082035206568</guid><pubDate>Mon, 25 Jan 2010 12:31:00 +0000</pubDate><atom:updated>2010-01-25T04:35:50.226-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">TNS</category><category domain="http://www.blogger.com/atom/ns#">Oracle</category><category domain="http://www.blogger.com/atom/ns#">tnsnames.ora</category><title>TNS-3505 Failed to resolve name</title><description>On the primary database the current tnsnames.ora config for the db in&lt;br /&gt;question looks like this :&lt;br /&gt;&lt;code&gt;&lt;br /&gt;LIVE =&lt;br /&gt;(DESCRIPTION =&lt;br /&gt;(ADDRESS_LIST =&lt;br /&gt;(ADDRESS = (PROTOCOL = TCP)(HOST = A.B.C.D)(PORT = 1521))&lt;br /&gt;)&lt;br /&gt;(CONNECT_DATA =&lt;br /&gt;(SID = live)&lt;br /&gt;)&lt;br /&gt;)&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;This works ok - tnsping etc ...&lt;br /&gt;&lt;br /&gt;now when I try to add an entry for &amp;lt;dbname&amp;gt;_PRIMARY or&lt;br /&gt;&amp;lt;dbname&amp;gt;_STANDBY,&lt;br /&gt;&lt;code&gt;&lt;br /&gt;LIVE2 =&lt;br /&gt;(DESCRIPTION =&lt;br /&gt;(ADDRESS_LIST =&lt;br /&gt;(ADDRESS = (PROTOCOL = TCP)(HOST = X.Y.C.D)(PORT = 1521))&lt;br /&gt;)&lt;br /&gt;(CONNECT_DATA =&lt;br /&gt;(SID = live)&lt;br /&gt;)&lt;br /&gt;)&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;I get a TNS-3505 Failed to resolve name.&lt;br /&gt;I tried various combinations but none worked.&lt;br /&gt;&lt;br /&gt;Solution:&lt;br /&gt;After doing lot of comparsion with existing files TNSNAME.ORA , it appeared that nothing is wrong.&lt;br /&gt;Giving the new entry a closer look revealed that minor difference ,a leading whitespace[space on left] exist . Removed that extra space , all worked fine.&lt;br /&gt;&lt;br /&gt;Hope it helps&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15774329-4935827082035206568?l=jatindersingh.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/Eir1S_3q1d8sD3hYk-70EIbFHts/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Eir1S_3q1d8sD3hYk-70EIbFHts/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/Eir1S_3q1d8sD3hYk-70EIbFHts/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Eir1S_3q1d8sD3hYk-70EIbFHts/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/ProgrammingDiscussions/~4/R5XdWKaN6xM" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/ProgrammingDiscussions/~3/R5XdWKaN6xM/tns-3505-failed-to-resolve-name.html</link><author>noreply@blogger.com (Jatinder Singh)</author><thr:total>0</thr:total><feedburner:origLink>http://jatindersingh.blogspot.com/2010/01/tns-3505-failed-to-resolve-name.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-15774329.post-399125346448037227</guid><pubDate>Wed, 23 Dec 2009 07:06:00 +0000</pubDate><atom:updated>2009-12-22T23:22:33.690-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">windows 2003</category><category domain="http://www.blogger.com/atom/ns#">iis</category><category domain="http://www.blogger.com/atom/ns#">asp</category><title>Bad Request (Invalid Hostname)</title><description>While trying to host a site on IIS /windows 2003 devleoped in ASP, we got the following error.&lt;br /&gt;&lt;div&gt;"Http Error 404 - Bad Request (Invalid Hostname)" .&lt;/div&gt;&lt;div&gt;Located the file C:\WINNT\system32\LogFiles\HTTPERR.log to see if the error could be diagnosed with error description. All the other websites were running fine.&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;strong&gt;Solution&lt;/strong&gt;: In Web Site Advanced property Host Header value was specified. Removing the "Host Header Value" resulted in operating site.&lt;/div&gt;&lt;br /&gt;&lt;div&gt;refer the image as shown below&lt;/div&gt;&lt;a href="http://2.bp.blogspot.com/_TirSRWCE5e0/SzHEzK-u2NI/AAAAAAAAAu0/Dzmya9cvjeY/s1600-h/Error.bmp"&gt;&lt;img id="BLOGGER_PHOTO_ID_5418328210103261394" style="FLOAT: left; MARGIN: 0px 10px 10px 0px; WIDTH: 320px; CURSOR: hand; HEIGHT: 300px" alt="" src="http://2.bp.blogspot.com/_TirSRWCE5e0/SzHEzK-u2NI/AAAAAAAAAu0/Dzmya9cvjeY/s320/Error.bmp" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15774329-399125346448037227?l=jatindersingh.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/h0wFbRId57Vkowk_udArnjZU8FE/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/h0wFbRId57Vkowk_udArnjZU8FE/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/h0wFbRId57Vkowk_udArnjZU8FE/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/h0wFbRId57Vkowk_udArnjZU8FE/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/ProgrammingDiscussions/~4/Hnrx6y_b8XI" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/ProgrammingDiscussions/~3/Hnrx6y_b8XI/bad-request-invalid-hostname.html</link><author>noreply@blogger.com (Jatinder Singh)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/_TirSRWCE5e0/SzHEzK-u2NI/AAAAAAAAAu0/Dzmya9cvjeY/s72-c/Error.bmp" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://jatindersingh.blogspot.com/2009/12/bad-request-invalid-hostname.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-15774329.post-9065839196228961976</guid><pubDate>Wed, 16 Dec 2009 10:46:00 +0000</pubDate><atom:updated>2010-02-10T06:53:47.842-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">80004005</category><category domain="http://www.blogger.com/atom/ns#">windows 2003</category><category domain="http://www.blogger.com/atom/ns#">asp.net</category><category domain="http://www.blogger.com/atom/ns#">iis</category><title>Windows 2003 /DC : Application Server Unavailable</title><description>&lt;p&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;While we were hosting an web application on IIS ,got this error&lt;br /&gt;&lt;strong&gt;Application Server Unavailable&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;The web application you are attempting to access on this web server is currently unavailable.Please hit the "Refresh" button in your web browser to retry your request.&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;On inspecting further the event log has captured following&lt;br /&gt;&lt;strong&gt;aspnet_wp.exe&lt;/strong&gt; could not be launched because the username and/or password supplied in the processModel section of the config file are invalid.aspnet_wp.exe could not be started.HRESULT for the failure: &lt;strong&gt;80004005&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Explaination&lt;/strong&gt;:&lt;br /&gt;By default,&lt;strong&gt; ASP.NET &lt;/strong&gt;runs its worker process (Aspnet_wp.exe) with a weak account (the local machine account, which is named &lt;strong&gt;ASPNET&lt;/strong&gt;) to provide a more secure environment. On a domain controller or on a backup domain controller, all user accounts are domain accounts and are not local machine accounts. Therefore, Aspnet_wp.exe fails to start because it cannot find a local account named "&lt;strong&gt;localmachinename\ASPNET&lt;/strong&gt;". To provide a valid user account on the domain controller, you must specify an explicit account in the &lt;strong&gt;&lt;processmodel&gt;&lt;/strong&gt;section of the Machine.config file, or you must use the SYSTEM account.&lt;br /&gt;&lt;br /&gt;To work around this problem, use one of the following methods:&lt;br /&gt;&lt;/span&gt;&lt;ul&gt;&lt;br /&gt;&lt;li&gt;&lt;span style="font-size:85%;"&gt;Create a weak account that has the correct permissions, and then configure the &lt;processmodel&gt;section of the Machine.config file to use that account.&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:85%;"&gt;Set the userName attribute to SYSTEM in the &lt;processmodel&gt;section of the Machine.config file.&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:85%;"&gt;Configure the &lt;processmodel&gt;section of the Machine.config file to use an administrator account.&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;One other special value for userName is System, with the password AutoGenerate, which runs the process as an administrative account and allows all ASP.NET user code running under the process to have full administrative privileges.&lt;br /&gt;For deployment on local development environment one can use 2nd option , for deployment on client side 1st option is the best. &lt;/span&gt;&lt;p&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15774329-9065839196228961976?l=jatindersingh.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/elyeQVhA7vyWYCKcxuyeZ6vy31w/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/elyeQVhA7vyWYCKcxuyeZ6vy31w/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/elyeQVhA7vyWYCKcxuyeZ6vy31w/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/elyeQVhA7vyWYCKcxuyeZ6vy31w/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/ProgrammingDiscussions/~4/QLhgzAA9B_g" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/ProgrammingDiscussions/~3/QLhgzAA9B_g/application-server-unavailable-web.html</link><author>noreply@blogger.com (Jatinder Singh)</author><thr:total>0</thr:total><feedburner:origLink>http://jatindersingh.blogspot.com/2009/12/application-server-unavailable-web.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-15774329.post-6245598603800335454</guid><pubDate>Wed, 16 Dec 2009 08:44:00 +0000</pubDate><atom:updated>2009-12-16T02:54:56.607-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Ajax</category><category domain="http://www.blogger.com/atom/ns#">asp.net</category><title>System.InvalidOperationException: The control with ID requires a ScriptManager on the page. The ScriptManager must appear before any controls that</title><description>&lt;strong&gt;System.InvalidOperationException: The control with ID requires a ScriptManager on the page. The ScriptManager must appear before any controls that need it.&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;We faced this error while working on one of our project's page. The error appear to be very silly as Scriptmanager was declared on the page; page worked fine on it's first load. After postback,it was giving the above error. On inspecting the page further it was found the culprit was "Page.Items.Clear()" . It was clearing all objects including Scriptmanager from Page's object list.&lt;br /&gt;&lt;strong&gt;Rule of Thumb : donot use "Page.Items.Clear()" when using Ajax&lt;/strong&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15774329-6245598603800335454?l=jatindersingh.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/NWU_IeN17pFfOHQwU63W_QuuA2A/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/NWU_IeN17pFfOHQwU63W_QuuA2A/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/NWU_IeN17pFfOHQwU63W_QuuA2A/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/NWU_IeN17pFfOHQwU63W_QuuA2A/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/ProgrammingDiscussions/~4/RgG1k1HK3yU" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/ProgrammingDiscussions/~3/RgG1k1HK3yU/systeminvalidoperationexception-control.html</link><author>noreply@blogger.com (Jatinder Singh)</author><thr:total>0</thr:total><feedburner:origLink>http://jatindersingh.blogspot.com/2009/12/systeminvalidoperationexception-control.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-15774329.post-5224213204775241090</guid><pubDate>Fri, 30 Oct 2009 08:36:00 +0000</pubDate><atom:updated>2009-10-30T01:50:52.004-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Sequence</category><category domain="http://www.blogger.com/atom/ns#">Oracle</category><category domain="http://www.blogger.com/atom/ns#">CurrVal</category><title>How to find the current value of a sequence number</title><description>This seems to be a simple question , and the following error will appear if we try currval on a sequence.&lt;br /&gt;&lt;br /&gt;Select s.currval from dual&lt;br /&gt;&lt;br /&gt;ORA-08002: sequence S.CURRVAL is not yet defined in this session&lt;br /&gt;&lt;br /&gt;CURRVAL doesn't represent anything global about the sequence number generator. It only represents the value returned to your session (the database session processing the current statements) the last time you called NEXTVAL for that sequence&lt;br /&gt;&lt;br /&gt;Solutions :&lt;br /&gt;#1 before using CURRVAL you should call NEXTVAL .&lt;br /&gt;#2 You can get the current value of the Sequence by querying DBA_SEQUENCES , which is Last_number.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15774329-5224213204775241090?l=jatindersingh.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/m0CM3gWH2TXut0OIh6KsFzBX_ow/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/m0CM3gWH2TXut0OIh6KsFzBX_ow/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/m0CM3gWH2TXut0OIh6KsFzBX_ow/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/m0CM3gWH2TXut0OIh6KsFzBX_ow/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/ProgrammingDiscussions/~4/dmBHVr4IUsE" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/ProgrammingDiscussions/~3/dmBHVr4IUsE/how-to-find-current-value-of-sequence.html</link><author>noreply@blogger.com (Jatinder Singh)</author><thr:total>1</thr:total><feedburner:origLink>http://jatindersingh.blogspot.com/2009/10/how-to-find-current-value-of-sequence.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-15774329.post-443292221452808698</guid><pubDate>Fri, 30 Oct 2009 07:10:00 +0000</pubDate><atom:updated>2009-11-16T02:03:53.888-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Digital Signature</category><category domain="http://www.blogger.com/atom/ns#">Add-on</category><category domain="http://www.blogger.com/atom/ns#">SAP</category><title>An attempt was made to load a program with an incorrect format (Exception from HRESULT:0X800700008)</title><description>&lt;div&gt;This problem is for sure of 64bit machine.&lt;br /&gt;&lt;br /&gt;If an add-on is set to run on a 64 bit environment ensure it is compiled with a 32 bit operating system. The reason is the current &lt;span style="font-weight: bold;"&gt;SAPbobsCOM.dll&lt;/span&gt; can not run with 64 bit compiled add-ons.&lt;br /&gt;&lt;br /&gt;You must compile your add-on and your installation program at 32 bit. You must force it because &lt;span style="font-weight: bold;"&gt;SAPBouiCom e SAPBobsCom&lt;/span&gt; are 32 bit component. A 64-bit program cannot call a 32-bit component.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Solution:&lt;/span&gt;When you create your application and when you are creating through your B1 installer. Go to the project properties--&gt;select compile option and in that Advanced compile option--&gt;change your target CPU to x86..rebuild your project again and create your refresh ard using these settings...&lt;br /&gt;&lt;br /&gt;After doing above steps we faced following Error: "wrong digital signture for addon instller" &lt;span style="font-weight: bold;"&gt;Solution:&lt;/span&gt;The problem may be that rebuilding add-on project then generate ARD, while the old add-on executable is included in your add-on installer.&lt;br /&gt;You should make sure it is the same executable of your add-on when generate the ARD and Installation. And you're recommended to do this with B1DE, it helps you to generate ARD and Installation once.&lt;br /&gt;Actually, In ARD file it has unique digital signature for the add-on executable. The mismatch of the executable of add-on in ARD and Installer will lead to wrong digital signature error. Reason for Wrong digital signature:&lt;br /&gt;1.You build the add-on project, then add-on executable is generated. e.g. MyAddOn.exe&lt;br /&gt;2.You use this executable in the add-on installer (what ever InstallShield or other)&lt;br /&gt;3.You rebuild the add-on project, then actually it is a different executable generated. Even its name is still MyAddOn.exe&lt;br /&gt;4.You generate ARD on the basis of the second one. Then you will get the Wrong Digital Signature. Again, you should make sure it is the same executable file of your add-on that is used in ARD generation and included in your install shield. Meaning you shouldn't rebuild the add-on project when generate ARD or Installation, make sure ARD and Installer are referring to the same "version" of add-on executable&lt;br /&gt;&lt;br /&gt;Every time you create an installer, you should create a new .ard file. This file contains an digital signature of your installer executable, and one digital signature of the main executable of your Add-on. (with digital signature SB1 means some kind of hash/checksum of the file)The notice you've get is because you don't have the correct signature in your .ard file for the Add-on executable. If you are creating it manually, select the correct Add-on Exe Full Path in the Add-On Registration Data Generator.&lt;br /&gt;I hope this will help...as it solved my problem&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15774329-443292221452808698?l=jatindersingh.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/yh1EKTVBeWSCxOfizmMy25IyL28/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/yh1EKTVBeWSCxOfizmMy25IyL28/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/yh1EKTVBeWSCxOfizmMy25IyL28/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/yh1EKTVBeWSCxOfizmMy25IyL28/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/ProgrammingDiscussions/~4/Ha3-xg-5stM" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/ProgrammingDiscussions/~3/Ha3-xg-5stM/attempt-was-made-to-load-program-with.html</link><author>noreply@blogger.com (Jatinder Singh)</author><thr:total>0</thr:total><feedburner:origLink>http://jatindersingh.blogspot.com/2009/10/attempt-was-made-to-load-program-with.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-15774329.post-3703597769511643907</guid><pubDate>Mon, 07 Sep 2009 10:07:00 +0000</pubDate><atom:updated>2009-09-07T03:11:28.111-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Combo</category><category domain="http://www.blogger.com/atom/ns#">SharePoint</category><category domain="http://www.blogger.com/atom/ns#">DropdownList</category><title>DataBinding: 'Microsoft.SharePoint.SPListItem' does not contain a property with the name</title><description>When trying to bind the 'Extension' column of a custom Sharepoint List to the DropdownList , I was facing the error :&lt;br /&gt;&lt;br /&gt;DataBinding: 'Microsoft.SharePoint.SPListItem' does not contain a property with the name  'Extension'&lt;br /&gt;&lt;br /&gt;In case I tried the following it ran successfully&lt;br /&gt;&lt;code&gt;&lt;br /&gt;using (SPWeb web = site.OpenWeb())&lt;br /&gt;   {&lt;br /&gt;       SPList list = web.Lists["Departments"];&lt;br /&gt;       cboDepartment.DataSource = list.Items;&lt;br /&gt;       cboDepartment.DataValueField = "Title"; // List field holding value&lt;br /&gt;       cboDepartment.DataTextField = "Title"; // List field holding name to be displayed on page&lt;br /&gt;       cboDepartment.DataBind();&lt;br /&gt;   }&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;So, I believe that whatever it is tryed to bind through DataTextField and DataValueField is supposed to be a property of the object we are binding to. For instance, SPListItem do have Title and ID properties, but it does not have 'Extension' property (in the meaning of the SPListItem class member).&lt;br /&gt;&lt;br /&gt;So the following solutions were tried.&lt;br /&gt;&lt;br /&gt;Solution #1&lt;br /&gt;&lt;code&gt;&lt;br /&gt;           SPWeb site = SPContext.Current.Web;&lt;br /&gt;           DropDownList cboExtensions = new DropDownList();&lt;br /&gt;           SPList list = site.Lists["ImageExtensionList"];&lt;br /&gt;           SPListItemCollection lstCollection = list.Items;&lt;br /&gt;           cboExtensions.DataSource = lstCollection.GetDataTable();&lt;br /&gt;           cboExtensions.DataValueField = "Extension"; // List field holding value&lt;br /&gt;           cboExtensions.DataTextField = "Extension"; // List field holding name to be displayed on page&lt;br /&gt;           cboExtensions.DataBind();&lt;br /&gt;           this.Controls.Add(cboExtensions);&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Solution #2&lt;br /&gt;&lt;code&gt;&lt;br /&gt;       SPWeb site = SPContext.Current.Web;&lt;br /&gt;           DropDownList cboExtensions = new DropDownList();&lt;br /&gt;           SPList list = site.Lists["ImageExtensionList"];&lt;br /&gt;foreach (SPListItem listRecords in list.Items)&lt;br /&gt;           {&lt;br /&gt;               //ListItem tempItem = listRecords["Extension"].ToString();&lt;br /&gt;               ListItem tempItem = new ListItem(listRecords["Extension"].ToString(), listRecords["Extension"].ToString());&lt;br /&gt;               cboExtensions.Items.Add(tempItem);  //ddlFromSPList is the name of the dropdown list&lt;br /&gt;           }&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;b&gt;Conclusion:&lt;/b&gt;&lt;br /&gt;Whenever Title or ID is specified it will work without any issue. When the ListItemCollection is bounded to the DropDownList ,it is expecting Valuefield and TextField to be Properties. "Title" and "ID" are properties of List , hence it worked without any issue.&lt;br /&gt;&lt;br /&gt;So the simple solution is to get the DataTable from the ListCollection or Get the items of the list , iterate the list and add the items to DropDownlist.&lt;br /&gt;&lt;br /&gt;Hope it Helps&lt;br /&gt;Jatinder Singh&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15774329-3703597769511643907?l=jatindersingh.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/Dr0O0zip6ITSglqnDXlA4BS_Hh4/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Dr0O0zip6ITSglqnDXlA4BS_Hh4/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/Dr0O0zip6ITSglqnDXlA4BS_Hh4/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Dr0O0zip6ITSglqnDXlA4BS_Hh4/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/ProgrammingDiscussions/~4/N9MtmbvOWbU" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/ProgrammingDiscussions/~3/N9MtmbvOWbU/databinding-microsoftsharepointsplistit.html</link><author>noreply@blogger.com (Jatinder Singh)</author><thr:total>0</thr:total><feedburner:origLink>http://jatindersingh.blogspot.com/2009/09/databinding-microsoftsharepointsplistit.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-15774329.post-8637491555323321441</guid><pubDate>Fri, 04 Sep 2009 15:31:00 +0000</pubDate><atom:updated>2009-12-16T02:55:58.463-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">WebPart</category><category domain="http://www.blogger.com/atom/ns#">SharePoint</category><category domain="http://www.blogger.com/atom/ns#">Assembly</category><title>This solution contains two assemblies with the same name, or the SharePoint server already has an assembly with the specified name.</title><description>While trying to redeploy the same WebPart ,I was facing this rather silly error. I tried to do the “cleanup” by right clicking the Project and then redeployed same error appeared. Later figured it out by throwing a search in Google&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;#1 See if the feature that you're trying to add still exists in the "\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\FEATURES" path. Delete it.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;#2 Uninstall the particular Assembly from c:\windows\assembly folder too.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;#3 Try to deploy it again.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15774329-8637491555323321441?l=jatindersingh.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/ljOpjoEsmr5rDVRTgu3ZPi2BhMg/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/ljOpjoEsmr5rDVRTgu3ZPi2BhMg/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/ljOpjoEsmr5rDVRTgu3ZPi2BhMg/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/ljOpjoEsmr5rDVRTgu3ZPi2BhMg/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/ProgrammingDiscussions/~4/xSyWutDshRA" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/ProgrammingDiscussions/~3/xSyWutDshRA/this-solution-contains-two-assemblies.html</link><author>noreply@blogger.com (Jatinder Singh)</author><thr:total>0</thr:total><feedburner:origLink>http://jatindersingh.blogspot.com/2009/09/this-solution-contains-two-assemblies.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-15774329.post-4106612405295347178</guid><pubDate>Fri, 04 Sep 2009 15:29:00 +0000</pubDate><atom:updated>2010-02-10T06:56:36.954-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">UserControl</category><category domain="http://www.blogger.com/atom/ns#">WebPart</category><category domain="http://www.blogger.com/atom/ns#">SharePoint</category><title>Design decision to use ascx control in sharepoint webpart versus pure sharepoint webpart</title><description>&lt;p class="MsoListParagraph" style="BACKGROUND: white; MARGIN: 0in 0in 0pt"&gt;&lt;span style="font-size:85%;"&gt;&lt;span class="Apple-style-span"  style="font-family:Verdana;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoListParagraph" style="BACKGROUND: white; MARGIN: 0in 0in 0pt"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:'Calibri','sans-serif';color:black;"&gt;1.&lt;/span&gt;&lt;span style="color:black;"&gt;       &lt;/span&gt;&lt;span style="font-family:'Calibri','sans-serif';color:black;"&gt;Create asp.net webusercontrol (.ascx), and then load that user control in the newly created webpart.&lt;/span&gt;&lt;span style="font-family:'Verdana','sans-serif';color:black;"&gt;&lt;?xml:namespace prefix = o /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoListParagraph" style="BACKGROUND: white; MARGIN: 0in 0in 0pt"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:'Calibri','sans-serif';color:black;"&gt;2.&lt;/span&gt;&lt;span style="color:black;"&gt;       &lt;/span&gt;&lt;span style="font-family:'Calibri','sans-serif';color:black;"&gt;Create a webpart from scratch, by putting the code to generate each and every control in code.&lt;/span&gt;&lt;span style="font-family:'Verdana','sans-serif';color:black;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="LINE-HEIGHT: 115%;font-family:'Verdana','sans-serif';font-size:85%;color:black;"   &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="LINE-HEIGHT: 115%;font-family:'Verdana','sans-serif';color:black;"  &gt;&lt;span style="font-size:85%;"&gt;if you need to create a control with a really advanced user interface, for example many controls and stuff, then a user control could be much easier to create.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="LINE-HEIGHT: 115%;font-family:'Verdana','sans-serif';color:black;"  &gt;&lt;span style="font-size:85%;"&gt;I have found that the execution lifecycle (control viewstate, event bubbling, etc.) is a pain when going with Option 2. I choose Option 1 because the viewstate is easily managed in the code. Additionally, I like Option 1 because I can visually design the page using the VS toolbox to drag and drop controls on the design surface as opposed to Option 2 where you have to handle each control manually in code. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="LINE-HEIGHT: 115%; FONT-FAMILY: 'Verdana','sans-serif'font-family:'Times New Roman';color:black;"  &gt;&lt;span style="font-size:85%;"&gt;The approach 2 may sound difficult because of not very great integration with Galleries , but if you have the luxury of invest the time, you'll be better off in the long run.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15774329-4106612405295347178?l=jatindersingh.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/yxKuiUUkJ7JqRzCb13_lhRvDUEI/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/yxKuiUUkJ7JqRzCb13_lhRvDUEI/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/yxKuiUUkJ7JqRzCb13_lhRvDUEI/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/yxKuiUUkJ7JqRzCb13_lhRvDUEI/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/ProgrammingDiscussions/~4/KxJUCTOhbis" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/ProgrammingDiscussions/~3/KxJUCTOhbis/design-decision-to-use-ascx-control-in.html</link><author>noreply@blogger.com (Jatinder Singh)</author><thr:total>0</thr:total><feedburner:origLink>http://jatindersingh.blogspot.com/2009/09/design-decision-to-use-ascx-control-in.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-15774329.post-9007905274130086762</guid><pubDate>Fri, 04 Sep 2009 15:27:00 +0000</pubDate><atom:updated>2009-09-04T08:27:54.724-07:00</atom:updated><title>The type or namespace name 'Data' does not exist in the namespace 'System' (are you missing an assembly reference?)</title><description>&lt;p class="MsoNormal"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana; font-size: 11px; line-height: 12px; "&gt;This is a common but simple problem to solve , below is explanation and steps to solve.&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size:8.0pt;line-height:115%;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;"&gt;using Directives at the top of code files just allows you to use types in a namespace without having to fully qualify them.&lt;br /&gt;e.g. using System.Data directive allows you to declare a DataColumn as following:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size:8.0pt;line-height:115%;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;"&gt;DataColumn dc = new DataColumn(); &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size:8.0pt;line-height:115%;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;"&gt;instead of: &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size:8.0pt;line-height:115%;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;"&gt;System.Data.DataColumn dc = new System.Data.DataColumn();&lt;br /&gt;&lt;br /&gt;using statements define scope, but you still need a reference to the Library so that the project will build.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size:8.0pt;line-height:115%;font-family: &amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;"&gt;Do you see System.Data listed under it?&lt;br /&gt;Open your solution explorer and Expand References:&lt;br /&gt;More than likely not, hence the complaint from the Compiler.&lt;br /&gt;&lt;br /&gt;&lt;b style="mso-bidi-font-weight:normal"&gt;What to do/ how to Solve??&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;Right click on References, and from the Context Menu, select &lt;b style="mso-bidi-font-weight:normal"&gt;"Add Reference"&lt;/b&gt;&lt;br /&gt;The Add Reference view will default to the .NET tab, scroll down until you find the System.Data, select it and click the OK button.&lt;br /&gt;&lt;br /&gt;Build your app.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;div style="mso-element:para-border-div;border:none;border-bottom:dotted windowtext 3.0pt; padding:0in 0in 1.0pt 0in"&gt;  &lt;p class="MsoNormal" style="border:none;mso-border-bottom-alt:dotted windowtext 3.0pt; padding:0in;mso-padding-alt:0in 0in 1.0pt 0in"&gt;&lt;span style="font-size:8.0pt; line-height:115%;font-family:&amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;"&gt;Hope it Helps&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15774329-9007905274130086762?l=jatindersingh.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/U93NzOi0eSg2u3IpQZ4Touge-MY/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/U93NzOi0eSg2u3IpQZ4Touge-MY/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/U93NzOi0eSg2u3IpQZ4Touge-MY/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/U93NzOi0eSg2u3IpQZ4Touge-MY/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/ProgrammingDiscussions/~4/DhqFaoC_J_E" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/ProgrammingDiscussions/~3/DhqFaoC_J_E/type-or-namespace-name-data-does-not.html</link><author>noreply@blogger.com (Jatinder Singh)</author><thr:total>1</thr:total><feedburner:origLink>http://jatindersingh.blogspot.com/2009/09/type-or-namespace-name-data-does-not.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-15774329.post-3745216488946622387</guid><pubDate>Wed, 02 Sep 2009 13:13:00 +0000</pubDate><atom:updated>2010-02-10T07:10:14.107-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">WebPart</category><category domain="http://www.blogger.com/atom/ns#">SharePoint</category><title>The feature name WebPart1 already exists in SharePoint. You need to rename the feature before solution deployment can succeed</title><description>&lt;span style="font-size:85%;"&gt;While working in Visual Studio 2008 , we were able to create new WebParts and deploy them easily . Off late we started facing the following problem.&lt;br /&gt;&lt;br /&gt;“The feature name WebPart1 already exists in SharePoint. You need to rename the feature before solution deployment can succeed.”&lt;br /&gt;&lt;br /&gt;The error may seem stupid , the solution to it is simple.&lt;br /&gt;&lt;br /&gt;A simple method to avoid the above error is as follows&lt;br /&gt;&lt;/span&gt;&lt;ol&gt;&lt;li&gt;&lt;span style="font-size:85%;"&gt;Immediately after creating a new webpart project, remove the Webpart1 folder completely.&lt;/span&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;span style="font-size:85%;"&gt;Add new web part to the project by right clicking on the project and selecting new item from the context menu.&lt;/span&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;span style="font-size:85%;"&gt;In the Add new item dialog box select Sharepoint from categories and Select Web Part from templates.&lt;/span&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;span style="font-size:85%;"&gt;Give a name for your webpart and click Add button.&lt;br /&gt;&lt;/span&gt;&lt;a href="http://2.bp.blogspot.com/_TirSRWCE5e0/Sp51Tin_VYI/AAAAAAAAAss/8iFKgdXGObE/s1600-h/HelloWorldWebPart.JPG"&gt;&lt;span style="font-size:85%;"&gt;&lt;img id="BLOGGER_PHOTO_ID_5376863983699449218" style="FLOAT: left; MARGIN: 0px 10px 10px 0px; WIDTH: 320px; CURSOR: hand; HEIGHT: 194px" alt="" src="http://2.bp.blogspot.com/_TirSRWCE5e0/Sp51Tin_VYI/AAAAAAAAAss/8iFKgdXGObE/s320/HelloWorldWebPart.JPG" border="0" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15774329-3745216488946622387?l=jatindersingh.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/VoHPpzpX4-Bn4uLqqGG67Y58EPA/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/VoHPpzpX4-Bn4uLqqGG67Y58EPA/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/VoHPpzpX4-Bn4uLqqGG67Y58EPA/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/VoHPpzpX4-Bn4uLqqGG67Y58EPA/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/ProgrammingDiscussions/~4/XxaFyp81HSM" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/ProgrammingDiscussions/~3/XxaFyp81HSM/feature-name-webpart1-already-exists-in.html</link><author>noreply@blogger.com (Jatinder Singh)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/_TirSRWCE5e0/Sp51Tin_VYI/AAAAAAAAAss/8iFKgdXGObE/s72-c/HelloWorldWebPart.JPG" height="72" width="72" /><thr:total>2</thr:total><feedburner:origLink>http://jatindersingh.blogspot.com/2009/09/feature-name-webpart1-already-exists-in.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-15774329.post-5558907075834861931</guid><pubDate>Fri, 28 Aug 2009 12:22:00 +0000</pubDate><atom:updated>2009-08-28T05:31:17.366-07:00</atom:updated><title>Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 8000401a</title><description>&lt;p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; line-height:normal"&gt;&lt;span class="Apple-style-span" style="color: rgb(128, 0, 0); font-family: Verdana; font-size: 13px; font-weight: bold;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; line-height:normal"&gt;&lt;span style="font-size:9.5pt;font-family:&amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;;mso-bidi-font-family:&amp;quot;Times New Roman&amp;quot;"&gt;If you add a reference to Microsoft Excel and then try to use it within your ASP.NET application you may receive the following errors.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; line-height:normal"&gt;&lt;b&gt;&lt;span style="font-size:9.5pt;mso-bidi-font-size:11.0pt; font-family:&amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;; mso-bidi-font-family:&amp;quot;Times New Roman&amp;quot;;color:red"&gt;Server Error in '/excel' Application. &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size:9.5pt;font-family:&amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;;mso-bidi-font-family:&amp;quot;Times New Roman&amp;quot;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; line-height:normal"&gt;&lt;b&gt;&lt;span style="font-size:9.5pt;mso-bidi-font-size:11.0pt; font-family:&amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;; mso-bidi-font-family:&amp;quot;Times New Roman&amp;quot;;color:maroon"&gt;Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 8000401a. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; line-height:normal"&gt;&lt;span style="font-size:9.5pt;font-family:&amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;;mso-bidi-font-family:&amp;quot;Times New Roman&amp;quot;"&gt;We referred this link for the DCOMCNFG settings required on Windows 2003 server &lt;a href="http://blog.crowe.co.nz/archive/2006/03/02/589.aspx"&gt;http://blog.crowe.co.nz/archive/2006/03/02/589.aspx&lt;/a&gt; &lt;span style="mso-spacerun:yes"&gt; &lt;/span&gt;&lt;span style="mso-spacerun:yes"&gt; &lt;/span&gt;. Even after the settings the problem was&lt;span style="mso-spacerun:yes"&gt;  &lt;/span&gt;not resolved and following error started to appear&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; line-height:normal"&gt;&lt;b&gt;&lt;span style="font-size:9.5pt;mso-bidi-font-size:11.0pt; font-family:&amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;; mso-bidi-font-family:&amp;quot;Times New Roman&amp;quot;;color:maroon"&gt;Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80070005. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;Make some changes also in ASP.Net Site’s web.config file.&lt;/p&gt;  &lt;p class="MsoNormal"&gt;Given below is the settings for web.config file.&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height: normal;mso-layout-grid-align:none;text-autospace:none"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New'; font-size: 13px;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="mso-margin-top-alt:auto;margin-bottom:0in;margin-bottom: .0001pt;line-height:normal"&gt;&lt;span style="font-size:10.0pt;font-family:&amp;quot;Courier New&amp;quot;; mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;;color:black"&gt;&amp;lt;identity impersonate="true" userName="DomainName\administrator" password="password"/&amp;gt;&lt;/span&gt;&lt;span style="font-size:12.0pt; font-family:&amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;; color:black"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="mso-margin-top-alt:auto;margin-bottom:0in;margin-bottom: .0001pt;line-height:normal"&gt;&lt;span style="font-size:10.0pt;font-family:&amp;quot;Courier New&amp;quot;; mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;;color:black"&gt;           &lt;/span&gt;&lt;span style="font-size:10.0pt;mso-bidi-font-size:11.0pt;font-family:&amp;quot;Courier New&amp;quot;; mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;;color:black"&gt; &lt;/span&gt;&lt;span style="font-size:10.0pt;font-family:&amp;quot;Courier New&amp;quot;;mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;; color:black"&gt;&amp;lt;authentication mode="Windows"&amp;gt;           &amp;lt;/authentication&amp;gt;&lt;/span&gt;&lt;span style="font-size:12.0pt;font-family:&amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;color:black"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15774329-5558907075834861931?l=jatindersingh.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/ov71zxvdAvdyuDPoqXztJy1wRe8/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/ov71zxvdAvdyuDPoqXztJy1wRe8/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/ov71zxvdAvdyuDPoqXztJy1wRe8/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/ov71zxvdAvdyuDPoqXztJy1wRe8/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/ProgrammingDiscussions/~4/n0fdXDIN1t0" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/ProgrammingDiscussions/~3/n0fdXDIN1t0/retrieving-com-class-factory-for.html</link><author>noreply@blogger.com (Jatinder Singh)</author><thr:total>1</thr:total><feedburner:origLink>http://jatindersingh.blogspot.com/2009/08/retrieving-com-class-factory-for.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-15774329.post-610960175368624826</guid><pubDate>Wed, 26 Aug 2009 05:48:00 +0000</pubDate><atom:updated>2010-02-10T07:09:11.396-08:00</atom:updated><title>Four Little Known, Helpful Methods, Properties, and Features for ASP.NET Developers</title><description>&lt;span class="Apple-style-span" style="COLOR: rgb(51,51,51);font-family:'Lucida Grande';" &gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="LINE-HEIGHT: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto"&gt;&lt;span style="FONT-FAMILY: 'Lucida Grande','serif'; mso-fareast-font-family: 'Times New Roman'font-family:'Times New Roman';color:#333333;"  &gt;&lt;span style="font-size:85%;"&gt;The .NET Framework is big. Really big. The System.Web assembly, which contains the guts of ASP.NET, is comprised of nearly 2,000 types, over 23,000 methods, and more than 12,500 properties. And that's not counting any of the functionality added to ASP.NET since version 2.0. ASP.NET &lt;/span&gt;&lt;a href="http://dotnetslackers.com/_NET/re-238120_Four_Little_Known_Helpful_Methods_Properties_and_Features_for_ASP_NET_Developers.aspx" target="undefined"&gt;&lt;span style="TEXT-DECORATION: none; text-underline: nonefont-size:85%;color:#333333;"  &gt;AJAX&lt;/span&gt;&lt;/a&gt;&lt;span style="font-size:85%;"&gt;, the ListView control, Dynamic Data, URL routing, and other features add hundreds of new types and thousands of &lt;/span&gt;&lt;a href="http://dotnetslackers.com/_NET/re-238120_Four_Little_Known_Helpful_Methods_Properties_and_Features_for_ASP_NET_Developers.aspx" target="undefined"&gt;&lt;span style="TEXT-DECORATION: none; text-underline: nonefont-size:85%;color:#333333;"  &gt;new methods&lt;/span&gt;&lt;/a&gt;&lt;span style="font-size:85%;"&gt; and properties.&lt;?xml:namespace prefix = o /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="LINE-HEIGHT: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto"&gt;&lt;span style="FONT-FAMILY: 'Lucida Grande','serif'; mso-fareast-font-family: 'Times New Roman'font-family:'Times New Roman';color:#333333;"  &gt;&lt;span style="font-size:85%;"&gt;Given the size and scope of the .NET Framework and ASP.NET even there are certain to be dark corners for even the most experienced &lt;/span&gt;&lt;a href="http://dotnetslackers.com/_NET/re-238120_Four_Little_Known_Helpful_Methods_Properties_and_Features_for_ASP_NET_Developers.aspx" target="undefined"&gt;&lt;span style="TEXT-DECORATION: none; text-underline: nonefont-size:85%;color:#333333;"  &gt;developers&lt;/span&gt;&lt;/a&gt;&lt;span style="font-size:85%;"&gt;. There are certain classes, methods, and properties in the .NET Framework that every ASP.NET developer is intimately familiar with: the Request.QueryString collection; the Session object; Pageobject properties like IsValid and IsPostBack. Yet even in these familiar classes there are very useful and very helpful properties, methods, and features that are less widely known. Heck, I've been building ASP.NET &lt;/span&gt;&lt;a href="http://dotnetslackers.com/_NET/re-238120_Four_Little_Known_Helpful_Methods_Properties_and_Features_for_ASP_NET_Developers.aspx" target="undefined"&gt;&lt;span style="TEXT-DECORATION: none; text-underline: nonefont-size:85%;color:#333333;"  &gt;applications&lt;/span&gt;&lt;/a&gt;&lt;span style="font-size:85%;"&gt; and writing about ASP.NET functionality and features full time since 2001, and once or twice a month I still stumble across an unknown feature or a helpful property or method buried in some dark corner of the framework.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="LINE-HEIGHT: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto"&gt;&lt;span style="FONT-FAMILY: 'Lucida Grande','serif'; mso-fareast-font-family: 'Times New Roman'font-family:'Times New Roman';color:#333333;"  &gt;&lt;span style="font-size:85%;"&gt;This article lists four helpful methods, properties, and features in the .NET Framework that, in my experience, are not widely known to ASP.NET developers. &lt;/span&gt;&lt;a href="http://www.4guysfromrolla.com/articles/082609-1.aspx"&gt;&lt;span style="font-size:85%;"&gt;Read here&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15774329-610960175368624826?l=jatindersingh.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/k0HQs7kuATd-Lflre70PbMnE0c4/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/k0HQs7kuATd-Lflre70PbMnE0c4/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/k0HQs7kuATd-Lflre70PbMnE0c4/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/k0HQs7kuATd-Lflre70PbMnE0c4/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/ProgrammingDiscussions/~4/rXvTL-xX9Ew" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/ProgrammingDiscussions/~3/rXvTL-xX9Ew/four-little-known-helpful-methods.html</link><author>noreply@blogger.com (Jatinder Singh)</author><thr:total>0</thr:total><feedburner:origLink>http://jatindersingh.blogspot.com/2009/08/four-little-known-helpful-methods.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-15774329.post-1441908941107722662</guid><pubDate>Tue, 25 Aug 2009 07:25:00 +0000</pubDate><atom:updated>2009-08-25T00:27:10.062-07:00</atom:updated><title>Auto Refresh in Chrome</title><description>&lt;div&gt;I work with all type of Browser including the new entrant Chrome. Other browsers have some plugin or addon which help to auto refresh the page. So I tried to figure out Does Chrome have an auto-reload option (per tab) ?? &lt;/div&gt;&lt;div&gt;The answer was google search away.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Just create a bookmark with the following code as the URL:&lt;/div&gt;&lt;br /&gt;&lt;code&gt;javascript:&lt;br /&gt;timeout=prompt("Set timeout [s]");&lt;br /&gt;current=location.href;&lt;br /&gt;if(timeout&gt;0)&lt;br /&gt; setTimeout('reload()',1000*timeout);&lt;br /&gt;else&lt;br /&gt; location.replace(current);&lt;br /&gt;function reload(){&lt;br /&gt; setTimeout('reload()',1000*timeout);&lt;br /&gt; fr4me='';&lt;br /&gt; with(document){write(fr4me);void(close())};&lt;br /&gt;}&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;Click the bookmark with the tab you want to auto-reload active.&lt;/div&gt;&lt;div&gt;Set the time interval (in seconds) or set it to zero to cancel auto-reload.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Hope it Helps&lt;/div&gt;&lt;div&gt;Jatinder Singh&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/15774329-1441908941107722662?l=jatindersingh.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/1YpJw_wjktP2ItDzmQ6ssYsMLXM/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/1YpJw_wjktP2ItDzmQ6ssYsMLXM/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/1YpJw_wjktP2ItDzmQ6ssYsMLXM/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/1YpJw_wjktP2ItDzmQ6ssYsMLXM/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/ProgrammingDiscussions/~4/AQLGEz8p-gg" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/ProgrammingDiscussions/~3/AQLGEz8p-gg/auto-refresh-in-chrome.html</link><author>noreply@blogger.com (Jatinder Singh)</author><thr:total>0</thr:total><feedburner:origLink>http://jatindersingh.blogspot.com/2009/08/auto-refresh-in-chrome.html</feedburner:origLink></item></channel></rss>

