iis running path

X

xkeops

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
 
X

xkeops

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\aspnet_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!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,780
Messages
2,569,611
Members
45,281
Latest member
Pedroaciny

Latest Threads

Top