An error occurs while opening the specified store

Posted on 2006-04-04
Last Modified: 2008-01-09
In our website we are using a certificate which was given to us by a bank to use when we do the online payment.
if we run a standalone page/test page which use this certificate, it works fine.  But when we run our website, then we get the error "An error occurs while opening the specified store".  Our website we run as user "selfcare".  Is this something to do with security or permission.

Please help us

Question by:indikad
    LVL 18

    Expert Comment

    by:Sam Panwar

    I think you are talking about SSl certificate for encryption data or ma be paypal.
    1.Use the https:// instead of the http:// and try
    2. May be SSL not install proper contact to your host company
    3. Delete cookies and internet temporary file then try
    LVL 18

    Expert Comment

    by:Sam Panwar
    Suggestion 2
    The error may occur because the language-setting in
    Internet Explorer is missing.  To add a language, in
    Internet Explorer, select Tools-->Internet Options, and
    click the "Languages" button.  Add a language to the list
    if empty.
    Suggestion 3
    Check the system time.  SSL will not function if the
    system time is more than 100 days off.
    Suggestion 4
    Please uncheck "Check for server certificate revocation":

    1.  Open Internet Explorer
    2.  Click on Tools
    3.  Click on Internet Option from the drop down menu
    4.  Click on the Advanced tab
    5.  Scroll down to the Security Section
    6.  Unselect "Check for server certificate revocation"
    7.  Reboot the machine
    We may be able to resolve this issue by adding (Note: The https
    is correct)
    to the trusted sites list in the Internet Options.  
    To access the Exceptions settings.  
    1. Open Internet Explorer
    2. Click Tools / Internet Options
    3. Click the Security Tab
    4. Click on the Trusted Sites Icon
    5. Click on the Sites button
    6. Unselect the check box "Require server verification
    (https:)for all sites in this zone"
    7. Add all 4 sites listed above
    LVL 51

    Expert Comment

    >  But when we run our website, ..
    could you please post the command and the resulting error messages verbatime how you do that

    Author Comment

    in the web.config file we have this line :
    <identity impersonate="true" userName="selfcare" password="c9112f31" />

    if we set the impersonate="false" then this works.  Then this website runs as default ASP user.
    So I thing this is something to do with the user "selfcare".  But I do not know what to do.

    We have this user created on the web server and has the administrative wrights.
    LVL 18

    Expert Comment

    by:Sam Panwar
    Hi ,

    Make the virtual directory the folder in which the webconfig.sys file existyour problem should be rresolved

    Author Comment


    If you are talking about the web.config file then that is already in the virtual directory.
    LVL 18

    Expert Comment

    by:Sam Panwar
    Recreate it and check and also check the you have select windows authentication user the directory security of your website.
    LVL 18

    Expert Comment

    by:Sam Panwar
    Check the directory security setting of the that folder and website if you use any other password check and tell me

    Author Comment

    it has the anon. access and the integrated windows authentication checked
    in anon.access unchecked the "Allow IIS to control password" and the user is default ASP.NET user
    LVL 18

    Accepted Solution

    1.Check with the administrator password ainstead of selfcare use then try.
     And also try with the anonomous user
    Another method

    1. assign ASPNET account used by with Administrator right
    2. modify <winnt>\Microsoft.NET\Framework\<version>\CONFIG\machine.config
        change <processModel ... /> to: <processModel userName="machine"
    password="AutoGenerate" />
    Here is more infos:
    In the RTM version of ASP.NET the ASP.NET worker process runs under a special ASPNET account that has limited priveleges. For impersonation to work the security context must have "Act as part of the operating system" priveleges.  There are a couple workarounds:
    1.) Change the userName attribute of the <processModel> tag in your machine.config file to SYSTEM rather than its default which is MACHINE.
    2.) Impersonate programatically which is demonstrated in this KB article:;en-us;Q306158
    I'll bet that your developer machine is running pre-RTM .NET Framework bits or you have already reverted to the SYSTEM account on that machine.

    Please see the following information on Impersonation in ASP.NET.
    When you want to Impersonate a thread with a user in ASP.NET, you can do that in any of the following ways based on your requirment.
     - Impersonate the IIS Authenticating user
     - Impersonate a Specific user for all the requests on all the pages of an
       ASP.NET application
     - Impersonate the Authenticating user whereever required within the code
     - Impersonate a Specific user whereever required within the code
    Impersonate the IIS Authenticating User
    To Impersonate the IIS Authenticating user on every request for every page
    in an
    ASP.NET application, you need to have an identity tag in the web.config file of this application and set its impersonate attribute to True.
       <identity impersonate="True" />
    Impersonate a Specific user for all the requests on all the pages of an ASP.NET application
    To impersonate a specific user for all the requests on all the pages of an ASP.NET application, you can specify that userName and password in the identity tag of the web.config file for that application as shown below.
       <identity impersonate="True" userName="accountname" password="password"
    Impersonate the Authenticating user whereever required within the code
    When you want to Impersonate the IIS authenticating user only during execution of a piece of code, you can use the following code to perform that. VB
       Dim impCtx as System.Security.Principal.WindowsImpersonationContext()
       impCtx =
       'Your code that runs under the security context of the IIS
    authenticating user goes here.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    Introduction This article explores the design of a cache system that can improve the performance of a web site or web application.  The assumption is that the web site has many more “read” operations than “write” operations (this is commonly the ca…
    If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    755 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

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now