473,396 Members | 1,858 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,396 software developers and data experts.

iis running path

Not sure what to do, I am asking your advice to this.

I have an app in c# 2.0. When I run this app from vs.net it goes at :
http://localhost:39950/myApp/

But if I run it normally it goes at : http://localhost/WebDir/myApp/

In myApp I use in global.asax:

protected void Application_BeginRequest(Object sender, EventArgs e)
{
EventLog.WriteEntry("Application_BeginRequest", "Application Begin
Request!", EventLogEntryType.Information);
................
}

When I access: http://localhost:39950/myApp/ Application_BeginRequest
does fire.
Why http://localhost/WebDir/myApp/ doesn't fire BeginRequest event in
global.asa ???

Thanks

Sep 7 '06 #1
2 1083
I've missed some details. myApp is a small url redirection application.

http://localhost:39950/myApp/ - everything works good including
http://localhost:39950/myApp/fake_dir

http://localhost/WebDir/myApp/ - when I first access it,
Application_BeginRequest fires. But when I go to
http://localhost/WebDir/myApp/fake_dir/
Application_BeginRequest fails.

thanks

xk****@gmail.com wrote:
Not sure what to do, I am asking your advice to this.

I have an app in c# 2.0. When I run this app from vs.net it goes at :
http://localhost:39950/myApp/

But if I run it normally it goes at : http://localhost/WebDir/myApp/

In myApp I use in global.asax:

protected void Application_BeginRequest(Object sender, EventArgs e)
{
EventLog.WriteEntry("Application_BeginRequest", "Application Begin
Request!", EventLogEntryType.Information);
................
}

When I access: http://localhost:39950/myApp/ Application_BeginRequest
does fire.
Why http://localhost/WebDir/myApp/ doesn't fire BeginRequest event in
global.asa ???

Thanks
Sep 7 '06 #2
Reason why it didn't fire BeginRequest was the address is a fake one so
if I add a mapping in configuration wizard ... IIS \ Properties \
Configuration it will work.

How I did it:

add the extension .* with executable:
c:\windows\microsoft.net\framework\v2.0.50727\aspn et_isapi.dll
Limit to: get, post

Uncheck the "Check if file exist" option.

Make sure at ASP.NET tab has 2.0 version.

Blody shite!

Sep 7 '06 #3

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

Similar topics

0
by: Hal Vaughan | last post by:
While experimenting with System.getProperty() and System.setProperty(), I've noticed that I can change properties, but those changes do not last once the JVM they're modified in terminates. I...
0
by: Colin Brown | last post by:
As I am getting a larger collection of python program packages the idea of saving them as zips is becoming increasingly attractive. The latest idea is to launch them from a generic wrapper listed...
5
by: Shalen chhabra | last post by:
Hey, Can anyone give me a snippet for running a python program over all the files in the directory. For ex: I have ten files in a directory and I want to run a python program against all of...
1
by: Craig | last post by:
Hi I was wondering how to get the path that a DLL is running from (from a method within that DLL, e.g. it's own install path))? I have a web app with two modules. I'd like one of them to be able...
4
by: Shiraz | last post by:
Hi I'm using Visual Studio Installer to make my installer, and have not as yet figured out a straightforward way to use it to set environmental variables. Amongst the various things I tried, I'm...
2
by: Mike | last post by:
Can a vb program running as a serice not use network paths to do file/io? I can't seem to get my program to work with network paths and files. When I use local disk it works fine. When I run it...
17
by: Csaba Gabor | last post by:
Is there a way to determine the path to the php executable (as opposed to the script. In other words, I am looking for the path to php.exe or php-win.exe) that is currently running (ie. how was...
7
by: gmax2006 | last post by:
Hi, I use RedHat linux. How can I find where exactly the current python script is running? I use this code: #test.py import os,sys
4
by: David | last post by:
Is the Development Server part of the .net 2x runtime package or installed with one installs VS 2005? I wish to run a small web app on a machine, with the runtime installed, and need to know if I...
4
by: somank.sharma | last post by:
I am running an exe created in C. I need the full path (absolute path) of this exe. In the first argument of main, I am getting the exe name. How can I get the full path for this exe.
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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,...

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.