Server Error: HTTP Error 500.19 - Internal Server Error

by Vishwa 26. May 2007 03:08

You might have come across this error while working on a WCF project on Vista, IIS 7.0 with Visual Studio 2005. Actually Microsoft has tightened the security on VISTA and most of the time it is annoying when it asks your permission. Following is the detail error message I received while trying to run a WCF project, however I found a simple solution to fix it.

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/ProductsService/ProductsService.svc
Physical Path: C:\Test\ProductsService\ProductsService\ProductsService.svc
Logon User: Not yet determined
Logon Method: Not yet determined
Handler: Not yet determined
Config Error: Cannot read configuration file
Config File: \\?\C:\Test\ProductsService\ProductsService\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.

Solution: Compile the project and place the deployable files under C:\Inetpub\wwwroot\<projectname>. Make sure that the physical path of the respective Application (e.g. ProductsService in above error case) under IIS now points to new path. 


It looks like that if you run your application under IIS 7 and the physical path of any application is other than wwwroot then it will give the above error message or you provide that folder some special permission so that IIS can access it.

Tags:

.NET

Comments (19) -

Chad
Chad United States
6/14/2007 11:10:47 AM #

I got around this problem by making my virtual directory an ASP.NET application.

Wael Rabadi
Wael Rabadi United States
8/4/2007 12:25:18 PM #

Check the folder permission for \ASPNET and \IIS_IUSRS

Karina
Karina Ireland
10/9/2007 4:50:16 PM #

I stumbled across a solution by sharing the folder, which creates a web.config file, and then set within that file.

inciph
inciph United States
7/24/2008 6:53:24 AM #

I had this problem and it turned out to be a syntax error in my web.config file. (weird)

albertx20
albertx20 Mexico
10/19/2008 2:57:22 AM #

Just give a \IIS_IUSRS folder  permission

fromturkey
fromturkey Turkey
2/26/2009 8:54:49 PM #

you are great i love you all i gave all permission and it works

Hoodia
Hoodia Denmark
7/14/2009 2:30:25 AM #

Good post, I will mention it on my blog.. Cheers

San Diego Real Estate Investing
San Diego Real Estate Investing United States
8/3/2009 12:09:07 AM #

I am thankful for such a great post with many new things to learn� Thanks, you cleared up some things for me.

Web Designer San Diego
Web Designer San Diego United States
8/9/2009 3:38:37 PM #

I just couldn't leave your website before saying that I really enjoyed the quality information you offer. Will be back often to check up on new stuff you post!

Learn German
Learn German United States
8/15/2009 3:34:18 PM #

Interesting, I didn't know that!

poker recensie
poker recensie United States
12/15/2009 9:39:57 PM #

I have successfully installed PHP 5, MySQL 5.1, Apache 2.2 and phpMyAdmin. I've test the phpinfo(); and it works fine. Besides, i have tested the connection between MySQL and PHP and it connect well. I have 2 php file-1)Form.php & 2)Insert.php. The form will undergo the insert.php to insert the data into phpMyAdmin.

mehdi
mehdi Iran
12/23/2009 11:06:19 AM #

I can't see \ASPNET. I have \IIS_IUSRS

la quinta golf homes
la quinta golf homes United States
3/8/2010 3:14:35 AM #

I think I'm going to bookmark this site since it had all the information I was looking for.  Thanks so much to the owener.  Look forward to seeing you again sometime.

Joe Dardard
Joe Dardard United States
4/1/2010 3:38:22 AM #

All the posts look great and offer unique solution -- except mine Smile I must be really jinxed. Anyone have any other ideas? I'm using Windows 7 and IIS 7, trying to develop a classic ASP site.

I wonder if Geronomo had iphone with GPS...

Joe

Y.Muranaka
Y.Muranaka Japan
5/9/2010 10:00:16 PM #

Hi Joe,
You should add user IIS_IUSRS to target folder.
And you may need to change 'Deny' to 'Allow' in applicationHost.config.
I will give you my settings if you are still in your labyrinth, ask me not hesitate please.

MacBookPro17,VMWare Fusion, Windows7 Ultimate, Visual Web Developer 2010

Joe Dardard
Joe Dardard United States
5/22/2010 6:33:28 AM #


Thanks, all, for your kind attempts to assist in the solution to my 500.19 error. I don't think it was a permission issue. I've checked that area and found all to be OK. I now get only the code view when I preview my page in my browser. I would think I'm getting closer to the final solution, but I'm still stumped. Can any one help on this one?

By the way, I've enjoyed reading all the wonderful posts. All are very informative. Great bunch of people...

Joe Dardard

Ramon Mizrachi
Ramon Mizrachi United States
7/13/2010 9:22:20 AM #

I had the same issue installing a Smart Client app using WCF.  The problem was that although IIS was installed, ASP.net and WCF were not turn on.

I went to to modify windows features and enable them and now it works fine.

Ramon

Angelos
Angelos Greece
8/30/2010 6:37:05 AM #

Same with Ramon,

i had the exact same 500.19 error and turned out that
when IIS 7 was installed, ASP.NET feature wasnt selected.

So IIS could server html or even flash objects
but couldnt server .aspx

So i did same thing with ramon, turned the feature on from the windows components and worked

online baccarat
online baccarat India
9/6/2010 7:43:05 PM #

I had a great time reading around your post as I read it extensively. Excellent writing! I am looking forward to hearing more from you.

Comments are closed

About Me

Me Hello,my name is
Vishwa Mohan Kumar, PMP
MCP SOA Certified Architect
I am a Software Architect. This blog is result of my experiments.

Flickr Photos

Calendar

<<  February 2012  >>
MoTuWeThFrSaSu
303112345
6789101112
13141516171819
20212223242526
2728291234
567891011

View posts in large calendar

Archive

Recent Comments

Comment RSS

Live Traffic Feed