Configuring ASP.Net 3.5 applications for IIS 7 on Vista

Ok, it is complicated... There are some issues. So I am logging everything that I can as I do it.

1st Error: "configuration section cannot be used at this path. This happens when the section is locked at a parent level. Locking is either by default (overrideModeDefault="Deny"), or set explicitly by a location tag with overrideMode="Deny" or the legacy allowOverride="false". "

This issue can be resolved only if you have Administrative Access on your machine. Go to %windir%\system32\inetsrv\config\applicationHost.config Edit. if it says you do not have have permissions to open it, click start -> Inetmgr -> go to the directory in which you want to give permissions. Right Click -> Edit Permissions -> Security Tab -> Advanced Edit Users(<your userid>\Users) and give full access. I don't quite know how this works, but it did work for me. after that, Edit the applicationhost.config search for <section name="handlers" overrideModeDefault="Deny" /> and update it to <section name="handlers" overrideModeDefault="Allow" />

Save the document and that error will go away. The next error that I encountered is:

2nd Error: "The page you are requesting cannot be served because of the Multipurpose Internet Mail Extensions (MIME) map policy that is configured on the Web server. The page you requested has a file name extension that is not recognized, and is not allowed."

Now I am wondering, if IIS doesn't understand .aspx, there is something majorly wrong. First thing I do is go to control panel -> Uninstall a program -> Turn Windows Features on and off. I open the Internet Information Server branch -> World Wide Web Service Branch -> Application Development Features, this is what I see...

image

I change it into this:

image

That should take care of the handlers issue... now let's move on...

3rd Error: Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level.  This error can be caused by a virtual directory not being configured as an application in IIS.

Source Error:

Line 45:             ASP.NET to identify an incoming user. 
Line 46:         -->
Line 47: 		<authentication mode="Windows"/>
Line 48: 		<!--
Line 49:             The <customErrors> section enables configuration 

Source File: D:\Projects\POC\MAD\web.config    Line: 47

So I go to to IIS Manager, right click on the application and convert to application. Do a quick F5 on my browser... and voila...!!! It works...!!!

image

Published Thursday, January 10, 2008 5:29 PM by Nilotpal Das

Comments

Monday, January 14, 2008 11:22 PM by HipPO Thailand

# re: Configuring ASP.Net 3.5 applications for IIS 7 on Vista

Thank !!

Monday, January 05, 2009 4:16 PM by Nalin Jayasuriya

# re: Configuring ASP.Net 3.5 applications for IIS 7 on Vista

Thanks, exactly the correct solution!

Tuesday, March 17, 2009 5:15 AM by John

# re: Configuring ASP.Net 3.5 applications for IIS 7 on Vista

Mate...this blog has been such a life saver! Thanks!

Friday, March 20, 2009 11:48 AM by Charlie

# re: Configuring ASP.Net 3.5 applications for IIS 7 on Vista

I want to repeat the previous posters comments - Mate...this blog has been such a life saver!

I have been googling for weeks to try and find a solution to view .aspx pages in localhost on windows vista.

Why does microsoft make this so difficult?

Thanks!

Charlie Liebenberg

Friday, March 20, 2009 12:20 PM by Nilotpal Das

# re: Configuring ASP.Net 3.5 applications for IIS 7 on Vista

Mate... Thanks for the lovely comment... The intent of this blog was to provide some form of Documentation which is not so easily available on the Net.

Microsoft doesn't make it so difficult. In fact Microsoft has been known for its amazing usability in its applications. Microsoft responds to the demands from the developer community... Perhaps this change was asked for by the developer community worldwide... Microsoft has people who are listening... intently...

Yes... I agree sometimes proper documentation is a little difficult to find... But we are going through this change and there is always a little learning curve... when things go out of the comfort zone... for the developer community and for Microsoft...

Happy to help... :)

Friday, April 03, 2009 2:02 AM by Ry

# re: Configuring ASP.Net 3.5 applications for IIS 7 on Vista

you made my day! brain was about to explode

Thursday, August 20, 2009 11:35 AM by Jake

# re: Configuring ASP.Net 3.5 applications for IIS 7 on Vista

Thanks so much for taking the time to post this information.

Friday, August 21, 2009 2:49 AM by Nidarshana

# re: Configuring ASP.Net 3.5 applications for IIS 7 on Vista

Dang! I do not understand a thing except for the comments and I see you're doing some really good work here by sharing your pain points and also suggesting solutions [that is what it is right?].

Keep such informative blogs flowing boy! I also wrote a techie post some time back ---- not a single comment! Distrust in the otherwise technologically challenged writers' tryst with codes! :(  

Thursday, August 27, 2009 9:09 PM by Jibran Khan

# re: Configuring ASP.Net 3.5 applications for IIS 7 on Vista

Thanks mate, just did what you wrote and it worked smoothly.

Monday, December 14, 2009 3:23 PM by Ahmed

# re: Configuring ASP.Net 3.5 applications for IIS 7 on Vista

Thanks a lot. the steps worked perfectly

Monday, December 21, 2009 3:14 PM by Laurie Cote

# re: Configuring ASP.Net 3.5 applications for IIS 7 on Vista

You solved 99 % of my problem.  Thanks for making it easy.

Saturday, January 09, 2010 12:41 AM by Me

# re: Configuring ASP.Net 3.5 applications for IIS 7 on Vista

Thanx... u r great!!!!!!

Wednesday, January 27, 2010 11:44 PM by Amrit Pal Singh

# re: Configuring ASP.Net 3.5 applications for IIS 7 on Vista

Thanks!

and great work

it worked for me also

next thing I am looking is

javascript error "Sys" is undefind when try to run asp.net 3.5 application (vs2008 in vista)

Tuesday, March 09, 2010 10:11 AM by Guru

# re: Configuring ASP.Net 3.5 applications for IIS 7 on Vista

It did not work for me

i set the permission accordingly but still getting this Error

can any one   let meknow//////

HTTP Error 500.19 - Internal Server Error

The requested page cannot be accessed because the related configuration data for the page is invalid. Detailed Error Information

Module IIS Web Core

Notification BeginRequest

Handler Not yet determined

Error Code 0x80070021

Config Error This configuration section cannot be used at this path. This happens when the section is locked at a parent level. Locking is either by default (overrideModeDefault="Deny"), or set explicitly by a location tag with overrideMode="Deny" or the legacy allowOverride="false".  

Config File \\?\C:\Domains\balajipropertybroker.com\wwwroot\web.config

Requested URL www.balajipropertybroker.com

Physical Path C:\Domains\balajipropertybroker.com\wwwroot

Logon Method Not yet determined

Logon User Not yet determined

Config Source

  69: </modules>

  70: <handlers>

  71: <remove name="ScriptHandlerFactory"/>

Friday, August 20, 2010 9:15 AM by Ty

# re: Configuring ASP.Net 3.5 applications for IIS 7 on Vista

Thanks bro.  This totally worked...  

Friday, October 15, 2010 9:43 PM by Jahir Nava

# re: Configuring ASP.Net 3.5 applications for IIS 7 on Vista

Thanks man!!!, this is very helpful.....

Saturday, November 13, 2010 5:13 AM by Dirk

# re: Configuring ASP.Net 3.5 applications for IIS 7 on Vista

Thanx, you are GREAT!

Wednesday, November 17, 2010 9:17 PM by Jon

# re: Configuring ASP.Net 3.5 applications for IIS 7 on Vista

This was very helpful. This is THE SOLUTION for the ERROR 500.19. AWESOME!

Monday, December 06, 2010 3:55 AM by Younes

# re: Configuring ASP.Net 3.5 applications for IIS 7 on Vista

Nice walkthrough, used this to get my IIS 7.0 run Sitecore Websites that I need to develop locally @ home aswell. Good effort!

Tuesday, February 01, 2011 6:09 AM by Mathew Philip

# re: Configuring ASP.Net 3.5 applications for IIS 7 on Vista

Fantastic !,Your blog was very helpful to us

Wednesday, February 02, 2011 10:35 PM by sridhar

# re: Configuring ASP.Net 3.5 applications for IIS 7 on Vista

Thanks, Really cool and helpful

Tuesday, May 03, 2011 12:10 PM by srinivasan.S

# re: Configuring ASP.Net 3.5 applications for IIS 7 on Vista

thnx a lot . its working fine.

Tuesday, June 14, 2011 7:47 PM by Michael

# re: Configuring ASP.Net 3.5 applications for IIS 7 on Vista

The first two of three fixes were necessary for me and I did not confront the third one (yet).

Thanks so much, you certainly saved me hours of banging my head on the keyboard (I find that works sometimes)

Friday, June 24, 2011 3:49 AM by Rinto Anto

# re: Configuring ASP.Net 3.5 applications for IIS 7 on Vista

Thanks Buddy! Happy to see that it is working for me in Win 7 also... :)

Thursday, July 07, 2011 3:00 AM by Farooq Ahmed Qureshi

# re: Configuring ASP.Net 3.5 applications for IIS 7 on Vista

Dear Blogger,

Thanks very much, this proved to be really helpful..... Great!

Tuesday, July 12, 2011 6:36 AM by Akshay Ghatol

# re: Configuring ASP.Net 3.5 applications for IIS 7 on Vista

Thanks buddy!  Its really helpfull, saved my time. Simply great.!

Sunday, August 14, 2011 12:54 PM by @RIN

# re: Configuring ASP.Net 3.5 applications for IIS 7 on Vista

THANKS ... I WENT THROUGH SO MANY LINKS AND ATTEMPTED CHANGES IN WEB.CONFIG AND  ALSO IN ADMINISTRATION.CONFIG DOESN'T HELP,but this relay  great simply solved the issue...

Wednesday, September 21, 2011 4:16 AM by Praveen

# re: Configuring ASP.Net 3.5 applications for IIS 7 on Vista

It really works for me.

Wednesday, October 19, 2011 2:27 AM by Shivanand

# re: Configuring ASP.Net 3.5 applications for IIS 7 on Vista

Thanks a lot man great it really works

Wednesday, May 16, 2012 11:48 PM by Web developer

# re: Configuring ASP.Net 3.5 applications for IIS 7 on Vista

It worked very smoothly for me.

Thanks a lot.

Wednesday, May 23, 2012 1:16 AM by Rehan

# re: Configuring ASP.Net 3.5 applications for IIS 7 on Vista

It works for me.

Thanks

Leave a Comment

(required) 
(required) 
(optional)
(required)