IIS 5.1 not recognizing character 2 (%) in .aspx startup page

IIS 5.1 not recognizing character 2 (%) in .aspx startup page

am 11.01.2008 03:12:19 von JustBob

Hi Folks,

I thought this was an easy problem. New laptop. Windows XP. Visual Studio
2005. Developing web sites. Things working fine while in Visual Studio. IDE
runs sites and lets me debug just fine. I have even published the sites to
test server where someone else is handling the IIS stuff and programs are
accessible on the web as desired.

But when I go to IIS back on my laptop, set up virtual directory and try to
browse to site, I get error that second character in page directive at top of
start up page unrecognized. If I browse to simple hello.html in
inetpub/wwwroot, no problem.

I was thinking iis not recognizing .aspx pages correctly so I ran
aspnet_regiis i and r for the version of asp.net that I'm using. This has
helped in previous stalemates, but this time, no luck. I also went to
addremoveprograms and made sure IIS and all its subdetails are installed, but
no luck.

Ideas sought. Thank you in advance. Forgive me if this is too easy.

Regards,

JustBob

RE: IIS 5.1 not recognizing character 2 (%) in .aspx startup page

am 11.01.2008 03:51:32 von JustBob

Hi Folks,

I also read the excellent discussion in "Enable ASP within IIS 5.1" Dec. 23,
2007 but didn't see any resolution. I too have MacAffee security... But so do
many other PCs and laptops in my work area that are working fine.

Maybe this is harder than I thought. Please help.


Regards,

JustBob


"JustBob" wrote:

> Hi Folks,
>
> I thought this was an easy problem. New laptop. Windows XP. Visual Studio
> 2005. Developing web sites. Things working fine while in Visual Studio. IDE
> runs sites and lets me debug just fine. I have even published the sites to
> test server where someone else is handling the IIS stuff and programs are
> accessible on the web as desired.
>
> But when I go to IIS back on my laptop, set up virtual directory and try to
> browse to site, I get error that second character in page directive at top of
> start up page unrecognized. If I browse to simple hello.html in
> inetpub/wwwroot, no problem.
>
> I was thinking iis not recognizing .aspx pages correctly so I ran
> aspnet_regiis i and r for the version of asp.net that I'm using. This has
> helped in previous stalemates, but this time, no luck. I also went to
> addremoveprograms and made sure IIS and all its subdetails are installed, but
> no luck.
>
> Ideas sought. Thank you in advance. Forgive me if this is too easy.
>
> Regards,
>
> JustBob

RE: IIS 5.1 not recognizing character 2 (%) in .aspx startup page

am 11.01.2008 05:19:07 von JustBob

Hi Folks,

After a few more hours, I got a little closer to solving problem. In fact
maybe I have. I'm posting this to help if someone else gets stuck like this.

I went into IIS (control panel > administrative tools > internet information
services) to the virtual directory with the problem. It was listed under the
Default Web Sites node and right clicked on the virtual directory name. I
selected Properties and then pressed the Configuration button on the first
tab. I noticed that there was no mapping for .aspx extensions. Oddly (to me),
there was a mapping for .asbx extensions that pointed to the asp.net
v2.0.50727\aspnet_isapi.dll. On a lark, I decided to add the .aspx extension
by pressing the ADD button, and used the path for the aspnet_isapi.dll for
extension .asbx.

I went back to browser and browsed to application
"http:\\localhost\applicationname".

The great thing was the program no longer said it couldn't recognize
characters on the start .aspx page. It just told me access denied. I went
back to the application's folder and made it accessible to the computer user
name (IUsr_computername) and to ASPNET. I did this by turning off simple file
sharing (http://support.microsoft.com/kb/307874 explains this)
and following instructions to add the access.

When I went back to browser, I could then access the virtual directory.

I'm still a little confused because I thought when i ran (at the DOS command
prompt) the aspnet_regiis -i and -r that this would set up the mapping
correctly for any .net app already on the computer. i also had tried
aspnet_regiis -s with the appropriate path after the command but this
apparently didn't help either.

If you understand where I went wrong, let me know. I'm hoping I don't have
to add the mapping every time I create a new virtual directory on my laptop
for a web application but I guess I'll find out soon enough.

If you read this far, thank you and ...

Regards,

JustBob


"JustBob" wrote:

> Hi Folks,
>
> I also read the excellent discussion in "Enable ASP within IIS 5.1" Dec. 23,
> 2007 but didn't see any resolution. I too have MacAffee security... But so do
> many other PCs and laptops in my work area that are working fine.
>
> Maybe this is harder than I thought. Please help.
>
>
> Regards,
>
> JustBob
>
>
> "JustBob" wrote:
>
> > Hi Folks,
> >
> > I thought this was an easy problem. New laptop. Windows XP. Visual Studio
> > 2005. Developing web sites. Things working fine while in Visual Studio. IDE
> > runs sites and lets me debug just fine. I have even published the sites to
> > test server where someone else is handling the IIS stuff and programs are
> > accessible on the web as desired.
> >
> > But when I go to IIS back on my laptop, set up virtual directory and try to
> > browse to site, I get error that second character in page directive at top of
> > start up page unrecognized. If I browse to simple hello.html in
> > inetpub/wwwroot, no problem.
> >
> > I was thinking iis not recognizing .aspx pages correctly so I ran
> > aspnet_regiis i and r for the version of asp.net that I'm using. This has
> > helped in previous stalemates, but this time, no luck. I also went to
> > addremoveprograms and made sure IIS and all its subdetails are installed, but
> > no luck.
> >
> > Ideas sought. Thank you in advance. Forgive me if this is too easy.
> >
> > Regards,
> >
> > JustBob