ASP.NET Event Error 1334 Please help

Windows 2012 R2 Standard
IIs 8.5
ASP Net

I keep getting this Event Error 1334 Keyset does not exist.

We cleared one the other day and now a new one popped out.

You need to find the thumb print and then run calcs on that folder.  I know the process

My problem is how to find which certificate this error is complaining about.

You need to go to the certificate to get the thumb print

Just need to know how to figure out which certificate it is


Here is the error

Log Name:      Application
Source:        ASP.NET 2.0.50727.0
Date:          7/7/2015 1:03:04 AM
Event ID:      1334
Task Category: None
Level:         Error
Keywords:      Classic
User:          N/A
Computer:      SERV013.FQDN.com
Description:
An unhandled exception occurred and the process was terminated.

Application ID: /LM/W3SVC/1036342642/ROOT

Process ID: 9828

Exception: System.Security.Cryptography.CryptographicException

Message: Keyset does not exist


StackTrace:    at System.Security.Cryptography.CryptographicException.ThrowCryptogaphicException(Int32 hr)
   at System.Security.Cryptography.SafeProvHandle._FreeCSP(IntPtr pProvCtx)
   at System.Security.Cryptography.SafeProvHandle.ReleaseHandle()
   at System.Runtime.InteropServices.SafeHandle.InternalFinalize()
   at System.Runtime.InteropServices.SafeHandle.Dispose(Boolean disposing)
   at System.Runtime.InteropServices.SafeHandle.Finalize()
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="ASP.NET 2.0.50727.0" />
    <EventID Qualifiers="49152">1334</EventID>
    <Level>2</Level>
    <Task>0</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2015-07-07T05:03:04.000000000Z" />
    <EventRecordID>29664</EventRecordID>
    <Channel>Application</Channel>
    <Computer>SERV013.FQDN.com</Computer>
    <Security />
  </System>
  <EventData>
    <Data>An unhandled exception occurred and the process was terminated.

Application ID: /LM/W3SVC/1036342642/ROOT

Process ID: 9828

Exception: System.Security.Cryptography.CryptographicException

Message: Keyset does not exist


StackTrace:    at System.Security.Cryptography.CryptographicException.ThrowCryptogaphicException(Int32 hr)
   at System.Security.Cryptography.SafeProvHandle._FreeCSP(IntPtr pProvCtx)
   at System.Security.Cryptography.SafeProvHandle.ReleaseHandle()
   at System.Runtime.InteropServices.SafeHandle.InternalFinalize()
   at System.Runtime.InteropServices.SafeHandle.Dispose(Boolean disposing)
   at System.Runtime.InteropServices.SafeHandle.Finalize()</Data>
  </EventData>
</Event>



Thanks

Tom
LVL 23
Thomas GrassiSystems AdministratorAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Randy DownsOWNERCommented:
The original problem was found here. Can we repeat what you did last time to find the certificate in question? If so is it the same certificate problem you cleared?
Thomas GrassiSystems AdministratorAuthor Commented:
Randy

I do not believe it is the same if it was then the error would not appear again. and it did.

The error message has different

Application ID: /LM/W3SVC/1036342642/ROOT
vs the original one
Application ID: DefaultDomain


Thoughts?
Randy DownsOWNERCommented:
This looks the same to me. The previous problem showed "Application ID: DefaultDomain" which is pretty vague.

Exception: System.Security.Cryptography.CryptographicException

Message: Keyset does not exist
Protecting & Securing Your Critical Data

Considering 93 percent of companies file for bankruptcy within 12 months of a disaster that blocked access to their data for 10 days or more, planning for the worst is just smart business. Learn how Acronis Backup integrates security at every stage

Thomas GrassiSystems AdministratorAuthor Commented:
Randy

Ok I will agree that it is the same certificate.

but now the question is what accounts do I need to add to the permissions for the folder?

I already have

SYSTEM  Full
SPFARM Full that is a sharepoint 2010 farm account
Adminisrators (SERV013\Adminisrtators) Full
IIS_IUSRS (SERV013\IIS_USRS) Full
IUSR Full
TrustedInstaller Full
Network Service Full
Domain Admins (MYDOM\Domain Admins) Full


Thoughts
Randy DownsOWNERCommented:
What user is hosting the service?

This is from bran's previous post.

You are running the tool finding a certificate with subject name as "localhost" which I does not exist. Does the currentuser has those certificate in the certstore
Start MMC and add the Certificate Snap-in, selecting the right container owner for your SSL certificate. Find the certificate (it's probably in the personal store), right click on it and choose All Tasks > Manage Private key. Grant read access to the private key to the user hosting your service.
Thomas GrassiSystems AdministratorAuthor Commented:
Randy

That is the big question of the day what account ?

Where do I look?
Randy DownsOWNERCommented:
What application is this "Application ID: /LM/W3SVC/1036342642/ROOT" ? Is it something new running on your server or newly updated?
Thomas GrassiSystems AdministratorAuthor Commented:
Randy

Good question

No new applications have been installed no updates have been applied I have one from today but not applied yet.

How do I find out the application Id for /LM/W3SVC/1036342642/ROOT" ?
Randy DownsOWNERCommented:
Check which sites are running in IIS. If it's only default then your application resides there. Do you have intranet (accessible only on LAN/WAN/VPN) like Sharepoint and/or host a company website (accessible via the web)?
Randy DownsOWNERCommented:
If you are unfamiliar with IIS this video may help. You don't need to add a website but rather see which one is causing you grief.
Thomas GrassiSystems AdministratorAuthor Commented:
Randy

I have a few sites under IIS 8.5

Default  port 80 internal and external hosted
Music    port 80  internal and external hosted
Sharepoint - 80 port 80 internal only
Sharepoint My sites port 80 internal only
Sharepoint Central Administration V4 port 29261 internal only
sharepoint Web services port 32843 internal only

Where do I look for that application ?
Randy DownsOWNERCommented:
look at the folders for something like " /LM/W3SVC/1036342642/ROOT". It's probably a virtual.
Thomas GrassiSystems AdministratorAuthor Commented:
Randy

Went thru all sub folders under wwwroot on the file system no luck

Then in IIS viewed all virtual directories for each site again no folder like /LM/W3SVC/1036342642/ROOT

We are on the right track i think but not sure where this realy is at this point
Randy DownsOWNERCommented:
How often do you get the error? If it's on a regular basis & you could shutdown some sites temporarily and isolate it. You may have to do that after hours or on the weekend.

I assume web server has been running without errors for a reasonable period of time until recently. That said something must have changed to start these errors. New PCs on the domain, new certificates?
Randy DownsOWNERCommented:
The folders don't have to be under wwwroot if it's using a virtual which is common. You have to look at the properties of the website to see where they are hosted.
Thomas GrassiSystems AdministratorAuthor Commented:
Randy

This error pops up randomly.

This started when I moved all my sites from iis 6 on windows 2003 server to iis 8.5 windows 2012 server

All computers are still the same

Only servers have been upgraded

The sites work around the clock no issues
Randy DownsOWNERCommented:
IIS 6 to IIS 8.5 is a big jump. I'm not surprised that here are hiccups.

Maybe this will help you locate the path of the offending application. You don't want to add an application but you can drill down to see the physical & virtual path of the applications.

Open Internet Information Services (IIS) Manager:
If you are using Windows Server 2012 or Windows Server 2012 R2:
On the taskbar, click Server Manager, click Tools, and then click Internet Information Services (IIS) Manager.

...

In the Connections pane, expand the server name, expand Sites, and then click the Web site to which you want to add an application.
In the Actions pane, click View Applications, and then click Add Application...

In the Add Application dialog box, at a minimum enter information in the Alias: and Physical path: text boxes, and then click OK.
Randy DownsOWNERCommented:
Maybe it's something like this. His fix was for Server 2008 & they were being prompted to logon.

Under IIS, all of these seems to be solved under the Authentication icon.

Edit Permissions: Make sure your ASP.NET account has permission. Mine was not originally added.
ASP.NET permission

Now go into the features of Authentication:

Authentication Features

Enable Anonymous Authentication with the IUSR:

Anonymous Authentication

Enable Windows Authentication, then Right-Click to set the Providers.

NTLM needs to be FIRST!

Windows Authentication

Next, check that under Advanced Settings... the Extended Protection is Accept and Enable Kernel-mode authentication is CHECKED:

Advanced Settings

Once I did this, I went back to my web application, clicked the Browse link, and logged in without having to provide my credentials again.
Thomas GrassiSystems AdministratorAuthor Commented:
Randy

Not having logon problems my authetication is ok.

I tried the other option above and found this folder under wwwroot "WSS"
under WSS in Virtual Directories
I went thru everyone no directory /LM/W3SVC/1036342642/ROOT

Wow this is hard
Randy DownsOWNERCommented:
The virtuals can reside on another drive. That's pretty common as wwwroot may have limited space. My idea is to trace teh application & see what users have permission to it and assign the same users to the certificate.

How did you migrate  from iis 6 to iis 8.5?
Thomas GrassiSystems AdministratorAuthor Commented:
Randy

1. All my web site files folders etc reside under wwwroot and no where else I have a large drive no pace issues.

2. I built the Windows 2012 Server then installed IIS 8.5 I then moved the files and folders from my IIS 6 windows 2003 server wwwroot folders to the New IIS 8.5 wwwroot folders then lots of setup webdav default page, long list  but site is working

3. Trace the application well what application? and then what certificate we are now back to my original question
How to we find that info out the error does not gives us any hint except for the application Id which i can not find anywhere

Very frustrating I am very puzzeled by this
Randy DownsOWNERCommented:
Trace the offending certificate the same way you cleared it before. How many certificates do you have?

Review the users of all the applications & see if any are missing from the offending certificate.
Thomas GrassiSystems AdministratorAuthor Commented:
Randy

When I go to MMC add Certificates Local Computer
Expand Certificate
Expand Personal
Expand Certificates   only two

Forefrontidentitymanager
WMSvc-SERV013                          this one I did last night

Not sure what you mean here

Review the users of all the applications & see if any are missing from the offending certificate.

Where? do you mean in IIS then select site then in right panel click on View Applications?
Randy DownsOWNERCommented:
I was thinking that a web developer may have added users to the application but you copied these over so there is no web developer in the loop. If Server 2003 files are still intact you may want to look at permissions on the sites on that side. How did you copy over the files? network, external drive, RDP? Did permissions remain intact?

I assume you also had to install Sharepoint so maybe all those folders were not on Server 2003.

I assume WMSvc-SERV013 certificate was the fix for the previous issue. If Server 2003 is still available you may want to look at certificates on that end.

You can see which users are assigned ot the site like this. (picture at bottom of article)

Maybe this will help with identifying user permissions.  In their case the application runs under the DefaultAppPool account & his problems were different.

I solved the problem by adding the privileges to the following account: IIS AppPool\MyApplicationPoolName e.g.  IIS AppPool\MyDomain.co.uk Within the security dialogue you and type this name and then press Check Names to resolve to the correct user identity that IIS is using for the site. Due to the cascading nature of permissions, everything else is taken care of (no need to mess about with IUSR or IIS_IUSRS).
Thomas GrassiSystems AdministratorAuthor Commented:
Randy

I am the Web Developer here also. No changes there.

The 2003 server is long gone nothing to compare to

Just made all the sites permissions the exact same
a few was missing on each

But when I was doing that I got another event id 1334
at same time I got event id 5011

Log Name:      System
Source:        Microsoft-Windows-WAS
Date:          7/7/2015 9:31:14 PM
Event ID:      5011
Task Category: None
Level:         Warning
Keywords:      Classic
User:          N/A
Computer:      SERV013.FQDN.com
Description:
A process serving application pool 'SharePoint - mysite.tgcsnet.com80' suffered a fatal communication error with the Windows Process Activation Service. The process id was '2452'. The data field contains the error number.
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="Microsoft-Windows-WAS" Guid="{524B5D04-133C-4A62-8362-64E8EDB9CE40}" EventSourceName="WAS" />
    <EventID Qualifiers="32768">5011</EventID>
    <Version>0</Version>
    <Level>3</Level>
    <Task>0</Task>
    <Opcode>0</Opcode>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2015-07-08T01:31:14.000000000Z" />
    <EventRecordID>29493</EventRecordID>
    <Correlation />
    <Execution ProcessID="0" ThreadID="0" />
    <Channel>System</Channel>
    <Computer>SERV013.FQDN.com</Computer>
    <Security />
  </System>
  <EventData>
    <Data Name="AppPoolID">SharePoint - mysite.tgcsnet.com80</Data>
    <Data Name="ProcessID">2452</Data>
    <Binary>6D000780</Binary>
  </EventData>
</Event>

Wondering if it was just because I made changes to the security settings

After the secutiry changes should I do an IISRESET /noforce ?

I do have updates to apply to the server which will require a restart


Thanks
Randy DownsOWNERCommented:
IISRESET /noforce should be safe enough. Will the updates impact IIS?
Thomas GrassiSystems AdministratorAuthor Commented:
The updates are for windows 2012 security fixes only

That's on the schedule for the am

Thanks
btanExec ConsultantCommented:
Pardon as I may have drilled into the exchanges hence only specific to this current post on that 5011 error. Do see the specific to Event ID 5011 wrt IIS Application Pool Availability
http://technet.microsoft.com/en-us/library/cc735271(WS.10).aspx

There is an old http://blogs.msdn.com/b/david.wang/archive/2005/08/29/howto-understand-and-diagnose-an-apppool-crash.aspx
Now that you have identified that your issue belongs to a crash, it is time to set up debugging traps so that you can catch the NEXT crash and diagnose it. Yes, you heard me - you cannot do anything about the crash that has already happened - and since you have no idea what it is, you CANNOT change any server settings to avoid it. So, the only reasonable thing you can do is to set up debugging monitors like IIS State or DebugDiag on the necessary processes running code that is crashing and then WAIT for the next crash. Hopefully, you can trigger the failure condition easily, to shorten this wait.

On this next crash, these tools will produce a stack trace log as well as memory dumps to allow debugging, and you want to either analyze the stack trace log yourself, pay someone to perform an analysis (for example, Microsoft PSS) or post to a newsgroup like microsoft.publit.inetserver.iis to see if anyone will do a free analysis. Only after analysis of the crash can you determine what is truly going wrong


Explanation of HTTPERR Log entries:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/http/http/types_of_errors_logged_by_the_http_server_api.asp 

Sounds like some sort of process recycling is kicking in to free up available physical memory.


the same approach works for IIS7. In fact, the same troubleshooting approach works for all versions of IIS for the past 15 years.

IIS7 just comes with new features like Failed Request Tracing which allows you to troubleshoot non-crashes, but for crashes/hangs, you still apply the same described approach because it is how you debug/troubleshoot issues in general on Windows.
It is usually better to diagnose the actual issue and not pattern match against many many possible distinct solutions. It is pretty tough to handle application crash problem is hard to be resolved at form, if this issue is urgent, you can open a case via Microsoft Support.
Thomas GrassiSystems AdministratorAuthor Commented:
BTan

I think the 5011 error is about sharepoint issue I am having with the mysite

I made a lot of security changes to all the sites last night and planning a server restart sometime soon to see if that resolves this over the next day or so.
Randy DownsOWNERCommented:
Do you have a backup of the sites prior to the security changes? The Sharepoint problem only occured after the changes, right?
Thomas GrassiSystems AdministratorAuthor Commented:
Randy

I believe the SharePoint error is related to another issue I have with that site working on that one now.

I backup every night.

All sites are working internally and externally still

Will restart this server most likely tomorrow out of town today.
Randy DownsOWNERCommented:
If the permissions change broke teh site you can restore from your backup.
Thomas GrassiSystems AdministratorAuthor Commented:
Randy

No the site was broken for sometime that issue is still open

It is a SharePoint thing

Thanks
Randy DownsOWNERCommented:
Sharepoint sites working at all? Perhaps the errors you have been getting are related to the Sharepoint sites.
Thomas GrassiSystems AdministratorAuthor Commented:
Randy

Only one SharePoint Site not working at this time

This site was working fine until the beginning end of last week

The event id 1334 has been going on for longer than that

if it is related then great but I don't get that lucky lol
btanExec ConsultantCommented:
I believe it is not just the certificate and account mapping to use of it as it is recurring. One key point is the migration over which I do see may be the root for hidden areas surfaced when running in the new platform assuming it is good and dandy as the old one.

The migration has to be re-visited in account, app, service and setup..if sharepoint is the key service then better to have a set check analyser to surface hidden issue otherwise we are chasing again to resolve bug ad-hoc and not solving it holistically. I am not sharepoint expert but minimally seeing this list in the MS blog can help in processes of migrate, troubleshooting and debugging in context
http://social.technet.microsoft.com/wiki/contents/articles/12438.community-best-practices-for-sharepoint-2013.aspx
Thomas GrassiSystems AdministratorAuthor Commented:
Ok guys

Restarted the server late last night and I am still getting this error 1334

Any thoughts?
Randy DownsOWNERCommented:
Debugging your Sharepoint issue may fix this error too. Are you utilizing all those sites? If not you could disab;e them and see if teh error comes back.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Thomas GrassiSystems AdministratorAuthor Commented:
Randy

Hello,

I think you are correct the SharePoint issues I am having may be related I have two open issue that no one has been able to figure out.

I can shutdown SharePoint over the weekend to see if the 1334 appears

I have two hosted sites that I can not bring down so we will be able to see which one may be causing this

I am betting on SharePoint at this time.

The problem with SharePoint support on this site is everyone that is helping me is in another time zone 7 hours or more.  No one with SharePoint expertize in this part of the world? that's strange
Don't get me wrong they all have be extremely helpful here but the time difference does not help resolve this quickly.

My users are getting frustrated with me having to shutdown restart the services.

I tell the to be patient but they need to get there work done too.

Lets see if the SharePoint guys can get my sharepoint sites working correctly.

One guy suggested I call Microsoft he thinks it may be a Bug my problem with that is when I call it costs $500 dollars and that way to much for a phone call. If they find a bug they do not charge you. but not going to take that chance since I believe it is a configuration issue


Hopefully the site being down over the weekend will shed some light.
Randy DownsOWNERCommented:
I suspect that Sharepoint did not migrate properly to your new server as btan suggested above. If you just copied files over, I am surprised it runs at all.

I am sure that there are a number of Sharepoint experts in this time zone but may be reluctant to get caught up in  thread that someone else is participating in. You might open an additional post referencing the existing one to see if someone chimes in. Post the thread link here & I will take a look.
Thomas GrassiSystems AdministratorAuthor Commented:
Randy

1. I did not copy over any SharePoint  files in was a fresh new install of SharePoint 2010
I only copied over my asp htm css etc files from my hosted sites and they are working great on IIS 8.5


Here are the other two sharepoint issues I have so far.

2.  http://www.experts-exchange.com/questions/28695390/Sharepoint-2010-Could-not-load-user-profile.html

3. http://www.experts-exchange.com/questions/28692479/Sharepoint-2010-Event-Id-10016-Everytime-A-document-is-Open-from-the-Shared-Documents-Site.html


Thanks
Randy DownsOWNERCommented:
Looks like you are getting a lot of help on the last thread (Sharepoint 2010 Event Id 10016).

Did you see this. It's 2003 to 2008 but I would envision something similar for 2012. I know you have it working with some errors but maybe something didn't make the transition & is causing you multiple problems.

here's another about 2007 to 2012.
Thomas GrassiSystems AdministratorAuthor Commented:
Randy

Thanks

But I did not migrate SharePoint it was a fresh new install
Randy DownsOWNERCommented:
I would think you would have to migrate the websites.
Thomas GrassiSystems AdministratorAuthor Commented:
Randy

No we decided to go fresh. Was the best way to clean up the system too.

Working on the one site not working now hopefully I get that working today but the guy is in a time zone which is late at night already

Will post results
btanExec ConsultantCommented:
pretty wide open as sharepoint error due to 1334 can be large. There is some past mention and maybe something we can see if relevant in your context while you are searching deeper
Upon closer inspection of the event log error id 1334, I saw that there was an access denied error when trying to read System.Web from the GAC.  Strange that IIS was having trouble reading a standard .Net assembly from the GAC.  A quick tour of the interwebs and a few hits pointed to possibly needing to run “aspnet_regiis –i” to register ASP.Net with IIS on the server

 running that command fixed my issues.  I was then able to successfully pull up the blank site.  In a random turn of fate we did have to re-install SharePoint in that farm as service packs and other upgrades had been deployed prematurely to the farm without proper testing.  We are still clearing up those items of the re-install, but early indications suggest we are in the clear with our deployments
http://geekswithblogs.net/bjackett/archive/2009/09/17/ldquoserver-application-unavailablerdquo-error-on-sharepoint-or-.net-web-application.aspx
Thomas GrassiSystems AdministratorAuthor Commented:
BTan

Ok ran that

C:\Windows>cd microsoft.net

C:\Windows\Microsoft.NET>cd framework64

C:\Windows\Microsoft.NET\Framework64>dir
 Volume in drive C has no label.
 Volume Serial Number is CEC8-4242

 Directory of C:\Windows\Microsoft.NET\Framework64

05/17/2015  11:34 AM    <DIR>          .
05/17/2015  11:34 AM    <DIR>          ..
08/22/2013  07:35 AM             8,192 sbscmp10.dll
08/22/2013  07:35 AM             8,192 sbscmp20_mscorwks.dll
08/22/2013  07:35 AM             8,192 sbscmp20_perfcounter.dll
08/22/2013  07:35 AM             8,192 SharedReg12.dll
05/17/2015  06:37 PM    <DIR>          v2.0.50727
05/17/2015  11:34 AM    <DIR>          v3.0
05/17/2015  11:34 AM    <DIR>          v3.5
07/09/2015  03:19 AM    <DIR>          v4.0.30319
               4 File(s)         32,768 bytes
               6 Dir(s)  216,720,392,192 bytes free

C:\Windows\Microsoft.NET\Framework64>cd v2.0.50727

C:\Windows\Microsoft.NET\Framework64\v2.0.50727>aspnet_regiis -i
Finished installing ASP.NET (2.0.50727).

C:\Windows\Microsoft.NET\Framework64\v2.0.50727>iisreset /noforce

Attempting stop...
Internet services successfully stopped
Attempting start...
Internet services successfully restarted

C:\Windows\Microsoft.NET\Framework64\v2.0.50727>

Got these two error right after the IISRESET

Log Name:      System
Source:        Microsoft-Windows-WAS
Date:          7/7/2015 9:31:14 PM
Event ID:      5011
Task Category: None
Level:         Warning
Keywords:      Classic
User:          N/A
Computer:      SERV013.FQDN.com
Description:
A process serving application pool 'SharePoint - mysite.tgcsnet.com80' suffered a fatal communication error with the Windows Process Activation Service. The process id was '2452'. The data field contains the error number.
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="Microsoft-Windows-WAS" Guid="{524B5D04-133C-4A62-8362-64E8EDB9CE40}" EventSourceName="WAS" />
    <EventID Qualifiers="32768">5011</EventID>
    <Version>0</Version>
    <Level>3</Level>
    <Task>0</Task>
    <Opcode>0</Opcode>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2015-07-08T01:31:14.000000000Z" />
    <EventRecordID>29493</EventRecordID>
    <Correlation />
    <Execution ProcessID="0" ThreadID="0" />
    <Channel>System</Channel>
    <Computer>SERV013.FQDN.com</Computer>
    <Security />
  </System>
  <EventData>
    <Data Name="AppPoolID">SharePoint - mysite.tgcsnet.com80</Data>
    <Data Name="ProcessID">2452</Data>
    <Binary>6D000780</Binary>
  </EventData>
</Event>

Log Name:      Application
Source:        ASP.NET 2.0.50727.0
Date:          7/9/2015 10:08:50 PM
Event ID:      1334
Task Category: None
Level:         Error
Keywords:      Classic
User:          N/A
Computer:      SERV013.FQDN.com
Description:
An unhandled exception occurred and the process was terminated.

Application ID: /LM/W3SVC/1036342642/ROOT

Process ID: 2924

Exception: System.Security.Cryptography.CryptographicException

Message: Keyset does not exist


StackTrace:    at System.Security.Cryptography.CryptographicException.ThrowCryptogaphicException(Int32 hr)
   at System.Security.Cryptography.SafeProvHandle._FreeCSP(IntPtr pProvCtx)
   at System.Security.Cryptography.SafeProvHandle.ReleaseHandle()
   at System.Runtime.InteropServices.SafeHandle.InternalFinalize()
   at System.Runtime.InteropServices.SafeHandle.Dispose(Boolean disposing)
   at System.Runtime.InteropServices.SafeHandle.Finalize()
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="ASP.NET 2.0.50727.0" />
    <EventID Qualifiers="49152">1334</EventID>
    <Level>2</Level>
    <Task>0</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2015-07-10T02:08:50.000000000Z" />
    <EventRecordID>30702</EventRecordID>
    <Channel>Application</Channel>
    <Computer>SERV013.FQDN.com</Computer>
    <Security />
  </System>
  <EventData>
    <Data>An unhandled exception occurred and the process was terminated.

Application ID: /LM/W3SVC/1036342642/ROOT

Process ID: 2924

Exception: System.Security.Cryptography.CryptographicException

Message: Keyset does not exist


StackTrace:    at System.Security.Cryptography.CryptographicException.ThrowCryptogaphicException(Int32 hr)
   at System.Security.Cryptography.SafeProvHandle._FreeCSP(IntPtr pProvCtx)
   at System.Security.Cryptography.SafeProvHandle.ReleaseHandle()
   at System.Runtime.InteropServices.SafeHandle.InternalFinalize()
   at System.Runtime.InteropServices.SafeHandle.Dispose(Boolean disposing)
   at System.Runtime.InteropServices.SafeHandle.Finalize()</Data>
  </EventData>
</Event>


We getting close?

Thoughts
btanExec ConsultantCommented:
Specific to first error 5011 - https://technet.microsoft.com/en-us/library/cc735271(v=ws.10).aspx, if it is specific to see a "Cannot start service W3SVC on Computer  '.'" then check out the tool to identify the process and resource it is trying to look out and access..http://www.hanselman.com/blog/FixedWindowsProcessActivationServiceWASIsStoppingBecauseItEncounteredAnError.aspx

Otherwise, I am suspecting it is closely related to this http://www.experts-exchange.com/Software/Server_Software/Web_Servers/Microsoft_IIS/Q_28433628.html though it leads to another EE
I did a bit of googling yesterday and found it was a problem with an MS update. I've sort of fixed it. I ran the command above, but this didn't work. I then ran the Sharepoint Products and Technologies software and it went through and seemed to fix it.

Found out I had to create a new site and manually add the content database back into the site.
It looks like still back to re-creating site and porting data over as you did the very early on when re-setup during the change into new server...
Thomas GrassiSystems AdministratorAuthor Commented:
BTan

WAS is started if it was not then the other sites on this same IIS would not be working.

Only one site is not working the sharepoint  mysite

Again I did not migrate any data for sharepoint it was a fresh install the mysite  in sharepoint is also new we never had that in the previous version.

Thanks for the articles but none apply to this.

I stopped that site in IIS going to see if the errors continue.

All night I was getting the 5011 ,5009 and 1334  for mysite  

Thoughts
Randy DownsOWNERCommented:
I thought the new errors (5011 ,5009) started with the security changes. If so a restore from your backup would resolve those.
Thomas GrassiSystems AdministratorAuthor Commented:
Randy

Good morning.

These errors all started after the SharePoint site Mysite.mydom.com stopped working, we do not know exactly when it stopped working but that is another open issue at this time.

The 1334 has been happening since moving all my sites to IIS 8.5

I stopped the mysite.mydom.com site on IIS 8.5 going to see what errors we get over the next 24 hours. Seems we get more in the evening and early morning most likely due to SharePoint scheduled tasks that run.

Since I have this issue with mysite I am looking to delete this from sharepoint which will remove it from iis  

Then re add it back.

Then will see.
btanExec ConsultantCommented:
support to remove, re-build and create the new site and then populate new data the database into it. This will clean up unnecessary noise due to any gaps  or overlooks, otherwise error will just keeping popping.  Clean start will be good. In fact, having 1334 being consistent popping up is good as well since in the pass it is "intermittent" and likely the scheduled tasks have a hand in this...do consider the rebuild. To identify the process using process explorer maybe good as stated in prev post first link - at least knowing who is causing it and resource it is trying to get and denied permission...
Thomas GrassiSystems AdministratorAuthor Commented:
After stopping the web site mysite in IIS 8.5 I have not seen any of the errors above 1224 5011 5009

Something must have happened to that site mysite in SharePoint.

Going to delete this site and recreate it next.

Will see if the errors reappear after that.

Thanks for all the help on this.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP.NET

From novice to tech pro — start learning today.