Link to home
Start Free TrialLog in
Avatar of Starr Duskk
Starr DuskkFlag for United States of America

asked on

no Authentication methods enabled error

I have a web site in visual studio 2008, going to a MS web server 2008 web edition web server.

I have front page extensions installed on this server.

I am trying to use the copy web site menu item to copy my local files to my remote server. If I have forms authentication, instead of windows authentication in my web.config:
      <authentication mode="Forms">
          <forms cookieless="UseCookies" defaultUrl="~/Default.aspx" domain="" enableCrossAppRedirects="false" loginUrl="~/Login.aspx" name=".ASPXAUTH" path="/" protection="All" requireSSL="false" slidingExpiration="true" timeout="30" />
      </authentication>
      <identity impersonate="false" />

I get this error when trying to connect to the site to copy:
Unable to open the web site http://www.xxx.com/". The web server does not appear to hvae any authentication methods enabled. It asked for user authentication, but did not send a WWW-Authenticate header.

What am I lacking? Why can't I copy using forms authetication. If I change to windows authentication, I can copy, but this is no good for my web site since I need forms authentication.

thanks.

Avatar of prairiedog
prairiedog
Flag of United States of America image

Avatar of Starr Duskk

ASKER

That is IIS4.
I am using windows 2008 and IIS7.
I wouldn't know where the equivalent was in IIS7 and can't find anything equivalent. I know how to setup the anonymous user, but that's not what it's telling me to do.
 
SOLUTION
Avatar of prairiedog
prairiedog
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Are you familiar with IIS7? there is no properties folder. It is nothing like IIS4, or iIS5 or iIS6.
 
>>>Are you familiar with IIS7?
No, but it seems you are.
As I mentioned before, the basic idea is the same: you enabled the anonymous acess for your site, but no authentication is enabled.
Sorry for the confusion and since you are not satisfied with my comments, I am moving on to other questions. Hope other more advanced experts can assist you more.
Okay, if anyone has any idea what needs to be done in IIS7 to get this to work, I'd appreciate it. I can get the authenticated user to work for windows authentication, but it's the forms authentication that is failing.
The IIS4 instructions do not pertain to IIS7 and I can't find an equivalent.
Thanks!
 
Added note:
web.config only contains windows authentication, but if I check to include windows authentication in the actual IIS7, it allows me to copy. But it gives an alert:
"Challenge based and login-redirect based authentication cannot be used simultaneously."
It doesn't seem to choke on the website, but it evidentally is not the right way to do it.
What can I do to get forms authentication to work and still allow me to copy files?
thanks.
 
Sorry. The above is not true. I have another window open with another website I'm testing and got confused.
Still in same problem. Forms authentication is not allowing file copy. Ignore the previous message.
 
In IIS7, you can go to the website:
In the middle panel, which is known as the FeaturesView, in the middle half, there is an icon called: Authentication under the IIS section.
This will bring up Anonymous Authentication and and Forms Authentication and Windows Authentication.
Click each one and in the Actions panel on the right you can set the status to Enabled or Disabled.
 
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Daver555
Daver555

I'm having the same issue but with IIS 6.0 instead of IIS 7.0.  Both "Publish Web Site" and "Copy Web Site..." methods fail.  I'm only using Integrated Windows Authentication and I'm a Power User on the server that I'm trying to deploy to.  When I try to publish I get the following error:

Error: The operation could not be completed. Unspecified error

And when I try "Copy Web Site" I get:

Unable to open the web site http://www.xxx.com/". The web server does not appear to have any authentication methods enabled. It asked for user authentication, but did not send a WWW-Authenticate header.

I've turned off forms authentication and turned on Windows Authentication in IIS as well.  Finally, I've restarted the IIS service many times in order to make sure all my changes would take effect when the IIS service restarted.  Nothing seems to work.  

What am I doing wrong?
You should maybe start a new post just for this so you'll get better responses?