Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

So... I've built my web application (asp.net mvc)

So far I have used the dev server. Works lovely.

Now I want to test performance running on iis 7.0

For the life of me I cant work out how to get the web app running.

At the moment, Visual Studio wont set up the virtual directory - stating that I need to install a bunch of components - asp.net, IIS 6.0 configuration compatability/meta base and windows authentication.

How do I do this? Any help will be appreciated!

Can anybody recommend a walkthrough for an iis 7.0 newbie?

share|improve this question
add comment

2 Answers 2

This is what I did to configure my ASP.net MVC application on IIS 7.0:

I created a directory for my website (e.g. C:\mytestwebsite)

I copied all the files for my website into this directory.

Then I opened up IIS 7.0 Manager and added a new application by expanding sites on the left, right clicking on my site (Default Web Site) and clicking Add Application. Type in an alias for your application (e.g. mysite) this will be how you access your mvc application (e.g. http://localhost/mysite). Then click the elipsis (...) next to Physical Path and choose the folder you copied your files to. Click OK. Click OK.

You should now be able to browse to http://localhost/<alias>

share|improve this answer
add comment

Looks like your IIS 7 install is missing a bunch of features, specifically the ones that enable IIS 6 automation against IIS 7.

You can run OptionalFeatures.EXE

alt text

to check what's installed and install those that are required.

You can also run the following:

START /W ocsetup Web-Windows-Auth
START /W ocsetup IIS-ASPNET
START /W ocsetup IIS-ASPNET
START /W ocsetup IIS-Metabase

The OCSetup names are from Windows Vista Packages, add any that I've missed based off your error message.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.