Viewing site through IIS in Vista with VS 08

  • Thread starter Thread starter Mark G.
  • Start date Start date
M

Mark G.

On my laptop with Vista 64, I have a site developed in VS 2008 Pro and when
I try to right-click on one of the .htm files and "view in browser", I am
not able to view the page for it is as if there is no connection (like if
you go to a website that is down or you lost your internet connection). It
is using the IIS and the address is something likk this:
http://localhost:5381/WebApplication1/default.htm. I am using IE 7 with all
applicable patches and whatnot. Anyhow, if I set Firefox to my default
browser and do the same, the page opens just fine. In fact, if I go direct
to the folder location of this file and double click and open, it displays
fine. It seems that it is just when I am previewing the page/site through VS
using IIS. I even took the site and opened it in VS 2008 Pro on my desktop
that runs XP Pro instead of Vista, and it opens fine. So I figure that maybe
the issue has to be somewhere with VS, IE 7, and/or Vista. Am also
wondering if maybe there is a setting in IE on my laptop that is set
different than on my desktop where I am not able to view this properly
through VS. With Vista having the "new" security stuff, I kind of wondering
if it is gettign in the way of communication between IE 7 and IIS? Can some
of you assist me in this matter? Not sure what else to check, but I think I
have narrowed it down. Any help is much appreciated!
 
Take a look at my thread "Clickonce Install Fails" in this newsgroup... I am
pasting my answer here.
In Vista there is a switch turned off by default...

=====================paste start===========
SUCCESS!!!
Got it working.
After the Fire Fox test and I had the same issues
- it got me thinking it not a browser issue, and using the assumption that
it defenitly doesnt look like a vs issue ( since the files are created
properly )...i was left with 2 options.
Vista security or IIS

I started searching the IIS forums and found my answer.
http://forums.iis.net/p/1152570/1882738.aspx
It doesnt say how however - so this is the next link that showed me how.
http://weblogs.asp.net/anasghanem/a...ontent-service-quot-in-iis7-installation.aspx

One more thing I had to reboot for the setting to take effect.

Thank you for your time and your help.

You can close this ticket.

Cheers'

Miro
=======================paste end==================
 
Am using OE as my newsreader and cannot see this, or at least the solution
you found. Can you give me the link to your post with the solution and I can
go from there? Thanks much!
 
Go to Control Panel
Click on Programs
Click on "turn windows features on or off"

scroll down a tad...
Here is the "tree view" so you can get to the correct checkbox:
expand the following:
Internet Information Services
World Wide Web Services
Common HttpFeatures
The main Checkbox is STATIC CONTENT

This (in vista) is apparently off by default and in xp it was on.

Once you select it - it doesnt tell you - but you will need to reboot.

That solved my problem.
I had the same issue... i seen the html in my wwwroot folder, but when i
opened it up it looked like a blank web page.
When I opend it up manually in IE or Firefox...the page would load but not
install with the click of the button.

The above solution should do the trick.

Let me know if this works / or does not for u.

Miro
 
Back
Top