473,405 Members | 2,154 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

All request are sent to my application, even for .gif ???

WT
I don't understand, since I migrated my web site to VS2005+ APS.NET 2 (C#),
all the request reach my
Application_BeginRequest

method in Global.ascx.cs and generate unecessary computing.
I think that I have missed some new parameter in web.config or somewehre
else.

Anybody having idea welcome.

CS
Feb 23 '06 #1
5 1216
CJ
It sounds like IIS is configured to handle .gif file extension. If
requests for every file type are being sent to ASP.NET then it's
happening at the IIS level.

Feb 23 '06 #2
re:
all the request reach my Application_BeginRequest
That is exactly what should happen.

The BeginRequest event signals the creation of any given new request.
This event is always raised and is always the first event to occur during the processing of a
request.

See the complete ASP.NET Application Life Cycle at :
http://msdn2.microsoft.com/en-us/library/ms178473.aspx

Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"WT" <WT@newsgroups.nospam> wrote in message news:%2****************@TK2MSFTNGP15.phx.gbl...I don't understand, since I migrated my web site to VS2005+ APS.NET 2 (C#), all the request reach
my
Application_BeginRequest

method in Global.ascx.cs and generate unecessary computing.
I think that I have missed some new parameter in web.config or somewehre else.

Anybody having idea welcome.

CS

Feb 23 '06 #3
Hi CS,

Are you using file system based website project in VS 2005? If this is the
case, the behavior you met is expected because when using file based
website project, the VS 2005 will use the new TestServer to run the
application instead of IIS. And the test server dosn't have filter or
extensions like IIS to router different requests to different extensions.
Thus, all the requests (no matter for ASP.NET pages or handlers or static
files ) are processed by the ASP.NET runtime.

If you're using IIS as the host, this seems a strange behavior and you
should have a check in the IIS site or virtual dir's extension mapping.

Hope this helps.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Feb 24 '06 #4
WT
Hello Steven,

Thanks for answer.
Yes I am using TestServer, so it is 'normal'.
I think that I have now to mimic IIS and filter requests with .gif,.jpg,.js.
to have my test environment working as IIS would behave.
That don't look good to me. Is there a way to turn this feature on in
TestServer ?
I am disapointed a lot with VS2005, in the past I was used to generate my
web site as an assembly. This was generating a huge dll but all the errors
were checked by the build process: with 2005, this feature is no more
available and I discover error (even syntax) in the debug phase. No very
friendly.
CS.


"Steven Cheng[MSFT]" <st*****@online.microsoft.com> a écrit dans le message
de news: n0**************@TK2MSFTNGXA01.phx.gbl...
Hi CS,

Are you using file system based website project in VS 2005? If this is
the
case, the behavior you met is expected because when using file based
website project, the VS 2005 will use the new TestServer to run the
application instead of IIS. And the test server dosn't have filter or
extensions like IIS to router different requests to different extensions.
Thus, all the requests (no matter for ASP.NET pages or handlers or static
files ) are processed by the ASP.NET runtime.

If you're using IIS as the host, this seems a strange behavior and you
should have a check in the IIS site or virtual dir's extension mapping.

Hope this helps.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Feb 24 '06 #5
Thanks for your followup CS,

So far the .NET TestServer hasn't provided support like static file
extension filters like what IIS has. And I do admit that this is a big
limitation, you can submit this request to the MSDN feedback site:

http://lab.msdn.microsoft.com/produc...k/default.aspx

In addition, as for the following question you mentioned:

=================
I am disapointed a lot with VS2005, in the past I was used to generate my
web site as an assembly. This was generating a huge dll but all the errors
were checked by the build process: with 2005, this feature is no more
available and I discover error (even syntax) in the debug phase. No very
friendly.
=================

We do have recieved some feedback from other customers on this. And our
ASPNET dev team is providing an additional project model for ASP.NET 2.0
web application, which is under beta2 now:

#Visual Studio 2005 Web Application Projects (Beta V2 Preview)
http://msdn.microsoft.com/asp.net/re...structure/wap/

Though it can not provide 100% same functionality as the vs2003/ASP.NET 1.1
webproject due to the different compilation model, but that do help
developers work with ASP.NET 2.0 project much like the vs2003/ASP.NET 1.1
ones. Also, some other project types like the Web Deployment project are
also being created to meet some further requirements and feedback from our
customers.

http://msdn.microsoft.com/asp.net/re...structure/wdp/

Anyway, we do appreciate your feedback and suggestions to our products
which can help us make it better and better.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Feb 27 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: wawa_piggy | last post by:
My .net application is to consume a Java web services exposed using AXIS. The web service will extract the user name and password to perform some custom authentication. /** Java **/ userId =...
5
by: Ori | last post by:
Hi, I need to implement the following. I need to perform a web request (only post methods), but I also need to send some parameters values with this request. Can I do it using the...
4
by: Jit Prasad | last post by:
I have a working client-side Vb.Net (.net v1.0) app that talks to a Webspere webservice on a windows 2000 server. The client side app runs on a citrix server, also a Windows 2000 server. The app...
2
by: Gregory Piñero | last post by:
Hi Guys, Does anyone know how to program a Python script to send out emails with a request delivery receipt? Is it something I can build into the email message via the mime stuff? And yes, I...
3
by: samik | last post by:
I have working on WinXP + IIS 5.0 + .NET 1.1 Whenever i open a page with the url starting as http://localhost/<page addressor http://127.0.0.1/<page addressthe application to hold session...
3
by: Ed Sonneveld | last post by:
Hi, I have hosted my webservice at a hosting company and it has been working fine for 2 years now. The webservice is called by winforms clients over the internet, using the proxy class generated...
1
by: omantawy | last post by:
Hi, I have some legacy ASP web applications that use an unmanaged COM component to connect to a third party application. The third part application has moved to the managed code in the current...
14
by: FMDeveloper | last post by:
Currently transitioning from a shared host to a dedicated server. The same code that works on the old server is not working on the dedicated server. It is a simple AJAX request like: <code>...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.