473,396 Members | 1,966 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,396 software developers and data experts.

ASP.NET and IIS7 on vista business

ma
Hello,

I am new to IIS and ASP.NET. I wrote my first ASP.NET and I want to deploy
in to a system which has Vista Business and IIS7. I copied my files to the
target computer and created a virtual directory. I add default.aspx to the
list of default pages for the virtual directory. My problems are:

1- On vista computer I am trying to see the output of my ASP.NET
application. When I open an IE and point it to localhost/myapplication, it
gives me an error 404.3 and the description for the error is: the mime type
for the page is not known (it could not detect how to process aspx files).
How can I solve this problem?

2- When I am trying to connect to IIS server from other computer in the
network, I am getting http 404 error (file or directory not found). It even
can not find the vdir that I created.

Any help or any point to tutorial is very appreciated.

Regards


Jan 7 '08 #1
6 9603
Simply register asp.net with IIS.

Go to the VS command prompt and run this:

aspnet_regiis.exe -i

--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"ma" <ma@nowhere.comwrote in message
news:u7**************@TK2MSFTNGP02.phx.gbl...
Hello,

I am new to IIS and ASP.NET. I wrote my first ASP.NET and I want to deploy
in to a system which has Vista Business and IIS7. I copied my files to the
target computer and created a virtual directory. I add default.aspx to the
list of default pages for the virtual directory. My problems are:

1- On vista computer I am trying to see the output of my ASP.NET
application. When I open an IE and point it to localhost/myapplication, it
gives me an error 404.3 and the description for the error is: the mime
type for the page is not known (it could not detect how to process aspx
files). How can I solve this problem?

2- When I am trying to connect to IIS server from other computer in the
network, I am getting http 404 error (file or directory not found). It
even can not find the vdir that I created.

Any help or any point to tutorial is very appreciated.

Regards


Jan 7 '08 #2
ma
Thanks for your information but I have problem running this command:

I open a command window in Vista and run the following command:

aspnet.regiis.exe -i

but I am getting the error that aspnet_regiss.exe is not a command.
Apparently it is not known by vista and it is not in its path.

any suggestion?

Regards
"Eliyahu Goldin" <RE**************************@mMvVpPsS.orgwrote in
message news:%2***************@TK2MSFTNGP03.phx.gbl...
Simply register asp.net with IIS.

Go to the VS command prompt and run this:

aspnet_regiis.exe -i

--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"ma" <ma@nowhere.comwrote in message
news:u7**************@TK2MSFTNGP02.phx.gbl...
>Hello,

I am new to IIS and ASP.NET. I wrote my first ASP.NET and I want to
deploy in to a system which has Vista Business and IIS7. I copied my
files to the target computer and created a virtual directory. I add
default.aspx to the list of default pages for the virtual directory. My
problems are:

1- On vista computer I am trying to see the output of my ASP.NET
application. When I open an IE and point it to localhost/myapplication,
it gives me an error 404.3 and the description for the error is: the mime
type for the page is not known (it could not detect how to process aspx
files). How can I solve this problem?

2- When I am trying to connect to IIS server from other computer in the
network, I am getting http 404 error (file or directory not found). It
even can not find the vdir that I created.

Any help or any point to tutorial is very appreciated.

Regards



Jan 7 '08 #3
You need to go to the Visual Studio command prompt. Find it in

Start Programs >Microsoft Visual Studio 200x Visual Studio Tools

--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"ma" <ma@nowhere.comwrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
Thanks for your information but I have problem running this command:

I open a command window in Vista and run the following command:

aspnet.regiis.exe -i

but I am getting the error that aspnet_regiss.exe is not a command.
Apparently it is not known by vista and it is not in its path.

any suggestion?

Regards
"Eliyahu Goldin" <RE**************************@mMvVpPsS.orgwrote in
message news:%2***************@TK2MSFTNGP03.phx.gbl...
>Simply register asp.net with IIS.

Go to the VS command prompt and run this:

aspnet_regiis.exe -i

--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"ma" <ma@nowhere.comwrote in message
news:u7**************@TK2MSFTNGP02.phx.gbl...
>>Hello,

I am new to IIS and ASP.NET. I wrote my first ASP.NET and I want to
deploy in to a system which has Vista Business and IIS7. I copied my
files to the target computer and created a virtual directory. I add
default.aspx to the list of default pages for the virtual directory. My
problems are:

1- On vista computer I am trying to see the output of my ASP.NET
application. When I open an IE and point it to localhost/myapplication,
it gives me an error 404.3 and the description for the error is: the
mime type for the page is not known (it could not detect how to process
aspx files). How can I solve this problem?

2- When I am trying to connect to IIS server from other computer in the
network, I am getting http 404 error (file or directory not found). It
even can not find the vdir that I created.

Any help or any point to tutorial is very appreciated.

Regards




Jan 7 '08 #4
ma
Hello,
I don't have VS on that computer. Do I need a VS which is supposed to
work as a server?

Regards
"Eliyahu Goldin" <RE**************************@mMvVpPsS.orgwrote in
message news:O2**************@TK2MSFTNGP03.phx.gbl...
You need to go to the Visual Studio command prompt. Find it in

Start Programs >Microsoft Visual Studio 200x Visual Studio Tools

--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"ma" <ma@nowhere.comwrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
>Thanks for your information but I have problem running this command:

I open a command window in Vista and run the following command:

aspnet.regiis.exe -i

but I am getting the error that aspnet_regiss.exe is not a command.
Apparently it is not known by vista and it is not in its path.

any suggestion?

Regards
"Eliyahu Goldin" <RE**************************@mMvVpPsS.orgwrote in
message news:%2***************@TK2MSFTNGP03.phx.gbl...
>>Simply register asp.net with IIS.

Go to the VS command prompt and run this:

aspnet_regiis.exe -i

--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"ma" <ma@nowhere.comwrote in message
news:u7**************@TK2MSFTNGP02.phx.gbl...
Hello,

I am new to IIS and ASP.NET. I wrote my first ASP.NET and I want to
deploy in to a system which has Vista Business and IIS7. I copied my
files to the target computer and created a virtual directory. I add
default.aspx to the list of default pages for the virtual directory. My
problems are:

1- On vista computer I am trying to see the output of my ASP.NET
application. When I open an IE and point it to localhost/myapplication,
it gives me an error 404.3 and the description for the error is: the
mime type for the page is not known (it could not detect how to process
aspx files). How can I solve this problem?

2- When I am trying to connect to IIS server from other computer in the
network, I am getting http 404 error (file or directory not found). It
even can not find the vdir that I created.

Any help or any point to tutorial is very appreciated.

Regards




Jan 7 '08 #5
No, you don't need VS. Just go to your framework directory. like

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727

--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"ma" <ma@nowhere.comwrote in message
news:up****************@TK2MSFTNGP02.phx.gbl...
Hello,
I don't have VS on that computer. Do I need a VS which is supposed to
work as a server?

Regards
"Eliyahu Goldin" <RE**************************@mMvVpPsS.orgwrote in
message news:O2**************@TK2MSFTNGP03.phx.gbl...
>You need to go to the Visual Studio command prompt. Find it in

Start Programs >Microsoft Visual Studio 200x Visual Studio Tools

--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"ma" <ma@nowhere.comwrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
>>Thanks for your information but I have problem running this command:

I open a command window in Vista and run the following command:

aspnet.regiis.exe -i

but I am getting the error that aspnet_regiss.exe is not a command.
Apparently it is not known by vista and it is not in its path.

any suggestion?

Regards
"Eliyahu Goldin" <RE**************************@mMvVpPsS.orgwrote in
message news:%2***************@TK2MSFTNGP03.phx.gbl...
Simply register asp.net with IIS.

Go to the VS command prompt and run this:

aspnet_regiis.exe -i

--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"ma" <ma@nowhere.comwrote in message
news:u7**************@TK2MSFTNGP02.phx.gbl...
Hello,
>
I am new to IIS and ASP.NET. I wrote my first ASP.NET and I want to
deploy in to a system which has Vista Business and IIS7. I copied my
files to the target computer and created a virtual directory. I add
default.aspx to the list of default pages for the virtual directory.
My problems are:
>
>
>
1- On vista computer I am trying to see the output of my ASP.NET
application. When I open an IE and point it to
localhost/myapplication, it gives me an error 404.3 and the
description for the error is: the mime type for the page is not known
(it could not detect how to process aspx files). How can I solve this
problem?
>
>
>
2- When I am trying to connect to IIS server from other computer in
the network, I am getting http 404 error (file or directory not
found). It even can not find the vdir that I created.
>
>
>
Any help or any point to tutorial is very appreciated.
>
>
>
Regards
>
>
>
>




Jan 7 '08 #6
The resolution here is to install ASP.Net support into IIS7, not run
aspnet_regiis.exe.

You will need to enable the ASP.Net Feature in IIS7 to be able to run
your ASP.Net application on it, and this is how you do it:
Open Control Panel
Programs\Turn Windows Features on or off
Internet Information Services
World Wide Web Services
Application development Features
ASP.Net <-- check mark here

When you do that checkmark, several other dependency features will
auto select. That is ok.

For those interested in the details and rationales
This is an additional step not required of IIS6 since IIS6 installed
everything by default and gave you no such choice. IIS7 allows
ultimate customization and configuration of what is installed, but
that leaves open the possibility that you may try to run something for
which you have not installed proper support since default IIS7
installation is very spartan and secure.

If you get 404.3 from IIS7 running ASP.Net page is it most likely
because you did not install ASP.Net support in IIS7. Default IIS7
installation only serves static files, which means that when it tries
to serve .aspx as a static file it won't find a MIME Type defined
for .aspx (it shouldn't -- .aspx needs to be processed on the server,
not returned verbatim to the client), and thus return 404.3.

Getting a 404.3 for .aspx means that the handler definition for .aspx
is missing, so the request is incorrectly falling through to the
static file handler. And the .aspx handler is missing because ASP.Net
Feature is not installed to add it. Even if you use aspnet_regiis.exe
to generate the handler configuration, you *still* need to install the
actual binaries implementing ASP.Net as Windows Features, and
aspnet_regiis.exe cannot do that. ASP.Net functionality needs at least
the ISAPI Extension and ISAPI Filter Features for Classic Mode and Web
Engine for Integrated Mode, none of which are installed by default nor
installable by aspnet_regiis.exe.

Now, IIS7 is not installed by default, and the default IIS
configuration only serves static files with anonymous authentication.
It does not serve CGI, ISAPI, ASP, ASP.Net, PHP, Perl, etc -- nothing
other than static HTML. This is the secure "default" configuration.
//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//

On Jan 7, 8:23*am, "Eliyahu Goldin"
<REMOVEALLCAPITALSeEgGoldD...@mMvVpPsS.orgwrote:
No, you don't need VS. Just go to your framework directory. like

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727

--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]http://msmvps.com/blogs/egoldinhttp://usableasp.net

"ma" <m...@nowhere.comwrote in message

news:up****************@TK2MSFTNGP02.phx.gbl...
Hello,
* I don't have VS on that computer. Do I need a VS which is supposed to
work as a server?
Regards
"Eliyahu Goldin" <REMOVEALLCAPITALSeEgGoldD...@mMvVpPsS.orgwrote in
messagenews:O2**************@TK2MSFTNGP03.phx.gbl. ..
You need to go to the Visual Studio command prompt. Find it in
Start Programs >Microsoft Visual Studio 200x *Visual Studio Tools
--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"ma" <m...@nowhere.comwrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
Thanks for your information but I have problem running this command:
>I open a command window in Vista and run the following command:
>aspnet.regiis.exe -i
>but I am getting the error that aspnet_regiss.exe is not a command.
Apparently it is not known by vista and it is not in its path.
>any suggestion?
>Regards
>"Eliyahu Goldin" <REMOVEALLCAPITALSeEgGoldD...@mMvVpPsS.orgwrote in
messagenews:%2***************@TK2MSFTNGP03.phx.gb l...
Simply register asp.net with IIS.
>>Go to the VS command prompt and run this:
>>aspnet_regiis.exe -i
>>--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
>>"ma" <m...@nowhere.comwrote in message
news:u7**************@TK2MSFTNGP02.phx.gbl...
Hello,
>>>I am new to IIS and ASP.NET. I wrote my first ASP.NET and I want to
deploy in to a system which has Vista Business and IIS7. I copied my
files to the target computer and created a virtual directory. I add
default.aspx to the list of default pages for the virtual directory.
My problems are:
>>>1- On vista computer I am trying to see the output of my ASP.NET
application. When I open an IE and point it to
localhost/myapplication, it gives me an error 404.3 and the
description for the error is: the mime type for the page is not known
(it could not detect how to process aspx files). How can I solve this
problem?
>>>2- When I am trying to connect to IIS server from other computer in
the network, I am getting http 404 error (file or directory not
found). It even can not find the vdir that I created.
>>>Any help or any point to tutorial is very appreciated.
>>>Regards- Hide quoted text -

- Show quoted text -
Jan 10 '08 #7

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

Similar topics

3
by: Vlad Hrybok | last post by:
Hi all, I recently installed 64 bit version of Vista hoping to make it my primary development setup. I was able to do work with IIS7 and ASP.NET 2.0/Visua Studio 2005 combo, but hit a roadblock...
3
by: Brad | last post by:
In a Vista/IIS7 asp.net app, a coded crystal report export is crashing IIS7....but it works just fine in visual studio's cassini web server. And if I create a web form and use the crystal...
8
by: Darwiniv | last post by:
1. Does anyone run ASAPI and mysql succesfully on Vista /IIS7? 2. Does anyone run CGI and display all SESSION errors on Vista /IIS7? php ASAPI doesn't works with MYSQL. And CGI doesn't show...
14
by: Brad | last post by:
I have a .net 2.0 web application project that creates a pdf file, saves the pdf to disk (crystal reports does this part), and then my code reads the pdf file and writes it to the httpresponse ...
9
by: Mark Rae | last post by:
Hi, Now that the VS.NET 2005 SP1 update patch is with us, I'm in the process of moving my main development environment onto 64-bit Vista Business Edition - so far, so good... However, there...
5
by: =?Utf-8?B?bXVzb3NkZXY=?= | last post by:
Hi, I wonder if someone could shed some light on this one for me. I have developed a web app in VS2005 with the built in server. It uses an sql database, everytihng works. I need to test it...
0
by: Erwin Moller | last post by:
Hi, I am one of those questionable people that started with Vista (Home Premium). Not because I think it is a ready/steady OS, but partly out of curiousity, and partly because I needed to work...
5
by: DotNetDanny | last post by:
Hello Machine: Windows Vista Business, standalone machine (no domain). Installed an old classic ASP webapplication in IIS7, running under a new app.pool with 'NETWORK SERVICE' account (using...
11
by: =?Utf-8?B?QXNhZg==?= | last post by:
Hello, I have just installed VISTA Enterprise and VS.NET 2008. When pressing F5 to debug my test ASP.NET website, IE 7 display the message "Internet Explorer cannot display the webpage". The...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.