473,398 Members | 2,368 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,398 software developers and data experts.

Error "The Page Cannot Be Found"

Hi,
I have set up an asp.net website on another PC in order to test it. The
site was fine on my PC, but on the new PC all the pages give the error "The
Page Cannot Be Found". Some legacy pages (ASP, as opposed to ASP.Net) work
fine.

The old PC was running Windows 2000 Server, and the new PC I am testing on
is running Windows Server 2003.

Thanks in advance,
Martin

--
Martin Eyles
ma**********@NOSPAM.bytronic.com
Nov 20 '05 #1
9 6131
Have you tried running command aspregiis ?

Start -> Run - > aspregiis.exe -i

"Martin Eyles" wrote:
Hi,
I have set up an asp.net website on another PC in order to test it. The
site was fine on my PC, but on the new PC all the pages give the error "The
Page Cannot Be Found". Some legacy pages (ASP, as opposed to ASP.Net) work
fine.

The old PC was running Windows 2000 Server, and the new PC I am testing on
is running Windows Server 2003.

Thanks in advance,
Martin

--
Martin Eyles
ma**********@NOSPAM.bytronic.com

Nov 20 '05 #2
"Sreejith Ram" <Sr*********@discussions.microsoft.com> wrote in message
news:72**********************************@microsof t.com...
Have you tried running command aspregiis ?

Start -> Run - > aspregiis.exe -i


I have just tried it, and get the response that aspregiis.exe does not
exist. Have tried searching for the file, and cannot find it.

--
Martin Eyles
ma**********@NOSPAM.bytronic.com
Nov 20 '05 #3
Try :

aspnet_regiis -i

If that, still, returns a file not found message, open a command window at
drive:\WINDOWSdirectory\Microsoft.NET\Framework\vx .x.xxxxx
where x.x.xxxxx stands for the version of the .Net Framework you're running.

Then, run aspnet_regiis -i from that directory.
Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
ASPNETFAQ.COM : http://www.aspnetfaq.com/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
"Martin Eyles" <ma**********@NOSPAM.bytronic.com> wrote in message
news:11*************@corp.supernews.com...
"Sreejith Ram" <Sr*********@discussions.microsoft.com> wrote in message
news:72**********************************@microsof t.com...
Have you tried running command aspregiis ?

Start -> Run - > aspregiis.exe -i


I have just tried it, and get the response that aspregiis.exe does not
exist. Have tried searching for the file, and cannot find it.

--
Martin Eyles

Nov 20 '05 #4
"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:u8**************@TK2MSFTNGP15.phx.gbl...
Try :

aspnet_regiis -i
Still file not found
If that, still, returns a file not found message, open a command window at
drive:\WINDOWSdirectory\Microsoft.NET\Framework\vx .x.xxxxx
where x.x.xxxxx stands for the version of the .Net Framework you're running.
Then, run aspnet_regiis -i from that directory.


Yes, that does run (I chose 1.1, as my website was developed in that).
However, it doesn't make the .aspx pages work! I tried rebooting after
running this, and it still doesn't work.

Martin

--
Martin Eyles
ma**********@NOSPAM.bytronic.com
Nov 20 '05 #5
re:
it doesn't make the .aspx pages work!
What is the error returned ?

Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
ASPNETFAQ.COM : http://www.aspnetfaq.com/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
"Martin Eyles" <ma**********@NOSPAM.bytronic.com> wrote in message
news:11*************@corp.supernews.com... "Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:u8**************@TK2MSFTNGP15.phx.gbl...
If that, still, returns a file not found message, open a command window at
drive:\WINDOWSdirectory\Microsoft.NET\Framework\vx .x.xxxxx
where x.x.xxxxx stands for the version of the .Net Framework you're

running.

Then, run aspnet_regiis -i from that directory.


Yes, that does run (I chose 1.1, as my website was developed in that).
However, it doesn't make the .aspx pages work! I tried rebooting after
running this, and it still doesn't work.

Nov 20 '05 #6
"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:et****************@TK2MSFTNGP09.phx.gbl...
"Martin Eyles" <ma**********@NOSPAM.bytronic.com> wrote in message
news:11*************@corp.supernews.com...
"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:u8**************@TK2MSFTNGP15.phx.gbl...

If that, still, returns a file not found message, open a command window at drive:\WINDOWSdirectory\Microsoft.NET\Framework\vx .x.xxxxx
where x.x.xxxxx stands for the version of the .Net Framework you're

running.

Then, run aspnet_regiis -i from that directory.


Yes, that does run (I chose 1.1, as my website was developed in that).
However, it doesn't make the .aspx pages work! I tried rebooting after
running this, and it still doesn't work.


re:
it doesn't make the .aspx pages work!


What is the error returned ?


The same as always "The Page Cannot Be Found". (HTTP Error 404 - File or
directory no found.)

I get this error for all .aspx pages, but not for.asp pages.

--
Martin Eyles
ma**********@NOSPAM.bytronic.com
Nov 20 '05 #7
I had not noticed this before:
the new PC I am testing on is running Windows Server 2003
Have you enabled aspx pages on your Windows Server 2003 ?
They come disabled by default.

Open the IIS Manager, scroll down on the left to "Web Service Extensions",
go to the right pane, select the version of ASP.NET you want to allow,
and click the "Allow" button.

You can allow more than one version if you're going to use them.

Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
ASPNETFAQ.COM : http://www.aspnetfaq.com/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
"Martin Eyles" <ma**********@NOSPAM.bytronic.com> wrote in message
news:11*************@corp.supernews.com... "Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:et****************@TK2MSFTNGP09.phx.gbl...
"Martin Eyles" <ma**********@NOSPAM.bytronic.com> wrote in message
news:11*************@corp.supernews.com...
> "Juan T. Llibre" <no***********@nowhere.com> wrote in message
> news:u8**************@TK2MSFTNGP15.phx.gbl...

>> If that, still, returns a file not found message, open a command window at >> drive:\WINDOWSdirectory\Microsoft.NET\Framework\vx .x.xxxxx
>> where x.x.xxxxx stands for the version of the .Net Framework you're
> running.
>>
>> Then, run aspnet_regiis -i from that directory.


> Yes, that does run (I chose 1.1, as my website was developed in that).
> However, it doesn't make the .aspx pages work! I tried rebooting after
> running this, and it still doesn't work.


re:
> it doesn't make the .aspx pages work!


What is the error returned ?


The same as always "The Page Cannot Be Found". (HTTP Error 404 - File or
directory no found.)

I get this error for all .aspx pages, but not for.asp pages.

--
Martin Eyles
ma**********@NOSPAM.bytronic.com

Nov 20 '05 #8
"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:ef**************@tk2msftngp13.phx.gbl...
I had not noticed this before:
the new PC I am testing on is running Windows Server 2003


Have you enabled aspx pages on your Windows Server 2003 ?
They come disabled by default.

Open the IIS Manager, scroll down on the left to "Web Service Extensions",
go to the right pane, select the version of ASP.NET you want to allow,
and click the "Allow" button.

You can allow more than one version if you're going to use them.


Thank you very much! It works! Why did it just work in win2k server (my
development machine) - is it something that the visual studio installer
changes?

Thanks Again,
Martin

--
Martin Eyles
ma**********@NOSPAM.bytronic.com
Nov 20 '05 #9
re:
Thank you very much! It works!
You're very much welcome!
I wish I had noticed that you are using W2K3 earlier.

;-)

re: Why did it just work in win2k server (my development machine)
- is it something that the visual studio installer changes?
No. Having to enable ASP.NET ( and other http services,
like CGI, SSI, etc. ) is something IIS 6.0 defaults to.

There was a lot of criticism of Microsoft for letting its web server ( IIS )
be wide open to attacks out of the box when inexperienced hands were using it.

The less http services are running, the less surface is exposed to potential attackers.
Once people know what they're doing, they can turn on whatever services they want.


Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
ASPNETFAQ.COM : http://www.aspnetfaq.com/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
"Martin Eyles" <ma**********@NOSPAM.bytronic.com> wrote in message
news:11*************@corp.supernews.com... "Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:ef**************@tk2msftngp13.phx.gbl...
I had not noticed this before:
>the new PC I am testing on is running Windows Server 2003


Have you enabled aspx pages on your Windows Server 2003 ?
They come disabled by default.

Open the IIS Manager, scroll down on the left to "Web Service Extensions",
go to the right pane, select the version of ASP.NET you want to allow,
and click the "Allow" button.

You can allow more than one version if you're going to use them.


Thank you very much! It works! Why did it just work in win2k server (my
development machine) - is it something that the visual studio installer
changes?

Thanks Again,
Martin

--
Martin Eyles
ma**********@NOSPAM.bytronic.com

Nov 20 '05 #10

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

Similar topics

2
by: Andreas Poller | last post by:
Hello, I have the following problem: I have a class deriving from ICustomTypeDescriptor: public __gc class TPropertyBag : public ICustomTypeDescriptor { private: ...
1
by: Elie | last post by:
Hello I get this error when the code runs from the server as an .asp page or from a compiled dll. But When I log onto the server and run a vb program that executes the same code, it works...
3
by: ADavidson | last post by:
I'm getting a {"Parser Error: The Runat attribute must have the value Server." } error when I try to get the Server.GetlastError() in the Global.asax codebehind. Why am I getting this? I...
1
by: BillAtWork | last post by:
Hi, I'm trying to validate an XML document against an XSD schema and I receive the following error: ---------- MyCode.CreateValidRequest : System.Web.Services.Protocols.SoapException :...
0
by: davidr | last post by:
Hi, I have a panel that I load user Control in no problem. The problem arrises when I do a post back on one of these user controls. I have button it does a click event. In this click event I...
1
by: slrj | last post by:
Can I use a local struct to store data in the "set" conatiner? If so, what is the correct method to do so? Compiler: Sun Studio 10 on Unix (Sun Solaris) #include<iostream> #include<set> ...
0
by: Curious | last post by:
Hi, I'm not sure if this is the right place to post such command issues. If you know a better forum where people respond to messages fairly often, please let me know! Anyway, would appreciate...
1
by: LiveCycle | last post by:
Hi, I've got a longstanding project that's been working fine for about a year. I was working on one of the pages, a simple download page. After making a little tweak on the page, I tried to...
2
by: jhaxo | last post by:
I have a web page that I installed to IIS 6.0 from a web deployment project successfully. I am trying to deploy the same application to laptops that are running IIS 5.0. I am getting an error...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.