F
fripper
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.
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.