Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. 401 Unauthorized error

401 Unauthorized error

Scheduled Pinned Locked Moved ASP.NET
helpcsharpvisual-studiosysadminsecurity
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    vanikanc
    wrote on last edited by
    #1

    Hello, I do apologize if this is the incorrect forum to post. I have a file which I need to post to a remote client server. I created a .p12 key file from the client web site. Using this .p12 ket file, password information I need to post a file to the server. Using class, X509Certificate2 from namespace using System.Security.Cryptography.X509Certificates X509Certificate2. I created a simple C# console application on my laptop using VS 2010, to define the parameters to the .p12 key file, and path to the csv file to post to remote server. I keep getting "Remote Server returned error - 401 UnAuthorized Error". Is there some sort of permission issue on .net end or the client side. The client keeps stating there is no communcation problem on their end. I have been working on this code for some time now. any ideas is much, much appreciated.

    S 1 Reply Last reply
    0
    • V vanikanc

      Hello, I do apologize if this is the incorrect forum to post. I have a file which I need to post to a remote client server. I created a .p12 key file from the client web site. Using this .p12 ket file, password information I need to post a file to the server. Using class, X509Certificate2 from namespace using System.Security.Cryptography.X509Certificates X509Certificate2. I created a simple C# console application on my laptop using VS 2010, to define the parameters to the .p12 key file, and path to the csv file to post to remote server. I keep getting "Remote Server returned error - 401 UnAuthorized Error". Is there some sort of permission issue on .net end or the client side. The client keeps stating there is no communcation problem on their end. I have been working on this code for some time now. any ideas is much, much appreciated.

      S Offline
      S Offline
      Sandeep Mewara
      wrote on last edited by
      #2

      vanikanc wrote:

      a file which I need to post to a remote client server

      vanikanc wrote:

      I keep getting "Remote Server returned error - 401 UnAuthorized Error".

      To me, based on above statements, it looks like the request is not going through. The key created/used is not having correct password or so leading to unauthorized error. Issue wise, it might be of certificate or the way you are sending/using it to communicate. Ideally, client server must be setup to accept calls with proper certificate(having correct password) for handshake permission. Error wise, the communication is not as per expected. Talk to someone on client side, make sure you are communicating correctly and the certificate-password is valid.

      Sandeep Mewara Microsoft ASP.NET MVP 2012 & 2013 [My Blog]: Sandeep Mewara's Tech Journal! [My Latest Article]: HTML5 Quick Start Web Application

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups