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.

Signature

Comments

6/15/2007 2:10:47 AM #

Chad

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

Chad United States

8/5/2007 3:25:18 AM #

Wael Rabadi

Check the folder permission for \ASPNET and \IIS_IUSRS

Wael Rabadi United States

10/10/2007 7:50:16 AM #

Karina

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

Karina Ireland

7/24/2008 9:53:24 PM #

inciph

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

inciph United States

10/19/2008 5:57:22 PM #

albertx20

Just give a \IIS_IUSRS folder  permission

albertx20 Mexico

2/27/2009 11:54:49 AM #

fromturkey

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

fromturkey Turkey

7/14/2009 5:30:25 PM #

Hoodia

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

Hoodia Denmark

8/3/2009 3:09:07 PM #

San Diego Real Estate Investing

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

San Diego Real Estate Investing United States

8/10/2009 6:38:37 AM #

Web Designer San Diego

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!

Web Designer San Diego United States

8/16/2009 6:34:18 AM #

Learn German

Interesting, I didn't know that!

Learn German United States

12/16/2009 12:39:57 PM #

poker recensie

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.

poker recensie United States

12/24/2009 2:06:19 AM #

mehdi

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

mehdi Iran

Add comment


(Will show your Gravatar icon)

  Country flag

biuquote
  • Comment
  • Preview
Loading



About Me

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

Flickr Photos

Calendar

<<  March 2010  >>
MoTuWeThFrSaSu
22232425262728
1234567
891011121314
15161718192021
22232425262728
2930311234

View posts in large calendar

Recent Comments

Comment RSS

Live Traffic Feed