The dreaded 404 message using basicHttpBinding, Transport security mode, and certificates

I am working on setting up a WCF service using mutual authentication with both client and server certifiates. The service is hosted in IIS 7, and I'm trying to access it from a simple console app. When I try to connect to the service, I get the error ""There
was no endpoint listening at
https://localhost/IISHostedService/MyService.svc that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details." The inner exception is "The remote server returned an error:
(404) Not Found."
I have seen people all over the net reporting this error, but so far none of their fixes work for me. I have an HTTPS binding in IIS for my app, and I am able to browse to my service (using either http or https) and view it with no problems. I can get the
wsdl (also over either protocol) with no issues, but connecting from the client doesn't work.
Here is my server config:
<system.serviceModel>
<behaviors>
<serviceBehaviors>
<behavior>
<serviceCredentials>
<serviceCertificate findValue="ServerCertificate" storeLocation="LocalMachine" x509FindType="FindBySubjectName" />
<clientCertificate>
<authentication revocationMode="NoCheck" />
</clientCertificate>
</serviceCredentials>
<serviceMetadata httpGetEnabled="true" httpsGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="true" />
</behavior>
</serviceBehaviors>
</behaviors>
<serviceHostingEnvironment multipleSiteBindingsEnabled="true" />
<bindings>
<basicHttpBinding>
<binding name="BasicHttpBinding_MyService">
<security mode="Transport">
<transport clientCredentialType="Certificate" />
</security>
</binding>
</basicHttpBinding>
</bindings>
<services>
<service name="MyService">
<endpoint binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_MyService" contract="Namespace.IContract" />
</service>
</services>
</system.serviceModel>
And my client:
<system.serviceModel>
<behaviors>
<endpointBehaviors>
<behavior name="clientEndpointBehavior">
<clientCredentials>
<clientCertificate findValue="ClientCertificate" storeLocation="LocalMachine" x509FindType="FindBySubjectName"/>
</clientCredentials>
</behavior>
</endpointBehaviors>
</behaviors>
<bindings>
<basicHttpBinding>
<binding name="BasicHttpBinding_MyService" closeTimeout="00:10:00"
openTimeout="00:10:00" receiveTimeout="00:10:00" sendTimeout="00:10:00"
allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
maxBufferSize="65536" maxBufferPoolSize="524288" maxReceivedMessageSize="65536"
messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"
useDefaultWebProxy="true">
<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
maxBytesPerRead="4096" maxNameTableCharCount="16384" />
<security mode="Transport">
<transport clientCredentialType="Certificate" />
</security>
</binding>
</basicHttpBinding>
</bindings>
<client>
<endpoint address="https://localhost/IISHostedService/MyService.svc behaviorConfiguration="clientEndpointBehavior"
binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_MyService"
contract="Namespace.IContract" name="BasicHttpBinding_MyService" />
</client>
</system.serviceModel>
I am not sure if it matters, but this client and server are running on the same physical machine in a test environment. I have confirmed that both the client and the server certificates are installed, and that the issuing authority is trusted. The virtual
folder is set in IIS to "Accept" client certificates, and SSL is not required.
Does anyone have any thoughts what I may be missing? This service works without a problem over HTTP, so it has to be somehow related to the certificate that is being passed. With the Server certificate, I just trapped the ServicePointManager.ServerCertificateValidationCallback
event to manually approve the certificate if the subject matched what I was looking for (the subject does not match the domain name, since this is a test environment). Do I need to do something similar for the client certificate?
EDIT: One thing I do notice is that, in the WSDL, the soap location is always pointing to http. I'm not sure if that is correct or not:
<wsdl:service name="MyService">
<wsdl:port name="BasicHttpBinding_MyService" binding="tns:BasicHttpBinding_MyService">
<soap:address location="http://computerName.domain.com/IISHostedService/MyService.svc" />
</wsdl:port>
</wsdl:service>

A little more information (since this is the main thing I have to work on today):
After some research, I decided to try using a custom certificate validator, in case something is wrong with the client certificate. In the clientCertificate\authentication node on the server, I set the certificateValidationMode="Custom" and set customValidationType="MyType.Validator,
MyType". My type is apparently being found (when it is not found I get a "service could not be activated" error), but my Validate() method is never being called.
Now this leads me to believe that it's not a problem with the client certificate, but something else, before it even gets that far.

Similar Messages

  • When I open firefox or try to open any website I get the Error 404 message stating page not found, how do I correct this?

    When opening firefox the error 404 immediatly comes up and NO websites (bookmarked or not) will come up, the error 404 message repeatedly comes up. I have deleted and re-installed different firefox versions and nothing has worked yet. What else can I try?

    Do a malware check with some malware scan programs.<br />
    You need to scan with all programs because each program detects different malware.<br />
    Make sure that you update each program to get the latest version of the database before doing a scan.<br />
    * http://www.malwarebytes.org/mbam.php - Malwarebytes' Anti-Malware
    * http://www.superantispyware.com/ - SuperAntispyware
    * http://www.microsoft.com/windows/products/winfamily/defender/default.mspx - Windows Defender: Home Page
    * http://www.safer-networking.org/en/index.html - Spybot Search & Destroy
    * http://www.lavasoft.com/products/ad_aware_free.php - Ad-Aware Free
    See also "Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked and [[Searches are redirected to another site]]

  • Session "Microsoft Security Essentials OOBE" stopped due to the following error: 0xC000000D using win 7 64bit over and over BSOD

    Session "Microsoft Security Essentials OOBE" stopped due to the following error: 0xC000000D    using win 7 64bit over and over BSOD
    My event viewer has been coughing the error line above. It has lead to the feeling of a Carotid Artery leak of memory where my whole
    system slowly stops working till BSOD. Windows Explorer just stops working then Death.
    I HAVE HAD THIS HAPPEN MORE AND MORE, AND IT APPEARS TO BE A PROGRAM PROBLEM, ANYBODY ELSE HAVE THIS.
    IT HAS COST ME 2 DAYS WORK NOW.
    MIKE

    Hi,
    When does the issue begin to occur?
    Since Windows system uses separated user mode and kernel mode memory space, stop errors are usually caused by kernel portion components, such as a hardware device,
    third-party drivers, backup software or anti-virus services (buggy services).
    Please refer to the following steps to troubleshoot the issue.
    1. Boot the computer in
    Clean Boot for a test.
    2. Temporarily disable all unnecessary hardware devices in Device Manager, such as Modem, sound card or external device.
    For detail steps, we can refer to the link below:
    Device Clean Boot
    3. Upgrade the virus definition, run antivirus program and perform a full scanning.
    If the issue persists, please upload the minidump file (%systemroot%\minidump) to SkyDrive (
    www.skydrive.live.com ), then share the link to me. I will be glad to assist you to analysis the data.
    Thanks,
    Novak

  • I want to change the email that iCloud  uses to send security answers to and i don't know how.

    Hi, i just installed my mavericks and i was going through all my settings and keychains and everyting. Last month i deleted the email account that i think we use to send the answers of the security questions on and i forgot the answers. I want to change the email that iCloud  uses to send security answers to and i don't know how. Can it be done?

    You need to contact Apple. Click here, phone them, and ask for the Account Security team, or fill out and submit this form.
    (91794)

  • HT5312 What the ****? I don't remember my **** security answers and I just put $35 on my iTunes account and I am not able to buy anything! I'm so mad. I answered those questions stupidly and I did not pay attention. And that extra email? I don't have a cl

    What the ****? I don't remember my **** security answers and I just put $35 on my iTunes account and I am not able to buy anything! I'm so mad! I anwered those questions stupidly and I did not pay attention. And that extra email? I don't have a clue. I am seething and desperate. & I refuse to create a new account with all that mula on the line.

    If you don't have a rescue email address, or you don't know what it is (you won't be able to add/view it until you can answer 2 of your questions) then you will need to contact iTunes Support / Apple to get the questions reset.
    Contacting Apple about account security : http://support.apple.com/kb/HT5699
    When they've been reset you can then use the steps half-way down the HT5312 page that you posted from to add a rescue email address for potential future use

  • I forgot my Apple security questions..but the "send an email to reset your security questions and answers to rescue email" is not be available

    I have some problem with my Apple ID..I forgot my Apple security questions..but the "send an email to reset your security questions and answers to rescue email is not be available".
    I do not live in the US so I cannot call Apple Support. How else can I reset my security questions?

    The Best Alternatives for Security Questions and Rescue Mail
         1.  Send Apple an email request at: Apple - Support - iTunes Store - Contact Us.
         2.  Call Apple Support in your country: Customer Service: Contact Apple support.
         3.  Rescue email address and how to reset Apple ID security questions.
    An alternative to using the security questions is to use 2-step verification:
    Two-step verification FAQ Get answers to frequently asked questions about two-step verification for Apple ID.

  • I bought iphone 5 in september last year and the whatsapp which I installed was free of cost.The number which I used is the one I was using in my android phone and validity for its expiring in april but for other users its lifetime free.how can I get it ?

    I bought iphone 5 in september last year and the whatsapp which I installed was free of cost.The number which I used is the one I was using in my android phone and validity for its expiring in april but for other iphone users its lifetime free.how can I get the lifetime free validity?

    kratigupta wrote:
    how can I get the lifetime free validity?
    Huh? AFAIK, such does not exist. Read here:
    http://www.whatsapp.com/faq/general/23014681

  • My iPad will not charge and every time I charge it. It comes up with the iTunes icon and I will not charge, it is not a new I pad and the same charger I use for the I pad I use for my I phone and it will charge. What is wrong?

    My iPad will not charge and every time I charge it. It comes up with the iTunes icon and I will not charge, it is not a new I pad and the same charger I use for the I pad I use for my I phone and it will charge. What is wrong?

    What exactlyare you seeing on the iPad's screen ? If it's the iTunes icon and a cable then that means that it's gone into recovery mode - you will need to connect it to your computer's iTunes and you should be able to use that to reset it back to factory defaults and you can then restore/resync your content to it.

  • Project Server 2013: I am using Project Server Permission Mode and need help with permission assignments?

    Hi 
    Project Server 2013: I am using Project Server Permission Mode and need help with permission assignments?
    How can I change Permissions for the individual users to see specific projects or all projects in project center and to see specific quick launch items?
    For Example: if i have 4 users, A, B, C and D. what i want is:
    User A can see everything and act as a project manager or Admin.
    User B can view all projects in project centre but can change the schedule or resource assignment etc.
    User C can only act as approver of projects and can view all projects in project centre.
    User D can only view specific projects for which permissions are given.
    can i have some expert help in sorting and understanding permission modes... as i was playing with project server mode permissions and can't figure out how to apply the above scenario to set of my user.
    Thanks in Advance
    Cheers
    AJ
    Ajay Kumar

    Hi Ajay,
    Please refer to this link for detailed explanations about PS2013 security model. 
    http://technet.microsoft.com/en-us/library/cc197638(v=office.15).aspx
    Actually, it will take a couple of days to explain in detail the security model that is a fundamental and tricky aspect of every PS implementation. But basically, you NEVER set permissions for a single user. You have groups in which your insert users. Groups
    define "what users can do". Then you associate groups to a corresponding category. Categories define "what user can see". Thus the association of a group with a category will set "what the user can do on the objects he can see". Then, for more advanced security
    level, you can use the RBS that will consist in "branches" in which you'll insert users. Based on those branches, you'll customize categories to fine-tune what user can see (for projects and resources) depending on the RBS branch and level.
    I'd advice you to start "playing" in a test environment with the default categories/groups that might probably cover your need.
    Concerning your 4 users:
    user A : add him to the "administrator" group. Be careful that you're mentionning either project manager or administrator, which are 2 groups/categories with totally different permissions level.
    user B : basically can see everything and change everything? it could be in the project manager group, assuming that there are no project visibility restrictions on the category via the RBS.
    user C : waht do you mean by "approver"? Workflow approvals? Then it will be the portfolio manager group. Task update or timesheet approval? Then it is another long topic: please refer in the documentation to the "status manager" and "timesheet manager"
    concepts. There are not related to the security model. In a few words, the status manager is the owner of the project plan, is defined for each task and approves tasks updates. The timesheet manager is an attribute defined for each resource in its parameters
    and approves resource timesheet.
    user D : you have to define which permission level must be given to this user. Basically it could be a team member that will see only projects he's in the project team. Note that team member cannot interact with the project plan in another way than submitting
    timesheets and/or tasks updates which must be approved.
    Once more, those are large and complex subjects that require a deep dive into your business model and tons of tests in a test environment.
    Hope this helps.
    Guillaume Rouyre - MBA, MCP, MCTS

  • My  ipad i have been restore it yesterday my computer shut down in the middel now my ipad2 stuck in recovery mode and cant be detect by itunes ?

    my  ipad i have been restore it yesterday my computer shut down in the middel now my ipad2 stuck in recovery mode and cant be detect by itunes and it is jaikbroken ?

    Try these steps. If it doesn't work the first time, try a second time.
    Disconnect the USB cable from the iPhone, iPad, or iPod touch, but leave the other end of the cable connected to your computer's USB port.
    Turn off the device: Press and hold the Sleep/Wake button for a few seconds until the red slider appears, then slide the slider. Wait for the device to turn off. (If you cannot turn off the device using the slider, press and hold the Sleep/Wake and Home buttons at the same time. When the device turns off, release the Sleep/Wake and Home buttons.)
    While pressing and holding the Home button, reconnect the USB cable to the device. The device should turn on. (Note: If you see the screen that shows you are out of battery, let the device charge for at least ten minutes to ensure that the battery has some charge, and then start with step 2 again.)
    Continue holding the Home button until you see the "Connect to iTunes" screen. When this screen appears you can release the Home button
    If necessary, open iTunes. You should see the following "recovery mode" alert: "iTunes has detected an iPhone in recovery mode..."
    Use iTunes to restore the device.
    If you don't see the "Connect to iTunes" screen, try these steps again. If you see the "Connect to iTunes" screen but the device does not appear in iTunes, see this article and its related links. http://support.apple.com/kb/TS1538
    Hope this helps!
    ~Joe

  • I forgot the code for my iPhone to access the Home screen I do , please help me try formatting the iphone but when I put in nfc mode and connect it to the pc recognizes it and everything when you try to format the error 3004 appears

    I forgot the code for my iPhone to access the Home screen I do , please help me
    try formatting the iphone but when I put in nfc mode and connect it to the pc recognizes it and everything when you try to format the error 3004 appears

    Hello polo-angulo,
    I apologize, I'm a bit unclear on the nature and scope of the issue you are describing. If you are saying that you are getting an error code (3004) when you try to restore your iPhone (because you could not remember your passcode), you may find the information and troubleshooting steps outlined in the following articles helpful:
    Resolve iOS update and restore errors in iTunes - Apple Support
    Get help with iOS update and restore errors - Apple Support
    Sincerely,
    - Brenden

  • How can I have the most recent message in a thread shown first and not last

    Thunderbird (used in conjunction with Gmail - I believe the term is mail client) message threads commence with the oldest; how can I make Thunderbird messages commence with the latest message?

    How do I get around this?
    '''Workaround:'''
    Right Click on the first email in thread and choose:
    'open message in Conversation'
    This open in a new tab and will include all emails both received and sent by you in that conversation.
    It will appear just like the oiginal view with oldest on top.
    Then click on the thread icon to remove the 'threaded' view.
    in my case the list is then sorted by Date with newest on top. So easily identifying the newest email.
    But if required you could clickon Date column header.
    Additional:
    Note: If the new email in the thread is unread:
    View > Threads > Threads with unread
    This will produce a list of the received emails in the thread
    If you then remove the threaded view by clicking on the thread column header, it will list emails by Date in whatever order you desire.
    Unfortunately, this only works with an unread email, so once you have read that email you cannot easily do this again to locate the email in the conversation unless you use the Workaround previously described.

  • Hi my name is khalied and I have a problem in my account the problem is that I forget my security answers and I forget the email that you will send the security questions to it and I hope you help me

    i have forget my security questions and the email how can I reset it

    If you can't remember your rescue email address (you won't be able to view and/or change it until you can answer your questions) then you will need to contact Support in your country to get the questions reset (these are user-to-user forums).
    Contacting Apple about account security : http://support.apple.com/kb/HT5699
    When they've been reset you can then use the steps on this page to view and/or change your rescue email address for potential future use : http://support.apple.com/kb/HT5620

  • HT3529 is there a way to scroll up to the very first message received quicker than scrolling up and loading more messages?

    I want to scroll to the very first message receieved quicker than scrolling and having to use the upload more messages.

    Not really a complete answer, but if you tap the "time" at the very top of the screen, the message will quickly move to the top of the current set of messages.  Then you do need to tap the "load more messages".
    But you can quickly tap the "time" then "load more" then "time" then "load more" etc...

  • I upgraded to lion, now that I am restarting my mac, it is asking for a password. mind you i never set a password in the begining. so i used my start up cd and re set the password and restarted my mac only to be faced with the same delima. user password.

    I upgraded to lion, now that I am restarting my mac, it is asking for a password. mind you i never set a password in the begining.
    So i used my start up cd and re set the password and restarted my mac only to be faced with the same delima. user password please.
    I am currently in safe mode, otherwise I can't log on to mymac
    Please help, anyone

    thank you to all who responded. the final line was that I had to reboot and loss all of my info.
    this was per apple store intelligence.

Maybe you are looking for

  • Podcast downloads

    When I download or transfer podcasts to my ipod, i cannot listen to them unless on my pc. they appear on my ipod, and when i open them on the computer their are ok... i don't have the same problem with music selections. what am i doing wrong?

  • New Macbook, lines on screen, help it's a christmas present

    Bought are second mac for the wife and daughter, a macbook this time, mrs at work so I decided to open the box and fire it up, load itunes and pictures all software updates, set up email ect ect but to my horror, the book switched on and I was greete

  • X1 connectivity problem with old VGA beam projector using mini displayport to VGA adaptor.

    Hi all, I would like to ask you how to connect this X1 with VGA projector as well. actually, X1 has a external interface specification as  mini displayport 1.1a. So I bought mini displayport to VGA adapter from MAC store. (Actually, Lenovo Korea offi

  • BioShock 2 Live Chat - Transcript

    Transcript for “BioShock 2 Developer Chat”, Tues Feb 2 2010 (Part I) Aaron-GS: Good evening and welcome to our BioShock 2 developer chat! Tonight we have with us Jordan, Melissa and Zak from 2K Marin. Aaron-GS: This chat is queued and moderated, so p

  • Trying to update Photoshop CS6 with latest Camera Raw but no luck!!

    Working on a Corporate Licensed CS6 and the "Updates" under Help is grayed out? I have a license key, I have logged on to Adobe and I am an admin. Still it's grey. So I went on the internet and found a lot of pages telling me it is easy to download a