c# - The Web Application Project [...] is configured to use IIS. The Web server [...] could not be found. -


i have web project in solution file "unavailable" when open solution. when right-click on web project , reload project, following error:

web application project mycompany.myapp.mywebproject configured use iis. web server 'http://localhost/mywebapp not found.

i have not manually set virtual directories web application.

per colleagues, visual studio should prompt me create virtual directories not getting prompted.

i installed vs2010 before installing iis on dev machine.

here development machine setup:

  • windows 7 enterprise
  • service pack 1
  • 64 bit os
  • visual studio 2010 enterprise service pack 1
  • iis version 7.5

when happens easiest solution make virtual directory manually.

first of all, need make sure have right version of asp.net installed , have installed iis extensions.

to this, go relevant .net version's folder in c:\(windows)\microsoft.net\(dotnetver)\ (substituting bracketed folders right folders on pc) , run command

aspnet_regiis.exe -i 

next once that's run , finished, running

iisreset 

from command line helps, don't need to.

next, go iis manager , find localhost website , choose add folder. browse folder in project contains actual asp.net project , add that.

finally, right click on folder added , should have option says 'convert application' or 'create virtual directory' or similar.

!!make sure virtual directory has name 'mywebapp'!!

reload solution , should work.

please wary; isn't programming question (and shouldn't posted here) i've posted guidance it's common problem, advice i've posted generic; commands i've listed correct steps need in iis may vary, depends on version , account privileges.

good luck!


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -