Install iis 7 on your vista os.Open up the iis manager from administrative tools. Right click default web site and choose add new application. Give your application(your site) a name(alias) and point to your physical application folder. open up your web project in visual studio. Right click the web project and choose property pages. click to start options and choose the "start url" of the radio buttons in the start action section and type http://localhost/yourAlias/yourHomePage.aspx.
Then in the server section below, choose use custom server and type http://localhost/yourAlias as the base url. To enable debugging with visual studio, open up the iis again and right click to your web application, select Advanced Settings. In the behaviour section there is Application Pool property choose the "Classic .Net AppPool" from the options. You are done! You can now use the real webserver instead of the virtual one. Firefox runs incredibly fast when iis 7 is used, whereas it sucks in terms of speed when web developer server is used.

Dani AI

Generated

A few practical clarifications and fixes that tie together , and posts.

IIS serves whatever physical folder you point it at; it does not automatically copy your Visual Studio Web Site into inetpub unless you publish or copy it there. The HTTP 500.19 / 0x80070005 error that saw is almost always an NTFS permission problem: the IIS worker identity cannot read the web.config (or the folder). Confirm which account the site is running as (IIS Manager -> Application Pools -> select the pool -> Advanced Settings -> Identity) and give that account read access to the project folder and web.config. On newer IIS versions the identity shows as IIS APPPOOL\<PoolName>; on older installs it may be NETWORK SERVICE or ASPNET.

Quick, safe fixes:

  • Use the folder Properties -> Security to add and grant Read & Execute, List folder, Read to either IIS_IUSRS or the specific application-pool account.
  • From the command line (where supported) you can grant read recursively, for example:
icacls "C:\path\to\site" /grant "IIS APPPOOL\YourPoolName":(RX) /T

If you need a Classic pipeline pool (as discussed by and ), create a new Application Pool, set Managed Pipeline Mode to Classic and the correct .NET CLR version, then assign the site to it. To debug under IIS, run Visual Studio elevated and attach to the w3wp.exe process (or configure the project to use Local IIS); also ensure compilation debug is enabled in web.config. Check Event Viewer and IIS logs/Failed Request Tracing for more detail if problems persist.

Thanks a lot Serkan Şendur, I understand everything you explained. But you have told about installing iis 7 in Vista, but I use Windows XP Service Pack 2 & the IIS ver. 5.1. Is it all the same in WinXP SP2 and IIS ver.5.1 ?

Thanks...
Abhijit

yes it is pretty much the same path you need follow to achieve that in iis 5.1

Hi
You wrote .."To enable debugging with visual studio, open up the iis again and right click to your web application, select Advanced Settings. In the behaviour section there is Application Pool property choose the "Classic .Net AppPool" from the options. "
But..in my option window/Application Pool property there is only "DefaultAppPool" to choose.
Why?
Could you answer, its quite urgent and havent got a clou about vista and iis7 :P
thx

are you sure you have iis 7 installed?

Hi
Yes ive got IIS 7 installed
My solution of the problem was that ive added "Classic .Net AppPool" manualy to the AppPools
Thx for your reply

serkansendur I have developed an asp.net 2.0 application running in the local file system and I tried to do what you wrote to your first post.
Now I am getting an error :

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 0x80070005
Config Error Cannot read configuration file due to insufficient permissions
Config File \\?\C:\Users\Admin\Documents\Visual Studio 2008\WebSites\Aspis2\web.config
Requested URL http://localhost:80/Aspis/AjaxDefault.aspx
Physical Path C:\Users\Admin\Documents\Visual Studio 2008\WebSites\Aspis2\AjaxDefault.aspx
Logon Method Not yet determined
Logon User Not yet determined

Any idea how to fix that?
Thank you!

I also can't see my application in inetpub directory.
Shouldn't it be copied there?
Thanks again.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.