Problem with SN.Exe

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

Every time I try to generate a string name key pair on my machine. I keep
getting this error "Failed to generate a strong name key pair -- Access is
denied.". I have tried giving persmission to the folders, where I needed the
key, but it still keeps throwing the error.

I am running Visual Studio .NET 2003, on a Windows XP Pro machine. I
recently updated my OS with Windows XP SP2. Could that be the problem.
 
Make sure that the account you are running from has access to the registry key

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography

as sn -k reads the MachineGuid value

Regards

Richard Blewett - DevelopMentor

http://staff.develop.com/richardb/weblog

nntp://news.microsoft.com/microsoft.public.dotnet.framework/<[email protected]>

Hi,

Every time I try to generate a string name key pair on my machine. I keep
getting this error "Failed to generate a strong name key pair -- Access is
denied.". I have tried giving persmission to the folders, where I needed the
key, but it still keeps throwing the error.

I am running Visual Studio .NET 2003, on a Windows XP Pro machine. I
recently updated my OS with Windows XP SP2. Could that be the problem.
--
Regards,
Matt.

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.766 / Virus Database: 513 - Release Date: 17/09/2004



[microsoft.public.dotnet.framework]
 
Hi Richard,

Thanks for the prompt response. But, I think the problem is not with
security, as I am running it as an administrator. I however tried setting the
permissions and even then, it did not work. It gave me the same message.

Would installing any of these cause a problem.

1. WSE 1.0.
2. WSE 2.0 SP1.
3. Microsoft Enterprise Instrumentation.

Apart from Windows XP SP2 and some critical patches, these are the only
tools I installed, before which it was working.

Regards,
Matt.
 
Was this working after you installed XP SP2 and before installing the rest
of those? I am wondering if the tightening security of SP2 has affected you.

Anyway, You can get regmon.exe (and while you are at it, filemon.exe) from
www.sysinternals.com and run them to see what access is failing.

I think you can also use auditing to get similar information but recently
auditing information has gone for ****s.


--
Girish Bharadwaj
http://msmvps.com/gbvb
Matt said:
Hi Richard,

Thanks for the prompt response. But, I think the problem is not with
security, as I am running it as an administrator. I however tried setting the
permissions and even then, it did not work. It gave me the same message.

Would installing any of these cause a problem.

1. WSE 1.0.
2. WSE 2.0 SP1.
3. Microsoft Enterprise Instrumentation.

Apart from Windows XP SP2 and some critical patches, these are the only
tools I installed, before which it was working.

Regards,
Matt.

Richard Blewett said:
Make sure that the account you are running from has access to the registry key

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography

as sn -k reads the MachineGuid value

Regards

Richard Blewett - DevelopMentor

http://staff.develop.com/richardb/weblog
nntp://news.microsoft.com/microsoft.public.dotnet.framework/ said:
Hi,

Every time I try to generate a string name key pair on my machine. I keep
getting this error "Failed to generate a strong name key pair -- Access is
denied.". I have tried giving persmission to the folders, where I needed the
key, but it still keeps throwing the error.

I am running Visual Studio .NET 2003, on a Windows XP Pro machine. I
recently updated my OS with Windows XP SP2. Could that be the problem.
--
Regards,
Matt.

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.766 / Virus Database: 513 - Release Date: 17/09/2004



[microsoft.public.dotnet.framework]
 
Turn on auditing of object access failures - then you should be able to see what was attempting to access what resource when it failed

Regards

Richard Blewett - DevelopMentor

http://staff.develop.com/richardb/weblog

nntp://news.microsoft.com/microsoft.public.dotnet.framework/<[email protected]>

Hi Richard,

Thanks for the prompt response. But, I think the problem is not with
security, as I am running it as an administrator. I however tried setting the
permissions and even then, it did not work. It gave me the same message.

Would installing any of these cause a problem.

1. WSE 1.0.
2. WSE 2.0 SP1.
3. Microsoft Enterprise Instrumentation.

Apart from Windows XP SP2 and some critical patches, these are the only
tools I installed, before which it was working.

Regards,
Matt.

Richard Blewett said:
Make sure that the account you are running from has access to the registry key

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography

as sn -k reads the MachineGuid value

Regards

Richard Blewett - DevelopMentor

http://staff.develop.com/richardb/weblog

nntp://news.microsoft.com/microsoft.public.dotnet.framework/<[email protected]>

Hi,

Every time I try to generate a string name key pair on my machine. I keep
getting this error "Failed to generate a strong name key pair -- Access is
denied.". I have tried giving persmission to the folders, where I needed the
key, but it still keeps throwing the error.

I am running Visual Studio .NET 2003, on a Windows XP Pro machine. I
recently updated my OS with Windows XP SP2. Could that be the problem.
--
Regards,
Matt.

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.766 / Virus Database: 513 - Release Date: 17/09/2004



[microsoft.public.dotnet.framework]

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.766 / Virus Database: 513 - Release Date: 17/09/2004



[microsoft.public.dotnet.framework]
 
Hi Girish,

I had both Regmon.exe and filemon.exe running. I also audited both success
and failures of object access. In both the cases they displayed mostly as
success.

Regmon displayed these keys as NOT FOUND
OpenKey HKLM\Software\Microsoft\Cryptography\MachineKeys\SN[0000155C]
OpenKey HKLM\Software\Microsoft\Cryptography\Offload

Filemon displayed these files as NOT FOUND
OPEN C:\LOGS\URLMON.DLL FILE NOT FOUND Options: Open Access: All
OPEN C:\LOGS\rsaenh.dll FILE NOT FOUND Options: Open Access: All

I ran sn.exe from withing C:\LOGS. C:\LOGS - Has FullControl permission for
Everyone

These file dont exists in C:\LOGS; However these files are available in
C:\WINNT\System32.
I even checked the Environment Variables (PATH) to see if C:\WINNT\System32
was mapped. It was.

The Audit Log for Object Access Showed Success for everything. No Failures
at all.

For URLMON.DLL, rsaenh.dll and sn.exe - I have given Full Control to
Everyone and Set Audting for Everone for Success and Failures.

Still no luck. Same error.

Regards,
Matt.

Girish bharadwaj said:
Was this working after you installed XP SP2 and before installing the rest
of those? I am wondering if the tightening security of SP2 has affected you.

Anyway, You can get regmon.exe (and while you are at it, filemon.exe) from
www.sysinternals.com and run them to see what access is failing.

I think you can also use auditing to get similar information but recently
auditing information has gone for ****s.


--
Girish Bharadwaj
http://msmvps.com/gbvb
Matt said:
Hi Richard,

Thanks for the prompt response. But, I think the problem is not with
security, as I am running it as an administrator. I however tried setting the
permissions and even then, it did not work. It gave me the same message.

Would installing any of these cause a problem.

1. WSE 1.0.
2. WSE 2.0 SP1.
3. Microsoft Enterprise Instrumentation.

Apart from Windows XP SP2 and some critical patches, these are the only
tools I installed, before which it was working.

Regards,
Matt.

Richard Blewett said:
Make sure that the account you are running from has access to the registry key

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography

as sn -k reads the MachineGuid value

Regards

Richard Blewett - DevelopMentor

http://staff.develop.com/richardb/weblog
nntp://news.microsoft.com/microsoft.public.dotnet.framework/ said:
Hi,

Every time I try to generate a string name key pair on my machine. I keep
getting this error "Failed to generate a strong name key pair -- Access is
denied.". I have tried giving persmission to the folders, where I needed the
key, but it still keeps throwing the error.

I am running Visual Studio .NET 2003, on a Windows XP Pro machine. I
recently updated my OS with Windows XP SP2. Could that be the problem.
--
Regards,
Matt.

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.766 / Virus Database: 513 - Release Date: 17/09/2004



[microsoft.public.dotnet.framework]
 
Hi Richard,

Please look into my response for what Girish had said. I am still facing the
problem. Really appreciate all the help.

Thanks & Regards,
Matt.

Richard Blewett said:
Turn on auditing of object access failures - then you should be able to see what was attempting to access what resource when it failed

Regards

Richard Blewett - DevelopMentor

http://staff.develop.com/richardb/weblog

nntp://news.microsoft.com/microsoft.public.dotnet.framework/<[email protected]>

Hi Richard,

Thanks for the prompt response. But, I think the problem is not with
security, as I am running it as an administrator. I however tried setting the
permissions and even then, it did not work. It gave me the same message.

Would installing any of these cause a problem.

1. WSE 1.0.
2. WSE 2.0 SP1.
3. Microsoft Enterprise Instrumentation.

Apart from Windows XP SP2 and some critical patches, these are the only
tools I installed, before which it was working.

Regards,
Matt.

Richard Blewett said:
Make sure that the account you are running from has access to the registry key

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography

as sn -k reads the MachineGuid value

Regards

Richard Blewett - DevelopMentor

http://staff.develop.com/richardb/weblog

nntp://news.microsoft.com/microsoft.public.dotnet.framework/<[email protected]>

Hi,

Every time I try to generate a string name key pair on my machine. I keep
getting this error "Failed to generate a strong name key pair -- Access is
denied.". I have tried giving persmission to the folders, where I needed the
key, but it still keeps throwing the error.

I am running Visual Studio .NET 2003, on a Windows XP Pro machine. I
recently updated my OS with Windows XP SP2. Could that be the problem.
--
Regards,
Matt.

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.766 / Virus Database: 513 - Release Date: 17/09/2004



[microsoft.public.dotnet.framework]

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.766 / Virus Database: 513 - Release Date: 17/09/2004



[microsoft.public.dotnet.framework]
 
Can you try sn -m n?
:Specifies whether key containers are computer specific, or user specific.
If you specify y, key containers are computer specific. If you specify n,
key containers are user specific. If neither y nor n is specified, this
option displays the current setting.
Then you can do the sn -k

--
Girish Bharadwaj
http://msmvps.com/gbvb
Matt said:
Hi Girish,

I had both Regmon.exe and filemon.exe running. I also audited both success
and failures of object access. In both the cases they displayed mostly as
success.

Regmon displayed these keys as NOT FOUND
OpenKey HKLM\Software\Microsoft\Cryptography\MachineKeys\SN[0000155C]
OpenKey HKLM\Software\Microsoft\Cryptography\Offload

Filemon displayed these files as NOT FOUND
OPEN C:\LOGS\URLMON.DLL FILE NOT FOUND Options: Open Access: All
OPEN C:\LOGS\rsaenh.dll FILE NOT FOUND Options: Open Access: All

I ran sn.exe from withing C:\LOGS. C:\LOGS - Has FullControl permission for
Everyone

These file dont exists in C:\LOGS; However these files are available in
C:\WINNT\System32.
I even checked the Environment Variables (PATH) to see if C:\WINNT\System32
was mapped. It was.

The Audit Log for Object Access Showed Success for everything. No Failures
at all.

For URLMON.DLL, rsaenh.dll and sn.exe - I have given Full Control to
Everyone and Set Audting for Everone for Success and Failures.

Still no luck. Same error.

Regards,
Matt.

Girish bharadwaj said:
Was this working after you installed XP SP2 and before installing the rest
of those? I am wondering if the tightening security of SP2 has affected you.

Anyway, You can get regmon.exe (and while you are at it, filemon.exe) from
www.sysinternals.com and run them to see what access is failing.

I think you can also use auditing to get similar information but recently
auditing information has gone for ****s.


--
Girish Bharadwaj
http://msmvps.com/gbvb
Matt said:
Hi Richard,

Thanks for the prompt response. But, I think the problem is not with
security, as I am running it as an administrator. I however tried
setting
the
permissions and even then, it did not work. It gave me the same message.

Would installing any of these cause a problem.

1. WSE 1.0.
2. WSE 2.0 SP1.
3. Microsoft Enterprise Instrumentation.

Apart from Windows XP SP2 and some critical patches, these are the only
tools I installed, before which it was working.

Regards,
Matt.

:

Make sure that the account you are running from has access to the registry key

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography

as sn -k reads the MachineGuid value

Regards

Richard Blewett - DevelopMentor

http://staff.develop.com/richardb/weblog
nntp://news.microsoft.com/microsoft.public.dotnet.framework/ said:
Hi,

Every time I try to generate a string name key pair on my machine.
I
keep
getting this error "Failed to generate a strong name key pair --
Access
is
denied.". I have tried giving persmission to the folders, where I needed the
key, but it still keeps throwing the error.

I am running Visual Studio .NET 2003, on a Windows XP Pro machine. I
recently updated my OS with Windows XP SP2. Could that be the problem.
--
Regards,
Matt.

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.766 / Virus Database: 513 - Release Date: 17/09/2004



[microsoft.public.dotnet.framework]
 
Hi Girish,

It worked. Thanks a lot. By the way is the default setting Machine or User
based?

Regards,
Matt.

Girish Bharadwaj said:
Can you try sn -m n?
:Specifies whether key containers are computer specific, or user specific.
If you specify y, key containers are computer specific. If you specify n,
key containers are user specific. If neither y nor n is specified, this
option displays the current setting.
Then you can do the sn -k

--
Girish Bharadwaj
http://msmvps.com/gbvb
Matt said:
Hi Girish,

I had both Regmon.exe and filemon.exe running. I also audited both success
and failures of object access. In both the cases they displayed mostly as
success.

Regmon displayed these keys as NOT FOUND
OpenKey HKLM\Software\Microsoft\Cryptography\MachineKeys\SN[0000155C]
OpenKey HKLM\Software\Microsoft\Cryptography\Offload

Filemon displayed these files as NOT FOUND
OPEN C:\LOGS\URLMON.DLL FILE NOT FOUND Options: Open Access: All
OPEN C:\LOGS\rsaenh.dll FILE NOT FOUND Options: Open Access: All

I ran sn.exe from withing C:\LOGS. C:\LOGS - Has FullControl permission for
Everyone

These file dont exists in C:\LOGS; However these files are available in
C:\WINNT\System32.
I even checked the Environment Variables (PATH) to see if C:\WINNT\System32
was mapped. It was.

The Audit Log for Object Access Showed Success for everything. No Failures
at all.

For URLMON.DLL, rsaenh.dll and sn.exe - I have given Full Control to
Everyone and Set Audting for Everone for Success and Failures.

Still no luck. Same error.

Regards,
Matt.

Girish bharadwaj said:
Was this working after you installed XP SP2 and before installing the rest
of those? I am wondering if the tightening security of SP2 has affected you.

Anyway, You can get regmon.exe (and while you are at it, filemon.exe) from
www.sysinternals.com and run them to see what access is failing.

I think you can also use auditing to get similar information but recently
auditing information has gone for ****s.


--
Girish Bharadwaj
http://msmvps.com/gbvb
Hi Richard,

Thanks for the prompt response. But, I think the problem is not with
security, as I am running it as an administrator. I however tried setting
the
permissions and even then, it did not work. It gave me the same message.

Would installing any of these cause a problem.

1. WSE 1.0.
2. WSE 2.0 SP1.
3. Microsoft Enterprise Instrumentation.

Apart from Windows XP SP2 and some critical patches, these are the only
tools I installed, before which it was working.

Regards,
Matt.

:

Make sure that the account you are running from has access to the
registry key

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography

as sn -k reads the MachineGuid value

Regards

Richard Blewett - DevelopMentor

http://staff.develop.com/richardb/weblog
nntp://news.microsoft.com/microsoft.public.dotnet.framework/ said:
Hi,

Every time I try to generate a string name key pair on my machine. I
keep
getting this error "Failed to generate a strong name key pair -- Access
is
denied.". I have tried giving persmission to the folders, where I
needed the
key, but it still keeps throwing the error.

I am running Visual Studio .NET 2003, on a Windows XP Pro machine. I
recently updated my OS with Windows XP SP2. Could that be the problem.
--
Regards,
Matt.

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.766 / Virus Database: 513 - Release Date: 17/09/2004



[microsoft.public.dotnet.framework]
 
i believe its machine container.

--
Girish Bharadwaj
http://msmvps.com/gbvb
Matt said:
Hi Girish,

It worked. Thanks a lot. By the way is the default setting Machine or User
based?

Regards,
Matt.

Girish Bharadwaj said:
Can you try sn -m n?
:Specifies whether key containers are computer specific, or user specific.
If you specify y, key containers are computer specific. If you specify n,
key containers are user specific. If neither y nor n is specified, this
option displays the current setting.
Then you can do the sn -k

--
Girish Bharadwaj
http://msmvps.com/gbvb
Matt said:
Hi Girish,

I had both Regmon.exe and filemon.exe running. I also audited both success
and failures of object access. In both the cases they displayed mostly as
success.

Regmon displayed these keys as NOT FOUND
OpenKey HKLM\Software\Microsoft\Cryptography\MachineKeys\SN[0000155C]
OpenKey HKLM\Software\Microsoft\Cryptography\Offload

Filemon displayed these files as NOT FOUND
OPEN C:\LOGS\URLMON.DLL FILE NOT FOUND Options: Open Access: All
OPEN C:\LOGS\rsaenh.dll FILE NOT FOUND Options: Open Access: All

I ran sn.exe from withing C:\LOGS. C:\LOGS - Has FullControl
permission
for
Everyone

These file dont exists in C:\LOGS; However these files are available in
C:\WINNT\System32.
I even checked the Environment Variables (PATH) to see if C:\WINNT\System32
was mapped. It was.

The Audit Log for Object Access Showed Success for everything. No Failures
at all.

For URLMON.DLL, rsaenh.dll and sn.exe - I have given Full Control to
Everyone and Set Audting for Everone for Success and Failures.

Still no luck. Same error.

Regards,
Matt.

:

Was this working after you installed XP SP2 and before installing
the
rest
of those? I am wondering if the tightening security of SP2 has
affected
you.
Anyway, You can get regmon.exe (and while you are at it,
filemon.exe)
from
www.sysinternals.com and run them to see what access is failing.

I think you can also use auditing to get similar information but recently
auditing information has gone for ****s.


--
Girish Bharadwaj
http://msmvps.com/gbvb
Hi Richard,

Thanks for the prompt response. But, I think the problem is not with
security, as I am running it as an administrator. I however tried setting
the
permissions and even then, it did not work. It gave me the same message.

Would installing any of these cause a problem.

1. WSE 1.0.
2. WSE 2.0 SP1.
3. Microsoft Enterprise Instrumentation.

Apart from Windows XP SP2 and some critical patches, these are the only
tools I installed, before which it was working.

Regards,
Matt.

:

Make sure that the account you are running from has access to the
registry key

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography

as sn -k reads the MachineGuid value

Regards

Richard Blewett - DevelopMentor

http://staff.develop.com/richardb/weblog
nntp://news.microsoft.com/microsoft.public.dotnet.framework/ said:
Hi,

Every time I try to generate a string name key pair on my
machine.
I
keep
getting this error "Failed to generate a strong name key
pair --
Access
is
denied.". I have tried giving persmission to the folders, where I
needed the
key, but it still keeps throwing the error.

I am running Visual Studio .NET 2003, on a Windows XP Pro
machine.
I
recently updated my OS with Windows XP SP2. Could that be the problem.
--
Regards,
Matt.

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.766 / Virus Database: 513 - Release Date: 17/09/2004



[microsoft.public.dotnet.framework]
 
Back
Top