473,583 Members | 3,010 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 9624
Simply register asp.net with IIS.

Go to the VS command prompt and run this:

aspnet_regiis.e xe -i

--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"ma" <ma@nowhere.com wrote in message
news:u7******** ******@TK2MSFTN GP02.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.e xe -i

but I am getting the error that aspnet_regiss.e xe 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.orgwro te in
message news:%2******** *******@TK2MSFT NGP03.phx.gbl.. .
Simply register asp.net with IIS.

Go to the VS command prompt and run this:

aspnet_regiis.e xe -i

--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"ma" <ma@nowhere.com wrote in message
news:u7******** ******@TK2MSFTN GP02.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.com wrote in message
news:%2******** ********@TK2MSF TNGP05.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.e xe -i

but I am getting the error that aspnet_regiss.e xe 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.orgwro te in
message news:%2******** *******@TK2MSFT NGP03.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.com wrote in message
news:u7******* *******@TK2MSFT NGP02.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.asp x 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.orgwro te in
message news:O2******** ******@TK2MSFTN GP03.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.com wrote in message
news:%2******** ********@TK2MSF TNGP05.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.e xe 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.orgwro te in
message news:%2******** *******@TK2MSFT NGP03.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.com wrote in message
news:u7****** ********@TK2MSF TNGP02.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.as px 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
applicatio n. 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\Micr osoft.NET\Frame work\v2.0.50727

--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"ma" <ma@nowhere.com wrote in message
news:up******** ********@TK2MSF TNGP02.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.orgwro te in
message news:O2******** ******@TK2MSFTN GP03.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.com wrote in message
news:%2******* *********@TK2MS FTNGP05.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.e xe 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.orgwro te in
message news:%2******** *******@TK2MSFT NGP03.phx.gbl.. .
Simply register asp.net with IIS.

Go to the VS command prompt and run this:

aspnet_regii s.exe -i

--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"ma" <ma@nowhere.com wrote in message
news:u7***** *********@TK2MS FTNGP02.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.asp x 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
descripti on 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.e xe.

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.e xe
to generate the handler configuration, you *still* need to install the
actual binaries implementing ASP.Net as Windows Features, and
aspnet_regiis.e xe 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.e xe.

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"
<REMOVEALLCAPIT ALSeEgGoldD...@ mMvVpPsS.orgwro te:
No, you don't need VS. Just go to your framework directory. like

C:\WINDOWS\Micr osoft.NET\Frame work\v2.0.50727

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

"ma" <m...@nowhere.c omwrote in message

news:up******** ********@TK2MSF TNGP02.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" <REMOVEALLCAPIT ALSeEgGoldD...@ mMvVpPsS.orgwro te in
messagenews:O2* *************@T K2MSFTNGP03.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.c omwrote in message
news:%2******* *********@TK2MS FTNGP05.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.e xe is not a command.
Apparently it is not known by vista and it is not in its path.
>any suggestion?
>Regards
>"Eliyahu Goldin" <REMOVEALLCAPIT ALSeEgGoldD...@ mMvVpPsS.orgwro te in
messagenews:%2 *************** @TK2MSFTNGP03.p hx.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" <m...@nowhere.c omwrote in message
news:u7***** *********@TK2MS FTNGP02.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.as px 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
applicatio n. When I open an IE and point it to
localhost/myapplication, it gives me an error 404.3 and the
descriptio n 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
7526
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 trying to work with Visual Studio .NET 2003 on ASP.NET 1.1 app. The problem is that I can’t create an application pool in IIS7 that would run...
3
5144
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 reports web viewer, view the report and then export from the viewer it also works fine (IIS7 and cassini). And I should note this all works fine in IIS6...
8
7476
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 any SESSION error message. PHP had so much bugs on windows vista. I using php-5.2.1-Win32
14
9467
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 The web app works great on win2003 and xp and the end result is a pdf file is displayed in the browser. When I run the same code on Vista, the...
9
7935
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 is a bit of a gotcha with Request.UserHostAddress... Under IIS6 and earlier, that would return a standard xxx.xxx.xxx.xxx IP address. However,...
5
2664
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 across the network, so i've installed IIS7 on my Vista machine and created a new website, point at the website's directory. After I switched to the...
0
5971
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 on an old project that happens to run on IIS6/W2000/MSSQL7, but my W2000 machine couldn't handle the size of the database in question anymore. :-(...
5
12563
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 existing app.pool gives same results). This webapplication tries to write to a log file. Used Process Monitor (from Sysinternals) for monitoring...
11
2707
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 local URL that VS.NET 2008 generates is http://localhost:49705/aaa/Default.aspx. In IIS7 Manager, ASP.NET V2.0… is "Allowed" in the ISAPI and CGI...
0
7895
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7826
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8182
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7935
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
1
5701
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5374
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3818
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1433
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1157
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.