howdy

I installed IIS in vista home premium and created a virtual directory but
when I logon to http://localhost/thisSite/

the following error occurs

But when I run 'thisSite' from vs 2005 its a different port number eg
http://localhost:8304/thisSite/

How do you get it to work for only type in 'http://localhost/thisSite/' ?

Thanks in advance

****************Error Screen Starts***********************

Server Error

--------------------------------------------------------------------------------

HTTP Error 500.19 - Internal Server Error
Description: The requested page cannot be accessed because the related
configuration data for the page is invalid.

Error Code: 0x80070005

Notification: BeginRequest

Module: IIS Web Core

Requested URL: http://localhost:80/thisSite

Physical Path: C:\Users\username\Documents\aFolder\thisSite

Logon User: Not yet determined

Logon Method: Not yet determined

Handler: Not yet determined

Config Error: Cannot read configuration file

Config File: \\?\C:\Users\username\Documents\aFolder\thisSite\web.config

Config Source: -1:
0:




More Information... This error occurs when there is a problem reading the
configuration file for the Web server or Web application. In some cases, the
event logs may contain more information about what caused this error.


--------------------------------------------------------------------------------
Server Version Information: Internet Information Services 7.0.

*************Error Screen Ends*******************************

Re: Internal Server Error - IIS VISTA Home Premium by Ken

Ken
Tue May 08 19:39:50 CDT 2007

Hi,

IIS is saying that it can't read the web.config file. At the moment this
file is located in a folder underneath your user profile's folder
(c:\users). Only you (and the System, and Administrators) have access to
files in that path.

So, if you are using Anonymous Access with IIS, then the configured
anonymous user is not going to be able to read in that web.config file.
VS.NET is probably using some kind of authenticated access to its internal
server (i.e. running the webpage as yourself, which allows you to get access
to the web.config file)

Cheers
Ken

--
My IIS Blog: www.adOpenStatic.com/cs/blogs/ken


"jctwguy" <jctwguy@discussions.microsoft.com> wrote in message
news:3460677B-CB09-4159-9965-D453AFE5C56C@microsoft.com...
> howdy
>
> I installed IIS in vista home premium and created a virtual directory but
> when I logon to http://localhost/thisSite/
>
> the following error occurs
>
> But when I run 'thisSite' from vs 2005 its a different port number eg
> http://localhost:8304/thisSite/
>
> How do you get it to work for only type in 'http://localhost/thisSite/' ?
>
> Thanks in advance
>
> ****************Error Screen Starts***********************
>
> Server Error
>
> --------------------------------------------------------------------------------
>
> HTTP Error 500.19 - Internal Server Error
> Description: The requested page cannot be accessed because the related
> configuration data for the page is invalid.
>
> Error Code: 0x80070005
>
> Notification: BeginRequest
>
> Module: IIS Web Core
>
> Requested URL: http://localhost:80/thisSite
>
> Physical Path: C:\Users\username\Documents\aFolder\thisSite
>
> Logon User: Not yet determined
>
> Logon Method: Not yet determined
>
> Handler: Not yet determined
>
> Config Error: Cannot read configuration file
>
> Config File: \\?\C:\Users\username\Documents\aFolder\thisSite\web.config
>
> Config Source: -1:
> 0:
>
>
>
>
> More Information... This error occurs when there is a problem reading the
> configuration file for the Web server or Web application. In some cases,
> the
> event logs may contain more information about what caused this error.
>
>
> --------------------------------------------------------------------------------
> Server Version Information: Internet Information Services 7.0.
>
> *************Error Screen Ends*******************************


Re: Internal Server Error - IIS VISTA Home Premium by lplates

lplates
Wed May 09 08:42:43 CDT 2007

Hello,

I've had the same problem using an IIS 7.0 virtual directory that has
a physical location within the Vista 'Users' directory. I'm not sure
if this is secure, but I worked around it by giving the following
users/groups read permissions on the physical location:

- IIS_IUSRS
- IUSR

If anyone can advise on the security perspective I'd appreciate it.
Also, let me know if this works for you.

Cheers,
Dave


Re: Internal Server Error - IIS VISTA Home Premium by Ken

Ken
Wed May 09 21:02:40 CDT 2007

That's not the right way to go about going things. It means that anonymous
IIS user can read personal files/folders within your user profile folder(s).

c:\users is supposed to be a relatively secure, personal area, where each
users settings are stored. A normal, standard user can access their
documents only, and not other people's documents etc.

IIS installed a website folder into c:\inetpub\wwwroot (the root folder for
the Default Web Site). Why can't you put your application in there (or in a
folder underneath that)?

Cheers
Ken

<lplates@ukonline.co.uk> wrote in message
news:1178718163.921730.16680@e65g2000hsc.googlegroups.com...
> Hello,
>
> I've had the same problem using an IIS 7.0 virtual directory that has
> a physical location within the Vista 'Users' directory. I'm not sure
> if this is secure, but I worked around it by giving the following
> users/groups read permissions on the physical location:
>
> - IIS_IUSRS
> - IUSR
>
> If anyone can advise on the security perspective I'd appreciate it.
> Also, let me know if this works for you.
>
> Cheers,
> Dave
>