Welcome to MobyThreads.com!
FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log in/Register/PasswordLog in/Register/Password

IIS v5.1 outputs extra new line

 
   Web Hosting and Web Master Forums (Home) -> IIS RSS
Related Topics:
IIS outputs dates in wrong date format - I have a win2000 webserver with IIS In > I´ve setup the server to Danish Input Locale. I´ve also setup the date format to But no matter what I do the server keep on dates in

How to connect Extra! Attachmate .... - I ha e maked many VB macro for Excel and Access and connect with Extra no probelm. For me th e acctula problem is to insert correctly the object of Extra! into an ASP page to play wit the command of Extra!. For example pustring,

Sending Extra Value to ComboBox - Hi all, I have one combobox where I want to display Name of the Products that are loaded in the object. But I am able to send only ID and Name of the Product where ID is the value of the option tag and products name is the display text for..

Creating Extra Website - Hi, I have created a new Web site on my IIS server. This is in addition to the default web site. Here are the details: Domain name: Server IP Address: SRVR10 Host Header Name: Web site IP

Extra Log-in when Accessing Excel and Powerpoint doc on in.. - Hello all, I have a intranet website without anonymous access that requires users to log in via basic security to access the site. The webserver is IIS hosted on a Windows 2000 server and NT file system security is being used to manage access to the..
Next:  IIS: Public URL resolving to netbios name -Page can not be disp..  
Author Message
Minh

External


Since: Feb 26, 2007
Posts: 5



(Msg. 1) Posted: Mon Feb 26, 2007 5:37 pm
Post subject: IIS v5.1 outputs extra new line
Archived from groups: microsoft>public>inetserver>iis (more info?)

Hi all,

For all dynamic pages served by my IIS, it adds an extra new line character
at the start of any output. It's not a coding problem because it happens for
all applications installed on my web server and even the localstart.asp file
that ships with IIS.

To illustrate, the localstart.asp file begins with:

<%@ Language = "VBScript" %>
<% Response.Buffer = True %>
<html>
....

Now the output will be:

[newline char here]
<html>
....

Is there a way to turn this extra new line off?

This problem doesn't occur with static html pages though so I guess it has
to do with ASP dynamic page generation. I also have PHP running on IIS and
the PHP pages dished out also have the extra new line.

The extra line feed is generally not a problem when web pages are concerned
since the browser normally ignores them. However, RSS feeds fails with an XML
validation error under Firefox because of this superfluous new line.

Any help is greatly appreciated.

 >> Stay informed about: IIS v5.1 outputs extra new line 
Back to top
Login to vote
David Wang

External


Since: Dec 22, 2006
Posts: 560



(Msg. 2) Posted: Tue Feb 27, 2007 1:37 am
Post subject: Re: IIS v5.1 outputs extra new line [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Feb 26, 5:37 pm, Minh <M... DeleteThis @discussions.microsoft.com> wrote:
> Hi all,
>
> For all dynamic pages served by my IIS, it adds an extra new line character
> at the start of any output. It's not a coding problem because it happens for
> all applications installed on my web server and even the localstart.asp file
> that ships with IIS.
>
> To illustrate, the localstart.asp file begins with:
>
> <%@ Language = "VBScript" %>
> <% Response.Buffer = True %>
> <html>
> ...
>
> Now the output will be:
>
> [newline char here]
> <html>
> ...
>
> Is there a way to turn this extra new line off?
>
> This problem doesn't occur with static html pages though so I guess it has
> to do with ASP dynamic page generation. I also have PHP running on IIS and
> the PHP pages dished out also have the extra new line.
>
> The extra line feed is generally not a problem when web pages are concerned
> since the browser normally ignores them. However, RSS feeds fails with an XML
> validation error under Firefox because of this superfluous new line.
>
> Any help is greatly appreciated.



I think the problem is with custom ISAPI Code as well as non-default
configuration of your IIS server.

You should enumerate the ISAPI Filters configured on your server and
remove non-default ones. My guess is that you have a filter fiddling
with the response and inadvertently injecting newlines into some of
them.


//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//

 >> Stay informed about: IIS v5.1 outputs extra new line 
Back to top
Login to vote
Minh

External


Since: Feb 26, 2007
Posts: 5



(Msg. 3) Posted: Tue Feb 27, 2007 3:54 pm
Post subject: Re: IIS v5.1 outputs extra new line [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi David,

Thank you for your reply.

I had one ISAPI filter. I removed it and restarted IIS but unfortunately no
luck.

I probably have to agree there is probably some configuration issue with my
IIS installation - it's probably been tweaked too many time over the years.
Maybe its time for a re-installation...

"David Wang" wrote:

> On Feb 26, 5:37 pm, Minh <M... DeleteThis @discussions.microsoft.com> wrote:
> > Hi all,
> >
> > For all dynamic pages served by my IIS, it adds an extra new line character
> > at the start of any output. It's not a coding problem because it happens for
> > all applications installed on my web server and even the localstart.asp file
> > that ships with IIS.
> >
> > To illustrate, the localstart.asp file begins with:
> >
> > <%@ Language = "VBScript" %>
> > <% Response.Buffer = True %>
> > <html>
> > ...
> >
> > Now the output will be:
> >
> > [newline char here]
> > <html>
> > ...
> >
> > Is there a way to turn this extra new line off?
> >
> > This problem doesn't occur with static html pages though so I guess it has
> > to do with ASP dynamic page generation. I also have PHP running on IIS and
> > the PHP pages dished out also have the extra new line.
> >
> > The extra line feed is generally not a problem when web pages are concerned
> > since the browser normally ignores them. However, RSS feeds fails with an XML
> > validation error under Firefox because of this superfluous new line.
> >
> > Any help is greatly appreciated.
>
>
>
> I think the problem is with custom ISAPI Code as well as non-default
> configuration of your IIS server.
>
> You should enumerate the ISAPI Filters configured on your server and
> remove non-default ones. My guess is that you have a filter fiddling
> with the response and inadvertently injecting newlines into some of
> them.
>
>
> //David
> http://w3-4u.blogspot.com
> http://blogs.msdn.com/David.Wang
> //
>
>
 >> Stay informed about: IIS v5.1 outputs extra new line 
Back to top
Login to vote
David Wang

External


Since: Dec 22, 2006
Posts: 560



(Msg. 4) Posted: Tue Feb 27, 2007 6:01 pm
Post subject: Re: IIS v5.1 outputs extra new line [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

ISAPI Filters can be installed at a global and per-site.

It is not clear which you removed.

By default, there should be at least three filters at the global level
to implement SSL, compression, and digest, and possibly others for
ASP.Net. And possibly one site filter for fpexedll.

Those are the expected filters that you should leave alone.


//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//



On Feb 27, 3:54 pm, Minh <M... DeleteThis @discussions.microsoft.com> wrote:
> Hi David,
>
> Thank you for your reply.
>
> I had one ISAPI filter. I removed it and restarted IIS but unfortunately no
> luck.
>
> I probably have to agree there is probably some configuration issue with my
> IIS installation - it's probably been tweaked too many time over the years.
> Maybe its time for a re-installation...
>
>
>
> "David Wang" wrote:
> > On Feb 26, 5:37 pm, Minh <M... DeleteThis @discussions.microsoft.com> wrote:
> > > Hi all,
>
> > > For all dynamic pages served by my IIS, it adds an extra new line character
> > > at the start of any output. It's not a coding problem because it happens for
> > > all applications installed on my web server and even the localstart.asp file
> > > that ships with IIS.
>
> > > To illustrate, the localstart.asp file begins with:
>
> > > <%@ Language = "VBScript" %>
> > > <% Response.Buffer = True %>
> > > <html>
> > > ...
>
> > > Now the output will be:
>
> > > [newline char here]
> > > <html>
> > > ...
>
> > > Is there a way to turn this extra new line off?
>
> > > This problem doesn't occur with static html pages though so I guess it has
> > > to do with ASP dynamic page generation. I also have PHP running on IIS and
> > > the PHP pages dished out also have the extra new line.
>
> > > The extra line feed is generally not a problem when web pages are concerned
> > > since the browser normally ignores them. However, RSS feeds fails with an XML
> > > validation error under Firefox because of this superfluous new line.
>
> > > Any help is greatly appreciated.
>
> > I think the problem is with custom ISAPI Code as well as non-default
> > configuration of your IIS server.
>
> > You should enumerate the ISAPI Filters configured on your server and
> > remove non-default ones. My guess is that you have a filter fiddling
> > with the response and inadvertently injecting newlines into some of
> > them.
>
> > //David
> >http://w3-4u.blogspot.com
> >http://blogs.msdn.com/David.Wang
> > //- Hide quoted text -
>
> - Show quoted text -
 >> Stay informed about: IIS v5.1 outputs extra new line 
Back to top
Login to vote
David Wang

External


Since: Dec 22, 2006
Posts: 560



(Msg. 5) Posted: Tue Feb 27, 2007 6:07 pm
Post subject: Re: IIS v5.1 outputs extra new line [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I would refrain from reinstallation unless you are certain there is
nothing that you want to keep.

You may have installed 3rd party or other applications which have web-
dependent functionality which will likely break after reinstallation.

In short, unless you are fully aware of all dependencies and want to
get rid of it all, I would not reinstall IIS.

I tend to think figuring out how to remove stray CRLF is fairly easy
in comparison to figuring out why some other arbitrary web application
is not working -- because the former is just ISAPI while the latter is
arbitrary code that I have no idea about. I understand that for you,
it's both unknown, so it does not matter as long as you can find
support elsewhere for those applications.


//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//




On Feb 27, 3:54 pm, Minh <M....DeleteThis@discussions.microsoft.com> wrote:
> Hi David,
>
> Thank you for your reply.
>
> I had one ISAPI filter. I removed it and restarted IIS but unfortunately no
> luck.
>
> I probably have to agree there is probably some configuration issue with my
> IIS installation - it's probably been tweaked too many time over the years.
> Maybe its time for a re-installation...
>
>
>
> "David Wang" wrote:
> > On Feb 26, 5:37 pm, Minh <M....DeleteThis@discussions.microsoft.com> wrote:
> > > Hi all,
>
> > > For all dynamic pages served by my IIS, it adds an extra new line character
> > > at the start of any output. It's not a coding problem because it happens for
> > > all applications installed on my web server and even the localstart.asp file
> > > that ships with IIS.
>
> > > To illustrate, the localstart.asp file begins with:
>
> > > <%@ Language = "VBScript" %>
> > > <% Response.Buffer = True %>
> > > <html>
> > > ...
>
> > > Now the output will be:
>
> > > [newline char here]
> > > <html>
> > > ...
>
> > > Is there a way to turn this extra new line off?
>
> > > This problem doesn't occur with static html pages though so I guess it has
> > > to do with ASP dynamic page generation. I also have PHP running on IIS and
> > > the PHP pages dished out also have the extra new line.
>
> > > The extra line feed is generally not a problem when web pages are concerned
> > > since the browser normally ignores them. However, RSS feeds fails with an XML
> > > validation error under Firefox because of this superfluous new line.
>
> > > Any help is greatly appreciated.
>
> > I think the problem is with custom ISAPI Code as well as non-default
> > configuration of your IIS server.
>
> > You should enumerate the ISAPI Filters configured on your server and
> > remove non-default ones. My guess is that you have a filter fiddling
> > with the response and inadvertently injecting newlines into some of
> > them.
>
> > //David
> >http://w3-4u.blogspot.com
> >http://blogs.msdn.com/David.Wang
> > //- Hide quoted text -
>
> - Show quoted text -
 >> Stay informed about: IIS v5.1 outputs extra new line 
Back to top
Login to vote
Minh

External


Since: Feb 26, 2007
Posts: 5



(Msg. 6) Posted: Tue Feb 27, 2007 10:46 pm
Post subject: Re: IIS v5.1 outputs extra new line [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Good point. I removed the filter for the website in question.

Now having a look at my global filters, I have the following:

UrlScan
sspifilt
Compression
md5filt
pwsdata
fpexedll.dll
ASP.NET_2.0.50727

However, they look like Microsoft filters to me.

Taking your advice, I won't do a re-installation just yet.

Many thanks for your help so far.





"David Wang" wrote:

> ISAPI Filters can be installed at a global and per-site.
>
> It is not clear which you removed.
>
> By default, there should be at least three filters at the global level
> to implement SSL, compression, and digest, and possibly others for
> ASP.Net. And possibly one site filter for fpexedll.
>
> Those are the expected filters that you should leave alone.
>
>
> //David
> http://w3-4u.blogspot.com
> http://blogs.msdn.com/David.Wang
> //
>
>
>
> On Feb 27, 3:54 pm, Minh <M....TakeThisOut@discussions.microsoft.com> wrote:
> > Hi David,
> >
> > Thank you for your reply.
> >
> > I had one ISAPI filter. I removed it and restarted IIS but unfortunately no
> > luck.
> >
> > I probably have to agree there is probably some configuration issue with my
> > IIS installation - it's probably been tweaked too many time over the years.
> > Maybe its time for a re-installation...
> >
> >
> >
> > "David Wang" wrote:
> > > On Feb 26, 5:37 pm, Minh <M....TakeThisOut@discussions.microsoft.com> wrote:
> > > > Hi all,
> >
> > > > For all dynamic pages served by my IIS, it adds an extra new line character
> > > > at the start of any output. It's not a coding problem because it happens for
> > > > all applications installed on my web server and even the localstart.asp file
> > > > that ships with IIS.
> >
> > > > To illustrate, the localstart.asp file begins with:
> >
> > > > <%@ Language = "VBScript" %>
> > > > <% Response.Buffer = True %>
> > > > <html>
> > > > ...
> >
> > > > Now the output will be:
> >
> > > > [newline char here]
> > > > <html>
> > > > ...
> >
> > > > Is there a way to turn this extra new line off?
> >
> > > > This problem doesn't occur with static html pages though so I guess it has
> > > > to do with ASP dynamic page generation. I also have PHP running on IIS and
> > > > the PHP pages dished out also have the extra new line.
> >
> > > > The extra line feed is generally not a problem when web pages are concerned
> > > > since the browser normally ignores them. However, RSS feeds fails with an XML
> > > > validation error under Firefox because of this superfluous new line.
> >
> > > > Any help is greatly appreciated.
> >
> > > I think the problem is with custom ISAPI Code as well as non-default
> > > configuration of your IIS server.
> >
> > > You should enumerate the ISAPI Filters configured on your server and
> > > remove non-default ones. My guess is that you have a filter fiddling
> > > with the response and inadvertently injecting newlines into some of
> > > them.
> >
> > > //David
> > >http://w3-4u.blogspot.com
> > >http://blogs.msdn.com/David.Wang
> > > //- Hide quoted text -
> >
> > - Show quoted text -
>
>
>
 >> Stay informed about: IIS v5.1 outputs extra new line 
Back to top
Login to vote
Minh

External


Since: Feb 26, 2007
Posts: 5



(Msg. 7) Posted: Tue Feb 27, 2007 10:54 pm
Post subject: Re: IIS v5.1 outputs extra new line [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Just some clarification on my previous post

"Minh" wrote:

> Good point. I removed the filter for the website in question.

It should have read "I only removed the filter for the website in question."

Further to this, this specific website now has no ISAPI filters.
 >> Stay informed about: IIS v5.1 outputs extra new line 
Back to top
Login to vote
Minh

External


Since: Feb 26, 2007
Posts: 5



(Msg. 8) Posted: Tue Mar 13, 2007 5:15 pm
Post subject: Re: IIS v5.1 outputs extra new line [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I've now removed all my global/local ISAPI filters but that CR LF still
exists! And yes I have restarted IIS.

Anybody have anymore ideas?

"Minh" wrote:

> Good point. I removed the filter for the website in question.
>
> Now having a look at my global filters, I have the following:
>
> UrlScan
> sspifilt
> Compression
> md5filt
> pwsdata
> fpexedll.dll
> ASP.NET_2.0.50727
>
> However, they look like Microsoft filters to me.
>
> Taking your advice, I won't do a re-installation just yet.
>
> Many thanks for your help so far.
>
>
>
>
>
> "David Wang" wrote:
>
> > ISAPI Filters can be installed at a global and per-site.
> >
> > It is not clear which you removed.
> >
> > By default, there should be at least three filters at the global level
> > to implement SSL, compression, and digest, and possibly others for
> > ASP.Net. And possibly one site filter for fpexedll.
> >
> > Those are the expected filters that you should leave alone.
> >
> >
> > //David
> > http://w3-4u.blogspot.com
> > http://blogs.msdn.com/David.Wang
> > //
> >
> >
> >
> > On Feb 27, 3:54 pm, Minh <M... DeleteThis @discussions.microsoft.com> wrote:
> > > Hi David,
> > >
> > > Thank you for your reply.
> > >
> > > I had one ISAPI filter. I removed it and restarted IIS but unfortunately no
> > > luck.
> > >
> > > I probably have to agree there is probably some configuration issue with my
> > > IIS installation - it's probably been tweaked too many time over the years.
> > > Maybe its time for a re-installation...
> > >
> > >
> > >
> > > "David Wang" wrote:
> > > > On Feb 26, 5:37 pm, Minh <M... DeleteThis @discussions.microsoft.com> wrote:
> > > > > Hi all,
> > >
> > > > > For all dynamic pages served by my IIS, it adds an extra new line character
> > > > > at the start of any output. It's not a coding problem because it happens for
> > > > > all applications installed on my web server and even the localstart.asp file
> > > > > that ships with IIS.
> > >
> > > > > To illustrate, the localstart.asp file begins with:
> > >
> > > > > <%@ Language = "VBScript" %>
> > > > > <% Response.Buffer = True %>
> > > > > <html>
> > > > > ...
> > >
> > > > > Now the output will be:
> > >
> > > > > [newline char here]
> > > > > <html>
> > > > > ...
> > >
> > > > > Is there a way to turn this extra new line off?
> > >
> > > > > This problem doesn't occur with static html pages though so I guess it has
> > > > > to do with ASP dynamic page generation. I also have PHP running on IIS and
> > > > > the PHP pages dished out also have the extra new line.
> > >
> > > > > The extra line feed is generally not a problem when web pages are concerned
> > > > > since the browser normally ignores them. However, RSS feeds fails with an XML
> > > > > validation error under Firefox because of this superfluous new line.
> > >
> > > > > Any help is greatly appreciated.
> > >
> > > > I think the problem is with custom ISAPI Code as well as non-default
> > > > configuration of your IIS server.
> > >
> > > > You should enumerate the ISAPI Filters configured on your server and
> > > > remove non-default ones. My guess is that you have a filter fiddling
> > > > with the response and inadvertently injecting newlines into some of
> > > > them.
> > >
> > > > //David
> > > >http://w3-4u.blogspot.com
> > > >http://blogs.msdn.com/David.Wang
> > > > //- Hide quoted text -
> > >
> > > - Show quoted text -
> >
> >
> >
 >> Stay informed about: IIS v5.1 outputs extra new line 
Back to top
Login to vote
Display posts from previous:   
   Web Hosting and Web Master Forums (Home) -> IIS All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]