Not sure if this is IIS or ASP.NET

Hi,

When connecting to my application via IIS v 5.1, my asp code is
failing in my application start of the global.asax.cs file

string appName =
HttpContext.Current.Request.Url.AbsolutePath.Split(new char[] { '/' })
[1].ToUpper();

Url is null for some reason and I have no idea why.

Im entering http://localhost/myapplication/logon/logon.aspx

It works when i run the project from visual studio in debug mode...IIS
though it doesnt.

Any ideas?
Sir Psycho [ Mo, 07 April 2008 04:11 ] [ ID #1937242 ]

Re: Not sure if this is IIS or ASP.NET

Hi,

This is better answered in an ASP.NET newsgroup since this behavior is not
caused by IIS.

--
Regards,
Kristofer Gafvert
http://www.gafvert.info/iis/ - IIS Related Info


"Vince" <panuccio.vince [at] gmail.com> skrev i meddelandet
news:a5c0927f-68a1-42f5-b552-1edeaf104378 [at] s8g2000prg.googleg roups.com...
> Hi,
>
> When connecting to my application via IIS v 5.1, my asp code is
> failing in my application start of the global.asax.cs file
>
> string appName =
> HttpContext.Current.Request.Url.AbsolutePath.Split(new char[] { '/' })
> [1].ToUpper();
>
> Url is null for some reason and I have no idea why.
>
> Im entering http://localhost/myapplication/logon/logon.aspx
>
> It works when i run the project from visual studio in debug mode...IIS
> though it doesnt.
>
> Any ideas?
Kristofer Gafvert [ Di, 08 April 2008 17:54 ] [ ID #1938131 ]
Webserver » microsoft.public.inetserver.iis » Not sure if this is IIS or ASP.NET

Vorheriges Thema: Bandwith Manager and Traffic counter
Nächstes Thema: ?? Weird: Cannot Connect using Routable IP ??