473,326 Members | 2,023 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

IIS Problem ...

I posted this problem a couple of days ago but felt I might have better luck
re-stating the problem.

Apparently I messed up IIS (v. 5) somehow because I am suddenly unable to
load web forms! A simple example will help.

I created a simple web project [WebTest] that contains two simple forms ...
WebForm1 and WebForm2. WebForm1 has a button which when clicked simply does
a Response.Redirect("WebForm2.aspx"). When I run the program and click the
button I get "The page cannot be found ... Error 404" message. WebForm2 is
clearly there ... in the same folder that contains WebForm1. I have
developed a number of simple web apps over the past couple of years and have
never run into this problem; although I don't think I have tried this since
installing SP2.. IIS is installed and appears to be OK. Using debug mode I
was able to ascertain that Server.MapPath is correct ... its value is
"c:\inetpub\wwwroot\WebTest"; WebTest is the folder that contains
WebForm1.aspx and WebForm2.aspx.

Now, when I click on a button (as I understand it) the page does a
round-trip to the server and back; I am getting the 404 Error on the reload
of WebForm1 on the return trip I presume. I have determined that the web
site [WebTest] containing WebForm1 and WebForm2 allows the aspx extension.

I do not want to reinstall IIS because I understand that it should be
installed before .Net ... and I do not want to risk uninstalling and then
re-installing .Net.

I have developed a number of web apps and IIS has been a huge help as I
debug these apps before deploying them to the ASP server I use; I have never
had any difficulty with it. I suspect that I did something to IIS to cause
this but I cannot fathom what that might be ... I haven't messed around with
it at all.

If anyone has suggestions for what might be causing this problem I would
appreciate it. Might SP2 be the culprit?

Thanks for any advice you can give me.


I must have done something that has suddenly caused me to be unable to load
a new web form when developing web apps. Simple example: WebForm1 has a
button which when clicked simply does a Response.Redirect("WebForm2.aspx").
When
I run the program and click the button I get "The page cannot be found"
message. WebForm2 is clearly there ... in the same folder that contains
WebForm1. I have developed a number of simple web apps over the past couple
of years and have never run into this problem; although I don't think I have
tried this since installing SP2.. IIS is installed and appears to be OK.
Using debug mode I was able to ascertain that Server.MapPath is correct ...
its value is "c:\inetpub\wwwroot\WebTest"; WebTest is the folder that
contains WebForm1 and WebForm2.
Nov 22 '05 #1
5 3228
Interesting app.

If you are at the browser, and you simply enter the url for WebForm2.aspx, I
assume that it appears, right? (I do have to start with the obvious
question... sorry about that).

OK. when you click the button, the system posts back to the WebForm1 form.
It will execute the Redirect. This sends an HTTP header back to the browser
indicating the redirect. The browser then issues a new GET request against
the new page. Your 404 may be coming from this new request. It may not be
from the form postback. That's why I asked if WebForm2.aspx is available
from the browser.

The server logs on the web server should tell you if both the form postback
and the subsequent GET were received by the web server. That may help.

This is an odd problem. I haven't seen this.

By the way, you can reinstall IIS if you thing that will fix it, and then
follow the instructions here:
http://support.microsoft.com/default...;en-us;Q306005

Good luck,
--- Nick

"fripper" <fr*****@insightbb.com> wrote in message
news:ui**************@TK2MSFTNGP15.phx.gbl...
I posted this problem a couple of days ago but felt I might have better luck re-stating the problem.

Apparently I messed up IIS (v. 5) somehow because I am suddenly unable to
load web forms! A simple example will help.

I created a simple web project [WebTest] that contains two simple forms .... WebForm1 and WebForm2. WebForm1 has a button which when clicked simply does a Response.Redirect("WebForm2.aspx"). When I run the program and click the button I get "The page cannot be found ... Error 404" message. WebForm2 is clearly there ... in the same folder that contains WebForm1. I have
developed a number of simple web apps over the past couple of years and have never run into this problem; although I don't think I have tried this since installing SP2.. IIS is installed and appears to be OK. Using debug mode I
was able to ascertain that Server.MapPath is correct ... its value is
"c:\inetpub\wwwroot\WebTest"; WebTest is the folder that contains
WebForm1.aspx and WebForm2.aspx.

Now, when I click on a button (as I understand it) the page does a
round-trip to the server and back; I am getting the 404 Error on the reload of WebForm1 on the return trip I presume. I have determined that the web
site [WebTest] containing WebForm1 and WebForm2 allows the aspx extension.

I do not want to reinstall IIS because I understand that it should be
installed before .Net ... and I do not want to risk uninstalling and then
re-installing .Net.

I have developed a number of web apps and IIS has been a huge help as I
debug these apps before deploying them to the ASP server I use; I have never had any difficulty with it. I suspect that I did something to IIS to cause this but I cannot fathom what that might be ... I haven't messed around with it at all.

If anyone has suggestions for what might be causing this problem I would
appreciate it. Might SP2 be the culprit?

Thanks for any advice you can give me.


I must have done something that has suddenly caused me to be unable to load a new web form when developing web apps. Simple example: WebForm1 has a
button which when clicked simply does a Response.Redirect("WebForm2.aspx"). When
I run the program and click the button I get "The page cannot be found"
message. WebForm2 is clearly there ... in the same folder that contains
WebForm1. I have developed a number of simple web apps over the past couple of years and have never run into this problem; although I don't think I have tried this since installing SP2.. IIS is installed and appears to be OK.
Using debug mode I was able to ascertain that Server.MapPath is correct .... its value is "c:\inetpub\wwwroot\WebTest"; WebTest is the folder that
contains WebForm1 and WebForm2.

Nov 22 '05 #2
I am able to load WebForm2 if I manually enter the url in the browser's
address box. Server log shows that the problem is on the postback of
WebForm1. The GET for WebForm2 does not appear. Here are the relevant
entries:

00:28:58 10.0.1.5 GET /WebTest/WebForm1 200
00:29:00 10.0.1.5 GET /<Rejected-By-UrlScan> 404

They don't tell me WHY it was rejected by UrlScan.

Guess I better plan to reinstall IIS ... will do so this evening.

Thanks, Nick
"Nick Malik" <ni*******@hotmail.nospam.com> wrote in message
news:dlgrd.174393$HA.165897@attbi_s01...
Interesting app.

If you are at the browser, and you simply enter the url for WebForm2.aspx,
I
assume that it appears, right? (I do have to start with the obvious
question... sorry about that).

OK. when you click the button, the system posts back to the WebForm1
form.
It will execute the Redirect. This sends an HTTP header back to the
browser
indicating the redirect. The browser then issues a new GET request
against
the new page. Your 404 may be coming from this new request. It may not
be
from the form postback. That's why I asked if WebForm2.aspx is available
from the browser.

The server logs on the web server should tell you if both the form
postback
and the subsequent GET were received by the web server. That may help.

This is an odd problem. I haven't seen this.

By the way, you can reinstall IIS if you thing that will fix it, and then
follow the instructions here:
http://support.microsoft.com/default...;en-us;Q306005

Good luck,
--- Nick

"fripper" <fr*****@insightbb.com> wrote in message
news:ui**************@TK2MSFTNGP15.phx.gbl...
I posted this problem a couple of days ago but felt I might have better

luck
re-stating the problem.

Apparently I messed up IIS (v. 5) somehow because I am suddenly unable to
load web forms! A simple example will help.

I created a simple web project [WebTest] that contains two simple forms

...
WebForm1 and WebForm2. WebForm1 has a button which when clicked simply

does
a Response.Redirect("WebForm2.aspx"). When I run the program and click

the
button I get "The page cannot be found ... Error 404" message. WebForm2

is
clearly there ... in the same folder that contains WebForm1. I have
developed a number of simple web apps over the past couple of years and

have
never run into this problem; although I don't think I have tried this

since
installing SP2.. IIS is installed and appears to be OK. Using debug mode
I
was able to ascertain that Server.MapPath is correct ... its value is
"c:\inetpub\wwwroot\WebTest"; WebTest is the folder that contains
WebForm1.aspx and WebForm2.aspx.

Now, when I click on a button (as I understand it) the page does a
round-trip to the server and back; I am getting the 404 Error on the

reload
of WebForm1 on the return trip I presume. I have determined that the web
site [WebTest] containing WebForm1 and WebForm2 allows the aspx
extension.

I do not want to reinstall IIS because I understand that it should be
installed before .Net ... and I do not want to risk uninstalling and then
re-installing .Net.

I have developed a number of web apps and IIS has been a huge help as I
debug these apps before deploying them to the ASP server I use; I have

never
had any difficulty with it. I suspect that I did something to IIS to

cause
this but I cannot fathom what that might be ... I haven't messed around

with
it at all.

If anyone has suggestions for what might be causing this problem I would
appreciate it. Might SP2 be the culprit?

Thanks for any advice you can give me.


I must have done something that has suddenly caused me to be unable to

load
a new web form when developing web apps. Simple example: WebForm1 has a
button which when clicked simply does a

Response.Redirect("WebForm2.aspx").
When
I run the program and click the button I get "The page cannot be found"
message. WebForm2 is clearly there ... in the same folder that contains
WebForm1. I have developed a number of simple web apps over the past

couple
of years and have never run into this problem; although I don't think I

have
tried this since installing SP2.. IIS is installed and appears to be OK.
Using debug mode I was able to ascertain that Server.MapPath is correct

...
its value is "c:\inetpub\wwwroot\WebTest"; WebTest is the folder that
contains WebForm1 and WebForm2.


Nov 22 '05 #3
Ahhh ... the plot thickens! After poking around some more on this problem I
found two log files ... urlscan.log and the logfile in
C:\WINNT\system32\Logfiles\W3SVC1. The second of these shows the entries:

22:23:21 127.0.0.1 GET /WebTest2/WebForm2.aspx 200
22:23:23 127.0.0.1 GET /<Rejected-By-UrlScan> 404

and the urlscan file shows:

[12-01-2004 - 17:23:23] Client at 127.0.0.1: Sent verb 'POST', which is not
specifically allowed. Request will be rejected.

[I guess the W3SVC1 logfile uses GMT and the urlscanlogfile uses local time]

Now, I went to the urlscan.ini file and from what I can ascertain POST is an
allowed verb ... as are GET, HEAD and DEBUG.

I will end this message with a complete listing of the .ini file.

Any advice as to why the postback is not working would be appreciated.
Thanks.
[options]
UseAllowVerbs=1 ; if 1, use [AllowVerbs] section, else use
[DenyVerbs] section
UseAllowExtensions=0 ; if 1, use [AllowExtensions] section, else
use [DenyExtensions] section
NormalizeUrlBeforeScan=1 ; if 1, canonicalize URL before processing
VerifyNormalization=1 ; if 1, canonicalize URL twice and reject
request if a change occurs
AllowHighBitCharacters=0 ; if 1, allow high bit (ie. UTF8 or MBCS)
characters in URL
AllowDotInPath=0 ; if 1, allow dots that are not file
extensions
RemoveServerHeader=0 ; if 1, remove "Server" header from response
EnableLogging=1 ; if 1, log UrlScan activity
PerProcessLogging=0 ; if 1, the UrlScan.log filename will contain
a PID (ie. UrlScan.123.log)
AllowLateScanning=0 ; if 1, then UrlScan will load as a low
priority filter.
PerDayLogging=1 ; if 1, UrlScan will produce a new log each
day with activity in the form UrlScan.010101.log
RejectResponseUrl= ; UrlScan will send rejected requests to the
URL specified here. Default is /<Rejected-by-UrlScan>
UseFastPathReject=0 ; If 1, then UrlScan will not use the
RejectResponseUrl or allow IIS to log the request

; If RemoveServerHeader is 0, then AlternateServerName can be
; used to specify a replacement for IIS's built in 'Server' header
AlternateServerName=

[AllowVerbs]

;
; The verbs (aka HTTP methods) listed here are those commonly
; processed by a typical IIS server.
;
; Note that these entries are effective if "UseAllowVerbs=1"
; is set in the [Options] section above.
;

GET
HEAD
POST
DEBUG

[DenyVerbs]

;
; The verbs (aka HTTP methods) listed here are used for publishing
; content to an IIS server via WebDAV.
;
; Note that these entries are effective if "UseAllowVerbs=0"
; is set in the [Options] section above.
;

PROPFIND
PROPPATCH
MKCOL
DELETE
PUT
COPY
MOVE
LOCK
UNLOCK
OPTIONS
SEARCH

[DenyHeaders]

;
; The following request headers alter processing of a
; request by causing the server to process the request
; as if it were intended to be a WebDAV request, instead
; of a request to retrieve a resource.
;

Translate:
If:
Lock-Token:

[AllowExtensions]

;
; Extensions listed here are commonly used on a typical IIS server.
;
; Note that these entries are effective if "UseAllowExtensions=1"
; is set in the [Options] section above.
;

..asp
..cer
..cdx
..asa
..htm
..html
..txt
..jpg
..jpeg
..gif

;.idq
;.htw
;.ida
;.idc
;.shtm
;.shtml
;.stm
;.htr
;.printer
[DenyExtensions]

;
; Extensions listed here either run code directly on the server,
; are processed as scripts, or are static files that are
; generally not intended to be served out.
;
; Note that these entries are effective if "UseAllowExtensions=0"
; is set in the [Options] section above.
;

; Deny executables that could run on the server
..exe
..bat
..cmd
..com

; Deny infrequently used scripts
..htw ; Maps to webhits.dll, part of Index Server
..ida ; Maps to idq.dll, part of Index Server
..idq ; Maps to idq.dll, part of Index Server
..htr ; Maps to ism.dll, a legacy administrative tool
..idc ; Maps to httpodbc.dll, a legacy database access tool
..shtm ; Maps to ssinc.dll, for Server Side Includes
..shtml ; Maps to ssinc.dll, for Server Side Includes
..stm ; Maps to ssinc.dll, for Server Side Includes
..printer ; Maps to msw3prt.dll, for Internet Printing Services

; Deny various static files
..ini ; Configuration files
..log ; Log files
..pol ; Policy files
..dat ; Configuration files

;.asp
;.cer
;.cdx
;.asa
[DenyUrlSequences]
... ; Don't allow directory traversals
../ ; Don't allow trailing dot on a directory name
\ ; Don't allow backslashes in URL
: ; Don't allow alternate stream access
% ; Don't allow escaping after normalization
& ; Don't allow multiple CGI processes to run on a single request


"fripper" <fr*****@insightbb.com> wrote in message
news:e9**************@TK2MSFTNGP14.phx.gbl...
I am able to load WebForm2 if I manually enter the url in the browser's
address box. Server log shows that the problem is on the postback of
WebForm1. The GET for WebForm2 does not appear. Here are the relevant
entries:

00:28:58 10.0.1.5 GET /WebTest/WebForm1 200
00:29:00 10.0.1.5 GET /<Rejected-By-UrlScan> 404

They don't tell me WHY it was rejected by UrlScan.

Guess I better plan to reinstall IIS ... will do so this evening.

Thanks, Nick
"Nick Malik" <ni*******@hotmail.nospam.com> wrote in message
news:dlgrd.174393$HA.165897@attbi_s01...
Interesting app.

If you are at the browser, and you simply enter the url for
WebForm2.aspx, I
assume that it appears, right? (I do have to start with the obvious
question... sorry about that).

OK. when you click the button, the system posts back to the WebForm1
form.
It will execute the Redirect. This sends an HTTP header back to the
browser
indicating the redirect. The browser then issues a new GET request
against
the new page. Your 404 may be coming from this new request. It may not
be
from the form postback. That's why I asked if WebForm2.aspx is available
from the browser.

The server logs on the web server should tell you if both the form
postback
and the subsequent GET were received by the web server. That may help.

This is an odd problem. I haven't seen this.

By the way, you can reinstall IIS if you thing that will fix it, and then
follow the instructions here:
http://support.microsoft.com/default...;en-us;Q306005

Good luck,
--- Nick

"fripper" <fr*****@insightbb.com> wrote in message
news:ui**************@TK2MSFTNGP15.phx.gbl...
I posted this problem a couple of days ago but felt I might have better

luck
re-stating the problem.

Apparently I messed up IIS (v. 5) somehow because I am suddenly unable
to
load web forms! A simple example will help.

I created a simple web project [WebTest] that contains two simple forms

...
WebForm1 and WebForm2. WebForm1 has a button which when clicked simply

does
a Response.Redirect("WebForm2.aspx"). When I run the program and click

the
button I get "The page cannot be found ... Error 404" message. WebForm2

is
clearly there ... in the same folder that contains WebForm1. I have
developed a number of simple web apps over the past couple of years and

have
never run into this problem; although I don't think I have tried this

since
installing SP2.. IIS is installed and appears to be OK. Using debug mode
I
was able to ascertain that Server.MapPath is correct ... its value is
"c:\inetpub\wwwroot\WebTest"; WebTest is the folder that contains
WebForm1.aspx and WebForm2.aspx.

Now, when I click on a button (as I understand it) the page does a
round-trip to the server and back; I am getting the 404 Error on the

reload
of WebForm1 on the return trip I presume. I have determined that the
web
site [WebTest] containing WebForm1 and WebForm2 allows the aspx
extension.

I do not want to reinstall IIS because I understand that it should be
installed before .Net ... and I do not want to risk uninstalling and
then
re-installing .Net.

I have developed a number of web apps and IIS has been a huge help as I
debug these apps before deploying them to the ASP server I use; I have

never
had any difficulty with it. I suspect that I did something to IIS to

cause
this but I cannot fathom what that might be ... I haven't messed around

with
it at all.

If anyone has suggestions for what might be causing this problem I would
appreciate it. Might SP2 be the culprit?

Thanks for any advice you can give me.


I must have done something that has suddenly caused me to be unable to

load
a new web form when developing web apps. Simple example: WebForm1 has a
button which when clicked simply does a

Response.Redirect("WebForm2.aspx").
When
I run the program and click the button I get "The page cannot be found"
message. WebForm2 is clearly there ... in the same folder that contains
WebForm1. I have developed a number of simple web apps over the past

couple
of years and have never run into this problem; although I don't think I

have
tried this since installing SP2.. IIS is installed and appears to be OK.
Using debug mode I was able to ascertain that Server.MapPath is correct

...
its value is "c:\inetpub\wwwroot\WebTest"; WebTest is the folder that
contains WebForm1 and WebForm2.



Nov 22 '05 #4
Never mind ... problem solved (by re-booting)
Nov 22 '05 #5
fascinating.

I'm glad you found it. I'd love to know what caused it.

--- N

"fripper" <fr*****@insightbb.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Never mind ... problem solved (by re-booting)

Nov 22 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: William C. White | last post by:
Does anyone know of a way to use PHP /w Authorize.net AIM without using cURL? Our website is hosted on a shared drive and the webhost company doesn't installed additional software (such as cURL)...
2
by: Albert Ahtenberg | last post by:
Hello, I don't know if it is only me but I was sure that header("Location:url") redirects the browser instantly to URL, or at least stops the execution of the code. But appearantely it continues...
3
by: James | last post by:
Hi, I have a form with 2 fields. 'A' 'B' The user completes one of the fields and the form is submitted. On the results page I want to run a query, but this will change subject to which...
0
by: Ollivier Robert | last post by:
Hello, I'm trying to link PHP with Oracle 9.2.0/OCI8 with gcc 3.2.3 on a Solaris9 system. The link succeeds but everytime I try to run php, I get a SEGV from inside the libcnltsh.so library. ...
1
by: Richard Galli | last post by:
I want viewers to compare state laws on a single subject. Imagine a three-column table with a drop-down box on the top. A viewer selects a state from the list, and that state's text fills the...
4
by: Albert Ahtenberg | last post by:
Hello, I have two questions. 1. When the user presses the back button and returns to a form he filled the form is reseted. How do I leave there the values he inserted? 2. When the...
1
by: inderjit S Gabrie | last post by:
Hi all Here is the scenerio ...is it possibly to do this... i am getting valid course dates output on to a web which i have designed ....all is okay so far , look at the following web url ...
2
by: Jack | last post by:
Hi All, What is the PHP equivilent of Oracle bind variables in a SQL statement, e.g. select x from y where z=:parameter Which in asp/jsp would be followed by some statements to bind a value...
3
by: Sandwick | last post by:
I am trying to change the size of a drawing so they are all 3x3. the script below is what i was trying to use to cut it in half ... I get errors. I can display the normal picture but not the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.