<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-850987511657990846</id><updated>2012-01-24T04:59:07.387-08:00</updated><title type='text'>Techie's Blog for Techies</title><subtitle type='html'>Will be providing all technical guidelines which normally everybody faces.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://techielion.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/850987511657990846/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://techielion.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>TechieLion</name><uri>http://www.blogger.com/profile/14975461825611783775</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://www.natnif.com/photos/5926c290280b90bddd76168885f92f16bth.jpeg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>4</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-850987511657990846.post-2412242755755930529</id><published>2007-02-22T01:02:00.000-08:00</published><updated>2007-02-22T01:30:16.708-08:00</updated><title type='text'>Web Services .Net</title><content type='html'>&lt;span style="font-weight: bold;"&gt;How a WebService is processed in .NET?&lt;br /&gt;&lt;br /&gt;How a C# WebService is getting executed in .NET?&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-weight: bold;font-size:85%;" &gt;&lt;span&gt;The Answer is :&lt;/span&gt;&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;First Client(end user) will request the Web Service in Form of (URI).&lt;br /&gt;&lt;br /&gt;Then the DNS will resolve the URI and identifies the ip and route the HTTP request to the corresponding web server (which has the &lt;span style="font-weight: bold;"&gt;C# WebService&lt;/span&gt; ).&lt;br /&gt;&lt;br /&gt;Then IIS which is responsible to hold the &lt;span style="font-weight: bold;"&gt;WebServices&lt;/span&gt; and web application identifies that the application is a &lt;span style="font-weight: bold;"&gt;.NET  &lt;/span&gt;and map the &lt;span style="font-weight: bold;"&gt;ASP.NET ISAPI&lt;/span&gt; to receive the request.&lt;br /&gt;&lt;br /&gt;(Note : &lt;span style="font-weight: bold;"&gt;IIS&lt;/span&gt; can find that a ISAPI is &lt;span style="font-weight: bold;"&gt;ASP.NET&lt;/span&gt; but it cant find it is a&lt;span style="font-weight: bold;"&gt; WebService or WebApplication in .NET)&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;Now, the ASP.NET ISAPI will identify that this is a WebService in .NET and forward the request again to .NET  HTTPRuntime.&lt;br /&gt;                  (This process will change unmanage code to manage code)&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;HTTPRunTime&lt;/span&gt; will also can identify a request as an application &lt;span style="font-weight: bold;"&gt;.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;So, as &lt;/span&gt;&lt;span&gt;HTTPRunTime  identifies that the request is a &lt;span style="font-weight: bold;"&gt;WebService .NET &lt;/span&gt;request , this delegate the &lt;span style="font-weight: bold;"&gt;SOAP request&lt;/span&gt;(converted in previous step) to &lt;span style="font-weight: bold;"&gt;.Net WebServiceHandlerFactory.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The &lt;/span&gt;&lt;span&gt;.Net WebServiceHandlerFactory deserialize the SOAP payload and executes.&lt;br /&gt;(Payload is networking term which contains the actual body of the message) and also execute the request for the WebService.&lt;br /&gt;&lt;br /&gt;Again, to display the Response to client as HTML, HTTPRunTime takes the  result and serialize to SOAP message and add as SOAP payload of HTTPRunTime.&lt;br /&gt;&lt;br /&gt;When HTTPRunTime delegate the response, .NET ISAPI will take and send back to the IIS which in turn returns the response and the Client gets SOAP Message.&lt;br /&gt;&lt;br /&gt;Hence the receiving end(Consumer application which grabs the&lt;span style="font-weight: bold;"&gt; .NET WebService &lt;/span&gt;has to deform it and display the HTML response to user.&lt;br /&gt;&lt;/span&gt;&lt;span&gt;&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/850987511657990846-2412242755755930529?l=techielion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/850987511657990846/posts/default/2412242755755930529'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/850987511657990846/posts/default/2412242755755930529'/><link rel='alternate' type='text/html' href='http://techielion.blogspot.com/2007/02/web-services-net.html' title='Web Services .Net'/><author><name>TechieLion</name><uri>http://www.blogger.com/profile/14975461825611783775</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://www.natnif.com/photos/5926c290280b90bddd76168885f92f16bth.jpeg'/></author></entry><entry><id>tag:blogger.com,1999:blog-850987511657990846.post-7035379077325946193</id><published>2007-02-14T21:19:00.000-08:00</published><updated>2007-02-14T21:48:40.629-08:00</updated><title type='text'>Object reference not set to an instance of an object</title><content type='html'>Object reference not set to an instance of an object.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;In Asp.Net this error is so common.&lt;br /&gt;&lt;br /&gt;When you are trying to access a member of a class without instance object you will get&lt;span style="font-size:130%;"&gt;&lt;span style="font-weight: bold;"&gt; &lt;span style="font-size:100%;"&gt;Object reference not set to an instance of an object&lt;/span&gt; &lt;/span&gt;&lt;span style="font-size:100%;"&gt;error.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;So ensure that you are accessing the members with the instance of the class.&lt;br /&gt;&lt;br /&gt;Example:&lt;br /&gt;&lt;br /&gt;Cause of error:&lt;br /&gt;&lt;br /&gt;public class ABC{&lt;br /&gt;  public void function xyz{....}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;public class DEF{&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;ABC obj1;&lt;/span&gt;&lt;br /&gt;obj1.xyz();&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;The highlighted line indicates that you have declared a variable of type ABC, but not the object reference or you just have created Object instance.&lt;br /&gt;&lt;br /&gt;We can call methods or member variables only if we get reference to the instance of a object.&lt;br /&gt;&lt;br /&gt;More technically,&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;ABC obj1; &lt;/span&gt;will not create any reference in memory.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Solution:&lt;br /&gt;After the line ABC obj1 or in the same line itself ,&lt;br /&gt;&lt;br /&gt;obj1=new ABC();&lt;br /&gt;&lt;br /&gt;the keyword &lt;span style="font-weight: bold;"&gt;new &lt;/span&gt;will allot memory for the instance obj1 and assign the object reference to the instance of the object.&lt;br /&gt;&lt;br /&gt;Other lines would be normal and kept unchanged.&lt;br /&gt;&lt;br /&gt;Unusual:&lt;br /&gt;&lt;br /&gt;Even after this if you are getting the same error &lt;span style="font-weight: bold;"&gt;Object reference not set to an instance of an object, &lt;/span&gt;it means that you have to initialize some member variables.&lt;br /&gt;&lt;br /&gt;Example:&lt;br /&gt;&lt;br /&gt;string example;&lt;br /&gt;if(example=="answer")&lt;br /&gt;.......&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Obviously this error would come.&lt;br /&gt;since we failed to initialize this variable no reference would have have got.&lt;br /&gt;So before checking any variable comparison, kindly make ensure to add these lines&lt;br /&gt;&lt;br /&gt;if(example!=null)&lt;br /&gt;  if(example=="answer")&lt;br /&gt;  .......&lt;br /&gt;&lt;br /&gt;So that you can avoid comparing a null object(for which reference not been set) as well as the&lt;br /&gt;above said error &lt;span style="font-weight: bold;"&gt;Object reference not set to an instance of an object.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;Same discussion is available in &lt;a href="http://forums.asp.net/thread/1549191.aspx" target="blank"&gt;Object reference not set to an instance of an object.&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/850987511657990846-7035379077325946193?l=techielion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techielion.blogspot.com/feeds/7035379077325946193/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=850987511657990846&amp;postID=7035379077325946193' title='11 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/850987511657990846/posts/default/7035379077325946193'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/850987511657990846/posts/default/7035379077325946193'/><link rel='alternate' type='text/html' href='http://techielion.blogspot.com/2007/02/object-reference-not-set.html' title='Object reference not set to an instance of an object'/><author><name>TechieLion</name><uri>http://www.blogger.com/profile/14975461825611783775</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://www.natnif.com/photos/5926c290280b90bddd76168885f92f16bth.jpeg'/></author><thr:total>11</thr:total></entry><entry><id>tag:blogger.com,1999:blog-850987511657990846.post-1805280815115704435</id><published>2007-01-22T00:44:00.000-08:00</published><updated>2007-01-22T01:37:07.632-08:00</updated><title type='text'>Error: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.Asp Net SqlConnection</title><content type='html'>When you are trying to connect or access from a Database table which is having large volume of data (more than a lakh), &lt;span style="font-weight: bold;"&gt;query execution time&lt;/span&gt; will be more.&lt;br /&gt;&lt;br /&gt;The error (&lt;span style="font-weight: bold;"&gt; Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.) &lt;/span&gt;occurs when the execution time crosses &lt;span style="font-weight: bold;"&gt;Timeout&lt;/span&gt; Property.&lt;br /&gt;&lt;br /&gt;There are two main &lt;span style="font-weight: bold;"&gt;Timeout property&lt;/span&gt; in ADO.NET.&lt;br /&gt;&lt;br /&gt;1. Connection Timeout for Connection&lt;br /&gt;2. Timeout for Data Access( Command Object or DataAdapter)&lt;br /&gt;&lt;br /&gt;The Former, could be solved by setting ConnectionTimeout Property of Connection object either in on Connection String.&lt;br /&gt;&lt;br /&gt;&lt;add key="DBconn" value="Server=servername;Initial Catalog=DB_name;User ID=sa;Password=1234; Connect Timeout=400"&gt;This string will make a connection object to wait 400 seconds to get connected to the database.&lt;br /&gt;&lt;br /&gt;Even after this, you may still get the same.&lt;br /&gt;Because this property will set timeout only to Connection object.&lt;br /&gt;So it will wait for xxx seconds for the connection to the database.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;2.If this error &lt;span style="font-weight: bold;"&gt;Timeout Expired&lt;/span&gt; still persists, then it is not with the Timeout property of Connection object instead it is with Data Provider objects say in DataAdapter or Command Object&lt;br /&gt;&lt;br /&gt;To overcome this , set &lt;span style="font-weight: bold;"&gt;Command.Timeout='0'(Zero) &lt;/span&gt;which makes adapter or command to wait for indefinite time before terminating the attempt to execute a command and generating an error. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Complete Forum Discussion in &lt;a style="color: rgb(51, 102, 255);" href="http://forums.asp.net/thread/1022695.aspx" target="blank"&gt;ASP.NET Error: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.Asp Net SqlConnection&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/add&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/850987511657990846-1805280815115704435?l=techielion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techielion.blogspot.com/feeds/1805280815115704435/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=850987511657990846&amp;postID=1805280815115704435' title='54 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/850987511657990846/posts/default/1805280815115704435'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/850987511657990846/posts/default/1805280815115704435'/><link rel='alternate' type='text/html' href='http://techielion.blogspot.com/2007/01/error-timeout-expired-timeout-period.html' title='Error: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.Asp Net SqlConnection'/><author><name>TechieLion</name><uri>http://www.blogger.com/profile/14975461825611783775</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://www.natnif.com/photos/5926c290280b90bddd76168885f92f16bth.jpeg'/></author><thr:total>54</thr:total></entry><entry><id>tag:blogger.com,1999:blog-850987511657990846.post-8476323052285503977</id><published>2007-01-08T01:14:00.000-08:00</published><updated>2007-03-02T23:17:07.692-08:00</updated><title type='text'>Asp Net Unable to start debugging.</title><content type='html'>&lt;span style="color: rgb(51, 102, 255);"&gt;&lt;strong&gt;&lt;u&gt;Error Message:ASP NET Unable To Start Debugging&lt;/u&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;The Error Message Unable to start debugging, will be displayed in the browser, when you try to debug an asp.net application.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;The Problem could have happened by one of these.&lt;br /&gt;1. Check the existence of web.config file in your application.&lt;br /&gt;If its not there, create one web.config file.&lt;br /&gt;&lt;br /&gt;2. If its there already, check for its xml formation of tags.&lt;br /&gt;Make sure that this is well formed and the debug section should be like this below.&lt;br /&gt;&lt;compilation debug="true" defaultlanguage="c#"&gt;&lt;br /&gt;&lt;compilation debug="true" defaultlanguage="c#"&gt;&lt;br /&gt;For more information::&lt;br /&gt;&lt;a href="http://support.microsoft.com/default.aspx?scid=kb;en-us;306163"&gt;PRB:ASP NET Unable to Start Debugging:&lt;/a&gt;&lt;/compilation&gt;&lt;/compilation&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/850987511657990846-8476323052285503977?l=techielion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techielion.blogspot.com/feeds/8476323052285503977/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=850987511657990846&amp;postID=8476323052285503977' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/850987511657990846/posts/default/8476323052285503977'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/850987511657990846/posts/default/8476323052285503977'/><link rel='alternate' type='text/html' href='http://techielion.blogspot.com/2007/01/asp-net-unable-to-start-debuuging.html' title='Asp Net Unable to start debugging.'/><author><name>TechieLion</name><uri>http://www.blogger.com/profile/14975461825611783775</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://www.natnif.com/photos/5926c290280b90bddd76168885f92f16bth.jpeg'/></author><thr:total>0</thr:total></entry></feed>
