Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

WCF on IIS 7.0 Service Security Configuration Issue using Basic Authentication

Posted on 2012-03-28
4
Medium Priority
?
953 Views
Last Modified: 2012-04-02
I have spend the last couple of days trying to solve an issue when hosting a WCF service in SQL 2008 Server and IIS 7.0.

This problem only occurs when I have anonymous authentication disabled and using Basic Authentication over SSL as shown in the web.config extract below

    <security mode="Transport">
        <transport clientCredentialType="Basic" />
    </security>

Basically when i try to access MeterReadingService.svc file I get an IIS error saying it cannot find the resource \Account\Login.
It seems I am being redirected to a login page. Forms authentication is not enabled on IIS


Details of Error:

HTTP Error 404.0 - Not Found
The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.

Detailed Error Information
Module IIS Web Core
Notification MapRequestHandler
Handler StaticFile
Error Code 0x80070002
Requested URL
https://localhost:9011/FrontEndWS/Account/Login?ReturnUrl=%2fFrontEndWS%2fMeterReadingService.svc 

Physical Path D:\WebApplications\MeterReaderPortal\FrontEndWS\Account\Login
Logon Method Basic
Logon User Administrator


Can you indicate any pointers why this is happening or how can i log the cause of this error?
0
Comment
Question by:emcict
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 10

Expert Comment

by:gaurav05
ID: 37775968
Hi,

Give iis user, network service permission to that physical folder where you install your application.

Also try this.

In IIS manager select your web application under sites.
Once you select your webiste in features view, under IIS, click on Handler Mappings.
Under Actions, click Add Managed Handler.

Add following

Request Path: Reserved.ReportViewerWebControl.axd

Type: Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a

Name: Reserved-ReportViewerWebControl-axd

let us know
0
 

Author Comment

by:emcict
ID: 37780386
Hi,

Thanks for the information, unfortunately it did not work.

I still have the same error.
0
 

Accepted Solution

by:
emcict earned 0 total points
ID: 37780550
Hi I solved my issue by adding these to my App settings in web.config:

<add key="autoFormsAuthentication" value="false" />
<add key="enableSimpleMembership" value="false"/>


I found this solution in stack overflow here:
http://stackoverflow.com/questions/8205368/request-redirect-to-account-loginreturnurl-2f-since-mvc-3-install-on-server
0
 

Author Closing Comment

by:emcict
ID: 37795249
I found a solution elswhere and it worked for me. it was very simpe to implement too
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
A procedure for exporting installed hotfix details of remote computers using powershell
This tutorial will show how to push an installation of Backup Exec to an additional server in both 2012 and 2014 versions of the software. Click on the Backup Exec button in the upper left corner. From here, select Installation and Licensing, then I…
This tutorial will walk an individual through locating and launching the BEUtility application to properly change the service account username and\or password in situation where it may be necessary or where the password has been inadvertently change…

704 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question