Re: Bug in .NET Framework compiling C# scripts?
- From: "Richard" <RichardDummyMailbox58407@xxxxxxxxxxxxxxxxxxx>
- Date: 21 May 2006 07:30:45 -0700
Hi Juan,
Well, I finally got Windows 2003 Server (Standard Ed.)/SP1 up and
running. I copied over my test versions of the example. All the ones
that failed with a couple of packages on my XP-Pro/SP2 workstation
worked fine when copied to the server and then accessed from my
workstation.
In particular, my favorite worked fine. It ending with:
scriptString += "</" + "script" + ">";
My most favorite failed, just as you suggested it would. It ending
with:
scriptString += "</script>";
So, I still contend that there are bugs in both VWD 2005 EE and VS.NET
or, most likely in IIS 5.1 because it uses .NET Framework 1.1 instead
of 2.0
But I concede that you are right about ending the script with:
scriptString += "<script>";
will fail even in presumably the best environment (IIS 6.0 and .NET
Framework 2.0).
But I'm still hung up on the idea that it should NOT fail. I wrote my
first program (on paper) in about 1955 after a friend in Princeton
graduate math dept. sent me a letter about this new (to us) wonderful
machine: a computer. After college and a year of graduate math at MIT,
I slowly swiched to a professional software developer, which I've been
for the last 40+ years.
So I think I have fair intuition about what ASP.NET does in translating
..aspx to .html, notwithstanding that I'm new to this particular
technology. And I can't imagine why that string has to processed
beyond creating intermediate code and generating the script text in the
html page until the browser processes the script, which should entail
only caching until the browser receives the button's click event.
But I guess I'll have to live with this situation until some future
day.
Best wishes,
Richard
Juan T. Llibre wrote:
It's been my pleasure, Richard.
Let us know what happens.
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/
===================================
"Richard" <RichardDummyMailbox58407@xxxxxxxxxxxxxxxxxxx> wrote in message
news:1147921675.691996.81510@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
See it working, copied verbatim from the example at that page, at :
http://asp.net.do/test/RegisterClientScriptBlock.aspx
Mucho Gracias, er, my Spanish may be a little weak, and no match for
your English :-)
Windows Server 2003 SP1 y Microsoft-IIS/6.0 usando ASP.NET 2.0.50727.42
I suspect THAT makes all the difference! I was running on WinXP/SP2
with IIS 5.1.
My server's been down for a while, but I hope to get it restored by
this weekend with the same configuration as yours. I have a strong
feeling everything I've done will work there (except for adding the
closing script tag as 'scriptString += "</script>";'). I'll let you
know.
Again, Jaun, thanks for taking all this time to help me with this
conundrum.
Best wishes,
Richard
.
- References:
- Bug in .NET Framework compiling C# scripts?
- From: Richard
- Re: Bug in .NET Framework compiling C# scripts?
- From: Juan T. Llibre
- Re: Bug in .NET Framework compiling C# scripts?
- From: Richard
- Re: Bug in .NET Framework compiling C# scripts?
- From: Juan T. Llibre
- Re: Bug in .NET Framework compiling C# scripts?
- From: Richard
- Re: Bug in .NET Framework compiling C# scripts?
- From: Richard
- Re: Bug in .NET Framework compiling C# scripts?
- From: Juan T. Llibre
- Re: Bug in .NET Framework compiling C# scripts?
- From: Richard
- Re: Bug in .NET Framework compiling C# scripts?
- From: Juan T. Llibre
- Re: Bug in .NET Framework compiling C# scripts?
- From: Richard
- Re: Bug in .NET Framework compiling C# scripts?
- From: Juan T. Llibre
- Re: Bug in .NET Framework compiling C# scripts?
- From: Richard
- Re: Bug in .NET Framework compiling C# scripts?
- From: Juan T. Llibre
- Bug in .NET Framework compiling C# scripts?
- Prev by Date: How to create a baisc CMS in ASP.NET
- Next by Date: Re: Couple ASP.NET 2.0 Questions - Roles + ApplicationID
- Previous by thread: Re: Bug in .NET Framework compiling C# scripts?
- Next by thread: State
- Index(es):