Help w/ CryptographicException Error

Discussion in 'ASP .Net Web Services' started by MCP, Oct 1, 2007.

  1. MCP

    MCP Guest

    I am running code that requires a local certificate to connect to a web
    service (XML-RPC). The code works fine when I run it in Visual Studio Express
    2005; however, when I run it on Visual Web Developer, I get the following
    error:

    System.Security.Cryptography.CryptographicException was unhandled by user code
    Message="Access is denied.
    "
    Source="mscorlib"
    StackTrace:
    at
    System.Security.Cryptography.CryptographicException.ThrowCryptogaphicException(Int32 hr)
    at
    System.Security.Cryptography.X509Certificates.X509Utils._QueryCertFileType(String fileName)
    at
    System.Security.Cryptography.X509Certificates.X509Certificate.LoadCertificateFromFile(String fileName, Object password, X509KeyStorageFlags keyStorageFlags)
    at
    System.Security.Cryptography.X509Certificates.X509Certificate.CreateFromCertFile(String filename)
    at Default2.Page_Load(Object sender, EventArgs e) in
    c:\inetpub\wwwroot\MobObject\Default2.aspx.vb:line 14
    at System.Web.UI.Control.OnLoad(EventArgs e)
    at System.Web.UI.Control.LoadRecursive()
    at System.Web.UI.Page.ProcessRequestMain(Boolean
    includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
     
    MCP, Oct 1, 2007
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Dei401
    Replies:
    0
    Views:
    795
    Dei401
    Feb 2, 2005
  2. =?Utf-8?B?ZnJlcXVuZW5jeQ==?=

    CryptographicException Bad Data in Windo

    =?Utf-8?B?ZnJlcXVuZW5jeQ==?=, Jul 20, 2005, in forum: ASP .Net
    Replies:
    0
    Views:
    627
    =?Utf-8?B?ZnJlcXVuZW5jeQ==?=
    Jul 20, 2005
  3. muthu
    Replies:
    1
    Views:
    533
    Winista
    Jul 10, 2006
  4. Brad
    Replies:
    1
    Views:
    1,710
    Steven Cheng[MSFT]
    Aug 30, 2006
  5. Brent K
    Replies:
    2
    Views:
    660
    =?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=
    Jul 12, 2007
Loading...

Share This Page