.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
MarieAdela
Imran Ghani
Post New Web Links

Articles/Links on Asp.Net pipeline and internal request processing architecture

Posted By:      Posted Date: October 04, 2010    Points: 0   Category :ASP.Net
 

I am looking details on the internal working of asp.net architecture. The topics need to include the following:

  1. Asp.Net Thread/Application Pools
  2. HttpRuntime
  3. HttpApplication - When and how it is set up
  4. How HttpContext is set up
  5. How objects can passed along the pipeline using HttpContext.Current.Items
  6. Why does modification of static variables requires locks in ASP.NET (advanced)
  7. IIS 7 Integration Mode

I'm looking for a very detailed description of Asp.Net internals and how request processing happens under the hood.



View Complete Post


More Related Resource Links

HTTP Pipelines: Securely Implement Request Processing, Filtering, and Content Redirection with HTTP

  

ASP.NET is a flexible and extensible framework for server-side HTTP programming. While most people think of ASP.NET in terms of pages served, there is a lower-level infrastructure sitting beneath this page model. The underlying plumbing is based on a pipeline of app, module, and handler objects. Understanding how this pipeline works is key if you want to get the most out of ASP.NET as an HTTP server platform, while making your process more efficient, and keeping your server secure. This article introduces the architecture of the pipeline and shows how you can use it to add sophisticated functionality to an ASP.NET-based app.

Tim Ewald and Keith Brown

MSDN Magazine September 2002


there was an error processing the request

  

 Hi, I implement a project which has a ajax plus web service. It works out on IDE VS 2008 Express.

Now I host it on a free space, get an error "there was an error processing the request".

The error type is empty.

Any experience is thankful.


asp.net vs WCF request pipeline in IIS 500 error

  
Using .net 4.0 , IIS 7.4 Windows Server 2008 R2 I have an asp.net application that sits between WCF web services and routes the requests according to some rules. The iis error page setting is set to 'Detailed errors for local requests and custom ....' the asp.net routing service calls the WCF service using HttWebRequest object. I am getting an iis html error response when wcf service throws a fault exception. but i get a proper IIS 500 error with a proper soap response when i call the service directly (without the router) I know i can fix it by changing IIS error page setting, but i dont want to do that since it would expose my non wcf errors. question is is there a difference in how iis treats wcf requests vs asp.net request when it comes to 500 errors also this used to work in IIS 6, how to get this behavior back in iis 7

Knowledgebase template - How do you create links from "related articles"

  
Hi I'm using the Knowledgebase Template. We are mainly creating Word Docs and loading them into the library. Tagging with the "Realated Articles" column. I am writing a intro page in SPD that has a choice list of the keywords, which then filters the docs based on choice. This works. What I can't get working is making the "related articles" column into a hyper link, like MS have done in default views - if I use the library in a web part from the browser it works fine, but not in SPD. Any ideas? Cheers Eserim

fckeditor in asp.net c# give error - XML request error: Internal Server Error (500)

  

Hi ,

         I am using fck editor in asp.net and c# .It works well on my localhost but it gives error on live server when i upload an image through fck,The error is

The server didn't send back a proper XML response. Please contact your system administrator.

XML request error: Internal Server Error (500).

Please help me some body.How  i can solve this issue.

Thanks,

VD


Hotfix request links to Cumulative Updates 9 and 10 for SP1 do not work

  

Last week I was able to obtain CU9 for SQL Server 2008 SP1.  This week, I cannot even make a request for CU10 or CU9.  Since Saturday, I have received the following reply whenver I click on a hotfix link:  Hotfix Request
The system is currently unavailable. Please try back later, or contact support if you want immediate assistance.http://support.microsoft.com/contactus/?ws=support

If I attempt to contact support in any way, they want to charge me.  What is going on?


Asynchronous ASP.NET Page Processing in Layered Architecture

  

I am working on an application which involves payment gateways. Payment gateway takes some 4-5 seconds to respond. To tune the application I thought of using PageAsyncTask whenever Payments are processed.

My application uses multiple layers, for e.g before hitting to payment gateway, all sorts of calculations(taxes and all) are calculated in bussiness layer and then the payment gateway processing is done in the data access layer. Method which performs the Payments  also returns some custom message to top layers based on the response value. This is done by setting a property in the DAL class.

Now issue is how to register BeginEventHandler and EndEventHandler. I tried creating a sample application for this. But when I debugged my EndEventHandler was not getting called at all.

Sample Scenario..

On a button click event I am trying to call a DAL method which will create a HttpWebRequest and will return the response to me in a string variable

My Page Class has Events below:

protected void btnSubmit_Click(object sender, EventArgs e)
        {
            
            PageAsyncTask task = new PageAsyncTask(new BeginEventHandler(BeginAsyncOperation), new EndEventHandler(EndAsyncOperation),new EndEventHandler(TimeoutAsyncOperation), "" );
            RegisterAsyncTask(task);

Can't display related articles with links

  

I am using the Data View web part in MOSS 2007 SharePoint Designer. I need to display "related articles" from a knowledge base article with links to them. Presently I only see "Deployment Procedures;Installation Procedures" which are the two document names related to a KB article.

I need the names displayed on separate lines with hyperlinks to the actual documents. So far no menu selection I make and no xsl modifications are working properly.

This is the code as it looks right now:

<xsl:value-of select="@KBRelatedArticles" disable-output-escaping="yes" />

I've been tinkering with various mods of similar tasks like this I've found online but none work so far.

Your help is greatly appreciated.


Asynchronous ASP.NET Page Processing(PageAsyncTask) in Layered Architecture

  

I am working on an application which involves payment gateways. Payment gateway takes some 4-5 seconds to respond. To tune the application I thought of using PageAsyncTask whenever Payments are processed.

My application uses multiple layers, for e.g before hitting to payment gateway, all sorts of calculations(taxes and all) are calculated in bussiness layer and then the payment gateway processing is done in the data access layer. Method which performs the Payments  also returns some custom message to top layers based on the response value. This is done by setting a property in the DAL class.

Now issue is how to register BeginEventHandler and EndEventHandler. I tried creating a sample application for this. But when I debugged my EndEventHandler was not getting called at all.

Sample Scenario..

On a button click event I am trying to call a DAL method which will create a HttpWebRequest and will return the response to me in a string variable

My Page Class has Events below:

protected void btnSubmit_Click(object sender, EventArgs e)
        {
            
            PageAsyncTask task = new PageAsyncTask(new BeginEventHandler(BeginAsyncOperation), new EndEventHandler(EndAsyncOperation),new EndEventHandler(TimeoutAsyncOperation), "" );
            RegisterAsyncTask(t

Accessing response of HttpWebRequest, even when request returns 500 Internal Server Error

  

Hi,

Hoping someone can point me to a solution, haven't been able to find one yet.

I'm using the standard way for send HttpWebRequest

		webRequest = (HttpWebRequest)WebRequest.Create(request.URL);
webRequest.Method = "POST";
webRequest.ContentType = "text/xml";

...

postStream = webRequest.GetRequestStream();
postStream.Write(requestBuffer, 0, requestBuffer.Length);
postStream.Close();
webResponse = (HttpWebResponse)webRequest.GetResponse();
responseStream = webResponse.GetResponseStream();
responseReader = new StreamReader(responseStream);
string response = responseReader.ReadToEnd();


This is all fine, working correctly, no poblems.

However the actual webservice that i'm calling returns a 500 Internal Server Error code for standard faults

HTTP/1.1 500 Internal Server Error
Server:
Content-Type: text/xml; charset=utf-8
Content-Length: 703
Date: Fri, 22 Oct 2010 04:50:48 GMT

<?xml version="1.0" en
coding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.o

Hooking into the IIS pipeline before request content is read

  

In our ASP.NET application, we're having a problem with file uploads.  In our web.config, under system.webServer/security/requestFiltering/requestLimits, we set maxAllowedContentLength to 16777216 (16 MB), and under system.web/httpRuntime, maxRequestLength is set to 16384 (also 16 MB).  IIS seems to do the request filtering just fine unless a really huge file is uploaded.  For example, when I upload a 2.27 GB file, IIS doesn't reject it immediately.  Instead, it allows the browser to upload the entire file before finally erroring out (with an odd 400 Bad Request "ASP.NET detected invalid characters in the URL." error).

This looks to me to be a bug with IIS 7.5.  We've tried to work around it by creating an HttpModule that can inspect the size of the upload before the upload actually takes place, but it seems like the upload is always taking place before the BeginRequest event is triggered.  Is there any way for us to look into the IIS pipeline at an earlier point than what HttpModule gives us so we can bypass the ludicrous upload behavior exhibited by IIS?



Some useful links for MVC architecture

  
http://weblogs.asp.net/scottgu/archive/2010/01/10/asp-net-mvc-2.aspx

Hooking into the IIS pipeline before request content is read

  

In our ASP.NET application, we're having a problem with file uploads.  In our web.config, under system.webServer/security/requestFiltering/requestLimits, we set maxAllowedContentLength to 16777216 (16 MB), and under system.web/httpRuntime, maxRequestLength is set to 16384 (also 16 MB).  IIS seems to do the request filtering just fine unless a really huge file is uploaded.  For example, when I upload a 2.27 GB file, IIS doesn't reject it immediately.  Instead, it allows the browser to upload the entire file before finally erroring out (with an odd 400 Bad Request "ASP.NET detected invalid characters in the URL." error).

This looks to me to be a bug with IIS 7.5.  We've tried to work around it by creating an HttpModule that can inspect the size of the upload before the upload actually takes place, but it seems like the upload is always taking place before the BeginRequest event is triggered.  Is there any way for us to look into the IIS pipeline at an earlier point than what HttpModule gives us so we can bypass the ludicrous upload behavior exhibited by IIS?



IIS Request Processing

  
This articles explains in detail on how a request is being handled in Internet information Services. This gives the information on how a request is passthrough and how the response is obtained as the result from the web server.

Gmail internal chat like message box

  
This article provides you with the multi-functional message box window through which the usability of the web-site or any web application increases.

Features
.Configurable MessageBox window with AJAX Support
.can set maximum number of message boxes to be visible
.can define the auto reload time, for single message, for all messages or no reload
.can create messages through a single function call
.can define auto hide time for each messages

Architecture Tools in VSTS 2010

  
Designing new functionality on existing applications can be daunting. There are always differences between the original design and the current implementation.

The new Architecture tools within Visual Studio Team System 2010 help you understand the application you have, design new functionality you need, and validate that your design and your implementation do not deviate.

SharePoint Tutorial - SharePoint Logical Architecture

  
The SharePoint logical architecure consists of nested and isolated levels. These levels provide benefits for security, navigation, search, branding and ect. depending on the level

SharePoint Farm
The base level for any SharePoint implementation is the SharePoint farm. Physically a farm can consist of one server or many servers. An organization may implement one or more farms. This usually depends on security and performance needs.
Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend