Jump to content
Xtreme .Net Talk

aspreg_iis -pa "NT Authority\Network Service" + Windows Server 2000


Recommended Posts

Posted

I am using a windows 2000 server on which I am deploying a simple web application with some of the web.config elements encrypted.

 

I have generated a machine level key container using the following:

Aspnet_regiis �pc �CustomKeys� �exp

 

I have exported the key to my server using:

Aspnet_regiis �px �CustomKeys� �C:\temp\CustomKeys.xml� �pri

and

Aspnet_regiis �pi �CustomKeys� �C:\temp\CustomKeys.xml�

 

I have granted access to the Custom Key Store to the ASPNET account using:

Aspnet_regiis �pa �CustomKeys� �ASPNET�

 

However, when I try to do the same for the "NT Authority\Network Service" account I am prevented from doing so.

 

Apparently "NT Authority\Network Service" does not exist for Windows 2000 server. What should I be using instead?

 

Mike55.

A Client refers to the person who incurs the development cost.

A Customer refers to the person that pays to use the product.

------

My software never has bugs. It just develops random features. (Mosabama vbforums.com)

Posted
I think that "Network Service" should do it. I'm not sure that you need the "NT Authority" bit at the front.

~Nate�

___________________________________________

Please use the [vb]/[cs] tags on posted code.

Please post solutions you find somewhere else.

Follow me on Twitter here.

Posted

Thanks for the reply Nate. "Network Service" is only available from Windows 2003 server onwards. I also tried to register the account using the aspnet_regiis -ga "Network Service" command but got back an error message telling me that the account does not exist.

 

Mike55.

A Client refers to the person who incurs the development cost.

A Customer refers to the person that pays to use the product.

------

My software never has bugs. It just develops random features. (Mosabama vbforums.com)

Posted

Getting a Parser Error Message: Failed to decrypt using provider 'Rawhide'. Error message from the provider: The RSA key container could not be opened.

 

Mike55.

A Client refers to the person who incurs the development cost.

A Customer refers to the person that pays to use the product.

------

My software never has bugs. It just develops random features. (Mosabama vbforums.com)

Posted

Are you doing any impersonation in your Web.config file?

 

Do you have annoynmouse access setup for your site? if so, does that have use a specific account (like domain\specialuser)?

 

If so, you may need to aspreg those accounts as well.

~Nate�

___________________________________________

Please use the [vb]/[cs] tags on posted code.

Please post solutions you find somewhere else.

Follow me on Twitter here.

Posted

Allowed both of those accounts. I believe that what I am trying to do is not allowed by windows 2000 server. Trying to get access to a 2003 server and I am going to repeat the same steps and see from there.

 

Mike55.

A Client refers to the person who incurs the development cost.

A Customer refers to the person that pays to use the product.

------

My software never has bugs. It just develops random features. (Mosabama vbforums.com)

Posted

Solved the problem, it would appear that I must register the name of the "CustomKey" rather than the Key name.

 

Mike55.

A Client refers to the person who incurs the development cost.

A Customer refers to the person that pays to use the product.

------

My software never has bugs. It just develops random features. (Mosabama vbforums.com)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...