• 0

IIS7 folder permissions


Question

I build a basic WCF service that I now want to host in IIS7 under Windows Server 2008 R2.

I added the service as an application under the default web site but whenever i try to run the application I get the following error:

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

Config Error - Cannot read configuration file due to insufficient permissions

The only way I can get this service working is if i choose to "connect as" the server Administrator when adding the application.

The "application user (pass-through authentication)" option does not seem to work.

Could anyone help me out, I've just started using IIS7 and have no idea what to do... Thanks

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

IIS7 is a frickin nightmare to set up in my recent experience..

you could try setting your solution to debug straight to an IIS7 site, and it should set it up for you..

i'm doing some work right now, but i'll have a quick look later on if you are still stuck

Link to comment
Share on other sites

  • 0

IIS7 is a frickin nightmare to set up in my recent experience..

you could try setting your solution to debug straight to an IIS7 site, and it should set it up for you..

i'm doing some work right now, but i'll have a quick look later on if you are still stuck

Thanks mate... I've been looking at this problem all weekend now and its starting to drive me up the wall.

As I said, I can get the WCF service working if I connect as the server administrator, but this "solution" does not work on another ASP.net project I have.

Link to comment
Share on other sites

  • 0

Ughh... I feel like such an idiot

The applications were located in My Documents - no wonder they required Admin credentials to run.

So when i moved them into the wwwroot folder they worked fine.

Link to comment
Share on other sites

  • 0

Only problem I have now is trying to load .dll files into my silverlight application.

this.pluginDownloader = new WebClient();
this.pluginDownloader.OpenReadCompleted += new OpenReadCompletedEventHandler(pluginDownloader_OpenReadCompleted);
this.pluginDownloader.DownloadProgressChanged += new DownloadProgressChangedEventHandler(pluginDownloader_DownloadProgressChanged);

String path = String.Format("http://localhost/Resources/Plugins/{0}.dll", this.pluginDetails.AssemblyName);
this.pluginDownloader.OpenReadAsync(new Uri(path, UriKind.Relative));

I can manually download the .dll assembly file by navigating to it (eg: http://localhost/Resources/Plugins/myAssembly.dll) but it just stalls the silverlight app.

This works when I launch the project in visual studio 2010 so it must be some setting in IIS7

Anyone know how to fix this?

Link to comment
Share on other sites

  • 0

Who's running the application pool? By default it will be Network Service or Application Pool Identity. Make sure those users have the right permissions. (Application Pool Identity falls under the worker process group, IUSRS)

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.