|
There must be something going on with your setup. I just tried one of my site putting in a virtual dir that doesn't exist and I get the 404 message. So, do you have an error page set up? Or something like that? According to MS help:
The following events are executed by the HttpApplication class while the request is processed. The events are of particular interest to developers who want to extend the HttpApplication class.
Validate the request, which examines the information sent by the browser and determines whether it contains potentially malicious markup. For more information, see ValidateRequest and Script Exploits Overview.
Perform URL mapping, if any URLs have been configured in the UrlMappingsSection section of the Web.config file.
Raise the BeginRequest event.
Raise the AuthenticateRequest event.
Raise the PostAuthenticateRequest event.
Raise the AuthorizeRequest event.
Raise the PostAuthorizeRequest event.
Raise the ResolveRequestCache event.
Raise the PostResolveRequestCache event.
Based on the file name extension of the requested resource (mapped in the application's configuration file), select a class that implements IHttpHandler to process the request. If the request is for an object (page) derived from the Page class and the page needs to be compiled, ASP.NET compiles the page before creating an instance of it.
Raise the PostMapRequestHandler event.
Raise the AcquireRequestState event.
Raise the PostAcquireRequestState event.
Raise the PreRequestHandlerExecute event.
Call the ProcessRequest method (or the asynchronous version BeginProcessRequest) of the appropriate IHttpHandler class for the request. For example, if the request is for a page, the current page instance handles the request.
Raise the PostRequestHandlerExecute event.
Raise the ReleaseRequestState event.
Raise the PostReleaseRequestState event.
Perform response filtering if the Filter property is defined.
Raise the UpdateRequestCache event.
Raise the PostUpdateRequestCache event.
Raise the EndRequest event.
Anyway, don't know if that helps or not.
Ben
|
|
|
|
|
Err.. not really, I don't understand IIS well enough or to that level.
Thanks anyway.
Jason
|
|
|
|
|
Here is some more MS help:
Raised at the appropriate time in the application life cycle, as listed in the application life cycle table earlier in this topic.
Application_Error can be raised at any phase in the application life cycle.
Application_EndRequest is the only event that is guaranteed to be raised in every request, because a request can be short-circuited. For example, if two modules handle the Application_BeginRequest event and the first one throws an exception, the Application_BeginRequest event will not be called for the second module. However, the Application_EndRequest method is always called to allow the application to clean up resources.
So if you do have an error handling page it might be causing the problem.
Ben
|
|
|
|
|
I do have a dud error handling page, but did not originally; and it still wasn't working.
I only added it because I was desperate and tried this.
"On IIS 6.0 change 404 default page to /404.aspx and the type to "URL"."
Jason
|
|
|
|
|
Ok, so after countless hours of head scratching, it seems that my problem is to do with the setup of IIS.
The web server that ships with Visual Web Developer seems to run Application_beginRequest before calling a 404 Error, but IIS is calling a 404 Error before the Application_beginRequest.
Why would this be the case? How can I change it so it calls Application_beginRequest before calling a 404 Error?
I don't know if it's because my .net2 application is a sub directory of a .net1 website? The application has been added to a separate .net2 application pool then the .net1 website. Everything seems to work except for the url rewriting.
Please help!
Jason.
|
|
|
|
|
I want maintain log of webpages visited for individual user how it is possible in asp.net 2.0.
Can anyone help me.
GIRISH
|
|
|
|
|
|
Hi,
I am migrating a .net 1.1 application to .net 2.0 and get the following error:
"Metadata file 'dll_name' could not be found". The project has the reference to the project that it´s missing so I cannot really figure out why it is this way. Anyone who has any experience/solution with this?
Build order?
thanx in advance!
Regards
/Christoffer
|
|
|
|
|
Hi ALL
i am developing a web application in which i have created service which will indexed all microsoft office type files. All things are working fine except service is taking 80 MB (As shown by task Manager) space in memory.
So my questions are
1) What you think do i need to worry about memory space ? or it is normal
2) is there any memory leak in the application ? How to check that ?
Note :- i checked i am closing all the objects which are opened but not sure those are garbage collected or not
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Standard profilers should be able to throw more light on this too.
|
|
|
|
|
Check this MSDN Article[^] regarding memory leakage. Or as Vasudevan Deepak Kumar told go with some profilers. You can try ANTS profiler[^]. I think it's good.
|
|
|
|
|
Thanks for reply
i already install ANTS profiler but not getting where memory is leaked
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
i have some text in textbox1.when i change data of tht text box at run time
text change event has to be fired.how to do tht(text change has to be fired ewithout pressing enter or tab key)n i cant use javascript for this.any other solution???
actually i want to enetr text in gridview when button is clicked(for tht row)i get pop up window with some text.so for tht i m taking text box outside tht grid n passing value of tht textbox to grid cell. any other way to do this??
|
|
|
|
|
The textChange itself is to be powered by a clientside scripting right?
|
|
|
|
|
If you handle a text changed event you will want to make sure you have it client side. If you make it server side you will get a postback on each key press.
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|
|
hi friends
In yahoo,gmail,rediff having Check avialability button in registration form
if clicked that button.it will display the suggesion then username exists or not.
how can i achive this
regards
saravanan
|
|
|
|
|
Hi,
In the click event of button check for if the entered name exists in the database.
Thanks and Regards,
Chetan Ranpariya
|
|
|
|
|
In the check Availability button, trigger an XmlHttp call where you can check for Duplication/Availability and inform the user accordingly.
|
|
|
|
|
Hello,
I have an input form to collect user info. In the middle of the form I had a dropdown with Autopostback enabled. Here if the user selects "Employed" I want to dispaly 2-3 text boxes below the drop down to collect his employment details and move the already existing fields below the new ones.
Regards,
dhulipudi
|
|
|
|
|
Better create the textboxes at design time and keep that as invisible. Then on selected index changed event of dropdown, make it visible according to your conditions.
|
|
|
|
|
Hello Navaneeth,
I am following the same method as you told. But my problem is when I make visible them visible I want to move the already existing text boxes below.
Please let me know how to achieve this.
Regards,
JJ
|
|
|
|
|
For this better do with javascript.. You can use style.display. That will hide the invisible area and brings the control up.
|
|
|
|
|
Thank U I will give a try...
~JJ
|
|
|
|
|
Hi all,
In my application i wanna display an image of having the current webpage content.
I mean,in my application there is Preview button,in that click event i have to display all the webpage content as Image.
By googling am able to know that i have to use mshtml,shdocvw dlls and gdi+.but no clarity which one has to use GDI or others
Any one of you pls gime some source or Suggestions
Have a Nice Day Dudes
Have a Nice Day Dudes
|
|
|
|
|