Added WCF to project, now I have authentication popups

Aug 10 2009 10:04 AM
Folks,

I added a WCF service to my project and now every page navigation produces a authentication prompt much like when anonymous access is not enabled for a website in IIS 6.0.

My project utilizes .NET 3.5, is coded in VB.NET and  consists of a website and two code library projects.  I added a WCF service to the website which was accompanied by a new .vb file for the service's contract added to the "App_Code" directory.  Additionally, I added a few other solution folders just under the root of the website with misc. files.

The problem occurs after I copy the newly published website into the production directory on the client server.  After that deployment, the authentication prompts begin.  If the user cancels out the prompt, navigation is still allowed but visiting other pages in the website trigger another prompt that the user must cancel out of ad nauseum .

If I rollback the previous version of the source, the problem goes away.

I have been told by a few folks to investigate the newly added directories and files for deficient permission i.e. the NETWORK SERVICE or ASP.NET machine group may not have full rights to these directories and/or files.  I have looked at the properties of the website's root directory, clicked "Security" and verified that the NETWORK SERVICE and ASP.NET machine account appear in the list of "Groups and user names."  I was also told to make sure that everything under that root directory has inherited those same permissions, so I clicked the "Advanced" button and clicked the checkbox next to the "Inherit from parent the permission entries..." option and have even tried the "Replace permission entries..." option without noticing any change in the websites behavior.

Any suggestions?  Do you all need any more info?

Answers (2)