|
Related Topics:
| REMOTE_USER Server Variable - Using IIS 5.0. I'm working with my web admin to try to fix this, but he doesn't seem to know how to do it. My problem is that when I make a call: I am not getting any value back. .. I have been able to use this..
Custom server variable - I'm trying to create a custom server variable. Is there a way to do this? Maybe as an ISAPI filter? I know there are MUCH ways to store session data ... However, I'm dealing with a legacy that relies on this. Thanks in..
PATH_TRANSLATED / SCRIPT_NAME server variable 404 issue. - Please Help. Nobody seems to have posted a solution for this yet. System: Windows 2000 (unknown if it is Pro, Server or Advanced Server) All known service packs are Symptoms: Accessing a URL from an asp.net such as..
Session Variable Loss with IIS 6.0 Windows 2003 Server - OVERVIEW: random loss of session No hard can be seen with worker process to worker process settings, or endless beating of my head against the wall. SETUP: Windows 2003 Server, IIS 6.0, P4..
IIS does not return 304 Not Modified - Hi all, Am I right in saying that IIS does not support requests when serving static content? I have a site which has a large amount of graphical content - which changes on an ad hoc basis - and have just made the move from..
|
|
| Author |
Message |
External

Since: Nov 13, 2006 Posts: 22
|
(Msg. 1) Posted: Sat Feb 03, 2007 10:00 pm
Post subject: Server variable can't be modified during request? Archived from groups: microsoft>public>inetserver>iis (more info?)
|
|
|
I recently had a problem of not being able to connect to the web
server. I found out the issue was because of installing PHP. I've
since uninstalled PHP and manually configured it from the zip file.
Now everything except aspx pages are loading fine. This is the error
I get when accessing an aspx page:
Server Error in '/' Application.
--------------------------------------------------------------------------------
This server variable cannot be modified during request execution.
Description: An unhandled exception occurred during the execution of
the current web request. Please review the stack trace for more
information about the error and where it originated in the code.
Exception Details: System.Web.HttpException: This server variable
cannot be modified during request execution.
Any suggestions as to what it means? Before getting the web server
back online, I had to remove duplicates in the asp.net web app's
web.config file, since the iis config file also had those entries.
IIS would give duplicate entry errors in the browser. That was
probably due to my uninstalling/reinstalling of iis.
Thanks,
Brett >> Stay informed about: Server variable can't be modified during request? |
|
| Back to top |
|
 |  |
External

Since: Dec 22, 2006 Posts: 560
|
(Msg. 2) Posted: Sun Feb 04, 2007 1:21 pm
Post subject: Re: Server variable can't be modified during request? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Please provide the IIS, ASP.Net, and PHP versions.
//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//
On Feb 3, 10:00 pm, "brett" <acco....DeleteThis@cygen.com> wrote:
> I recently had a problem of not being able to connect to the web
> server. I found out the issue was because of installing PHP. I've
> since uninstalled PHP and manually configured it from the zip file.
> Now everything except aspx pages are loading fine. This is the error
> I get when accessing an aspx page:
>
> Server Error in '/' Application.
> --------------------------------------------------------------------------------
>
> This server variable cannot be modified during request execution.
> Description: An unhandled exception occurred during the execution of
> the current web request. Please review the stack trace for more
> information about the error and where it originated in the code.
>
> Exception Details: System.Web.HttpException: This server variable
> cannot be modified during request execution.
>
> Any suggestions as to what it means? Before getting the web server
> back online, I had to remove duplicates in the asp.net web app's
> web.config file, since the iis config file also had those entries.
> IIS would give duplicate entry errors in the browser. That was
> probably due to my uninstalling/reinstalling of iis.
>
> Thanks,
> Brett >> Stay informed about: Server variable can't be modified during request? |
|
| Back to top |
|
 |  |
External

Since: Nov 13, 2006 Posts: 22
|
(Msg. 3) Posted: Sun Feb 04, 2007 1:43 pm
Post subject: Re: Server variable can't be modified during request? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
|
|
| Back to top |
|
 |  |
External

Since: Dec 22, 2006 Posts: 560
|
(Msg. 4) Posted: Mon Feb 05, 2007 2:23 am
Post subject: Re: Server variable can't be modified during request? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
On Feb 4, 1:43 pm, "brett" <acco....DeleteThis@cygen.com> wrote:
> On Feb 4, 1:21 pm, "David Wang" <w3.4....DeleteThis@gmail.com> wrote:
>
> > Please provide the IIS, ASP.Net, and PHP versions.
>
> IIS7 on Vista. ASP.NET 2.0. PHP 5.2.0.
Are you running in Classic ASP.Net mode or Integrated. It determines
how *only* ASPX pages execute on IIS7.
The mode determines whether we should look at entries in
<httpModules> / <httHandlers> or <modules> / <handlers> for the cause.
Also, does this occur only on certain ASPX pages or all ASPX pages.
With the componentized nature of IIS7, you *must* provide all details
of its configuration since it directly affects behavior that you
observe.
I do not believe that installing PHP would cause IIS7 to fail -- we
know PHP works fine on IIS7 -- unless you tried to incorrectly install
PHP ISAPI as a module or created an invalid handler (which I
frequently see). Since you are tweaking around with the internals, I
insist that you divulge all your changes inside the web.config (where
in the URL namespace) as well as applicationHost.config.
Really, to get IIS7 working with ASP.Net and PHP is easy. You may just
want to uninstall IIS7, delete and make sure all its files are gone,
reinstall IIS7 with ASP.Net component installed, and follow these
instructions:
http://blogs.msdn.com/david.wang/archive/2006/06/24/HOWTO-Install-and-...-PHP-on
It's not that I don't want to help, but it is often easier to start
from a known, working state instead of a very messed up and uncertain
state of your server.
//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
// >> Stay informed about: Server variable can't be modified during request? |
|
| Back to top |
|
 |  |
External

Since: Nov 13, 2006 Posts: 22
|
(Msg. 5) Posted: Mon Feb 05, 2007 8:21 am
Post subject: Re: Server variable can't be modified during request? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
I'm not sure which files you are referring to deleting. Where are IIS
files stored?
applicationHost.config can't be deleted. It's a always locked even
with WWW and IIS services stopped. I did try uninstalling IIS but get
a message that "an error has occurred" at the end of the uninstall.
It never removes any of the features I try to remove. Even when the
error doesn't appear and I reboot, all of the same features are
checked. When I start IIS now and expand the Websites part, I get an
error that "the element is not found". Any suggestions for these?
Thanks,
Bret >> Stay informed about: Server variable can't be modified during request? |
|
| Back to top |
|
 |  |
External

Since: Dec 22, 2006 Posts: 560
|
(Msg. 6) Posted: Mon Feb 05, 2007 10:21 am
Post subject: Re: Server variable can't be modified during request? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
On Feb 5, 8:21 am, "brett" <acco....DeleteThis@cygen.com> wrote:
> I'm not sure which files you are referring to deleting. Where are IIS
> files stored?
>
> applicationHost.config can't be deleted. It's a always locked even
> with WWW and IIS services stopped. I did try uninstalling IIS but get
> a message that "an error has occurred" at the end of the uninstall.
> It never removes any of the features I try to remove. Even when the
> error doesn't appear and I reboot, all of the same features are
> checked. When I start IIS now and expand the Websites part, I get an
> error that "the element is not found". Any suggestions for these?
>
> Thanks,
> Bret
Sorry, I have no more suggestions. It sounds like something is
seriously corrupted on your Vista installation and it prevents IIS7
from functioning. If you want to get IIS7 working, you have to get
back to a state where Vista considers its features uninstalled and its
files are actually gone from the system. When we know setup failed
somewhere, things will break in strange ways all over the place and is
basically not worthwhile to debug.
There are a couple of setup log files to look at for the setup
failures, but I'm inclined to tell you to simply reinstall.
//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
// >> Stay informed about: Server variable can't be modified during request? |
|
| Back to top |
|
 |  |
External

Since: Nov 13, 2006 Posts: 22
|
(Msg. 7) Posted: Mon Feb 05, 2007 11:06 am
Post subject: Re: Server variable can't be modified during request? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
On Feb 5, 10:21 am, "David Wang" <w3.4....DeleteThis@gmail.com> wrote:
> On Feb 5, 8:21 am, "brett" <acco....DeleteThis@cygen.com> wrote:
>
> > I'm not sure which files you are referring to deleting. Where are IIS
> > files stored?
>
> > applicationHost.config can't be deleted. It's a always locked even
> > with WWW and IIS services stopped. I did try uninstalling IIS but get
> > a message that "an error has occurred" at the end of the uninstall.
> > It never removes any of the features I try to remove. Even when the
> > error doesn't appear and I reboot, all of the same features are
> > checked. When I start IIS now and expand the Websites part, I get an
> > error that "the element is not found". Any suggestions for these?
>
> > Thanks,
> > Bret
>
> Sorry, I have no more suggestions. It sounds like something is
> seriously corrupted on your Vista installation and it prevents IIS7
> from functioning. If you want to get IIS7 working, you have to get
> back to a state where Vista considers its features uninstalled and its
> files are actually gone from the system. When we know setup failed
> somewhere, things will break in strange ways all over the place and is
> basically not worthwhile to debug.
>
> There are a couple of setup log files to look at for the setup
> failures, but I'm inclined to tell you to simply reinstall.
Are you saying to reinstall (repair) of Vista? None of the IIS
features are checked in Windows Features. So I can't uninstall or
reinstall it.
Thanks,
Brett >> Stay informed about: Server variable can't be modified during request? |
|
| Back to top |
|
 |  |
External

Since: Dec 22, 2006 Posts: 560
|
(Msg. 8) Posted: Mon Feb 05, 2007 11:45 am
Post subject: Re: Server variable can't be modified during request? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
On Feb 5, 11:06 am, "brett" <acco....DeleteThis@cygen.com> wrote:
> On Feb 5, 10:21 am, "David Wang" <w3.4....DeleteThis@gmail.com> wrote:
>
>
>
>
>
> > On Feb 5, 8:21 am, "brett" <acco....DeleteThis@cygen.com> wrote:
>
> > > I'm not sure which files you are referring to deleting. Where are IIS
> > > files stored?
>
> > > applicationHost.config can't be deleted. It's a always locked even
> > > with WWW and IIS services stopped. I did try uninstalling IIS but get
> > > a message that "an error has occurred" at the end of the uninstall.
> > > It never removes any of the features I try to remove. Even when the
> > > error doesn't appear and I reboot, all of the same features are
> > > checked. When I start IIS now and expand the Websites part, I get an
> > > error that "the element is not found". Any suggestions for these?
>
> > > Thanks,
> > > Bret
>
> > Sorry, I have no more suggestions. It sounds like something is
> > seriously corrupted on your Vista installation and it prevents IIS7
> > from functioning. If you want to get IIS7 working, you have to get
> > back to a state where Vista considers its features uninstalled and its
> > files are actually gone from the system. When we know setup failed
> > somewhere, things will break in strange ways all over the place and is
> > basically not worthwhile to debug.
>
> > There are a couple of setup log files to look at for the setup
> > failures, but I'm inclined to tell you to simply reinstall.
>
> Are you saying to reinstall (repair) of Vista? None of the IIS
> features are checked in Windows Features. So I can't uninstall or
> reinstall it.
>
> Thanks,
> Brett- Hide quoted text -
>
> - Show quoted text -
Tell me if the directory %windir%\System32\inetsrv still exists when
IIS features are all unchecked. Same with %systemdrive%\Inetpub
The directory must be empty for IIS to be considered "not present/
installed", regardless of what Vista thinks.
//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
// >> Stay informed about: Server variable can't be modified during request? |
|
| Back to top |
|
 |  |
External

Since: Nov 13, 2006 Posts: 22
|
(Msg. 9) Posted: Mon Feb 05, 2007 12:44 pm
Post subject: Re: Server variable can't be modified during request? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
> Tell me if the directory %windir%\System32\inetsrv still exists when
> IIS features are all unchecked. Same with %systemdrive%\Inetpub
inetsrv has two folders: config and en-US. Both are empty.
inetpub does have files and folders in it. I actually put all of my
websites on another drive in a different folder structure and have IIS
reference it. Should I clear out c:\Inetpub and the inetsrv folders? >> Stay informed about: Server variable can't be modified during request? |
|
| Back to top |
|
 |  |
External

Since: Dec 22, 2006 Posts: 560
|
(Msg. 10) Posted: Mon Feb 05, 2007 1:14 pm
Post subject: Re: Server variable can't be modified during request? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
On Feb 5, 12:44 pm, "brett" <acco... DeleteThis @cygen.com> wrote:
> > Tell me if the directory %windir%\System32\inetsrv still exists when
> > IIS features are all unchecked. Same with %systemdrive%\Inetpub
>
> inetsrv has two folders: config and en-US. Both are empty.
>
> inetpub does have files and folders in it. I actually put all of my
> websites on another drive in a different folder structure and have IIS
> reference it. Should I clear out c:\Inetpub and the inetsrv folders?
You probably won't be able to delete the inetsrv folder, but you
should be able to remove all files and subfolders from it and not have
Windows File Protection bring them back.
As for C:\inetpub - Let's keep it simple - use those default website/
folders and the following sample test files (not your own) until you
are sure ASP.Net and PHP are both correctly configured. Then, you
change the website to point towards your content and troubleshoot
them.
Make sure to crawl before trying to run. One step at a time or else
you can't figure out what works and what doesn't.
Sample test PHP and ASP.Net files:
test.php:
<?php phpinfo();?>
test.aspx:
<% Response.Write( "Hello World" ) %>
After making sure that there's no trace of IIS7 files, reinstall IIS7
from Vista with ASP.Net support. Then follow my earlier blog entry to
install and configure PHP on IIS. Then test it out with the two sample
PHP and ASP.Net files I provided above. Verify it all works before
moving on to using your own content.
//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
// >> Stay informed about: Server variable can't be modified during request? |
|
| Back to top |
|
 |  |
External

Since: Nov 13, 2006 Posts: 22
|
(Msg. 11) Posted: Mon Feb 05, 2007 1:36 pm
Post subject: Re: Server variable can't be modified during request? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
|
|
| Back to top |
|
 |  |
External

Since: Dec 22, 2006 Posts: 560
|
(Msg. 12) Posted: Mon Feb 05, 2007 2:01 pm
Post subject: Re: Server variable can't be modified during request? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
On Feb 5, 1:36 pm, "brett" <acco....TakeThisOut@cygen.com> wrote:
> I guess this brings me back to my original problem. If I try to
> install IIS, I get this error at the end of the install:
>
> "An error has occurred. Not all of the features were successfully
> changed."
>
> Actually, none of them are ever changed. Until I can make that go
> away, I can't move forward.
Yes, that is a fair conclusion.
This is useful detail to disclose from the beginning because it is
hard to debug misconfiguration/misbehavior when one cannot be sure
what files were/not installed/configured correctly within IIS7 setup.
I think clean format and reinstall will be necessary. It's just a
bigger headache to keep current settings and attempt to fix whatever
is not working.
//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
// >> Stay informed about: Server variable can't be modified during request? |
|
| Back to top |
|
 |  |
External

Since: Nov 13, 2006 Posts: 22
|
(Msg. 13) Posted: Mon Feb 05, 2007 2:42 pm
Post subject: Re: Server variable can't be modified during request? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
> I think clean format and reinstall will be necessary. It's just a
> bigger headache to keep current settings and attempt to fix whatever
> is not working.
Formatting would take me forever to get back up and running. Is it
possible to go back to a restorepoint or last good known
configuration? >> Stay informed about: Server variable can't be modified during request? |
|
| Back to top |
|
 |  |
External

Since: Nov 13, 2006 Posts: 22
|
(Msg. 14) Posted: Mon Feb 05, 2007 2:49 pm
Post subject: Re: Server variable can't be modified during request? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
> I think clean format and reinstall will be necessary. It's just a
> bigger headache to keep current settings and attempt to fix whatever
> is not working.
Formatting would take me forever to get back up and running. Is it
possible to go back to a restorepoint or last good known
configuration? >> Stay informed about: Server variable can't be modified during request? |
|
| Back to top |
|
 |  |
External

Since: Nov 13, 2006 Posts: 22
|
(Msg. 15) Posted: Mon Feb 05, 2007 4:03 pm
Post subject: Re: Server variable can't be modified during request? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
On Feb 5, 2:49 pm, "brett" <acco... RemoveThis @cygen.com> wrote:
> > I think clean format and reinstall will be necessary. It's just a
> > bigger headache to keep current settings and attempt to fix whatever
> > is not working.
>
> Formatting would take me forever to get back up and running. Is it
> possible to go back to a restorepoint or last good known
> configuration?
I did the restore point and it is working now. All of my provders are
still there and configured as well. >> Stay informed about: Server variable can't be modified during request? |
|
| Back to top |
|
 |  |
|