Click here to Skip to main content
15,905,504 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi guys,

I've been trying to encrypt a configuration section using the help of aspnet_regiis.exe

I never use aspnet_regiis.exe on this PC before, what happen is, when i type "aspnet_regiis.exe -?" or any other options for both v2.0 and v4.0, the console didn't display any message. Not even an error message.

But aspnet_regiis.exe can run for V1.1.

Anybody encounter this before? Could give me some advices?


--- Updates ---
After re-install IIS and .Net framework, I managed to run it on v2.0.50727.
But I still have the same problem with v4.0.30319.


Thanks,

Henri
Posted
Updated 27-May-12 22:51pm
v3
Comments
Jim Jos 28-May-12 2:38am    
one basic question? are you sure you have framework 2.0 and 4.0 installed?
fukchai2000 28-May-12 2:55am    
Yes, I'm sure.
When I go to my default website properties --> ASP.Net tab, I see v2.0 and v4.0 on the "ASP.Net Version" drop down list.

1 solution

It might be that you are trying to use V1.1 ASPNET_REGIIS.EXE for V2.0 or V4.0

A unique version of Aspnet_regiis.exe is included with each version of the .NET Framework. Since each version of the tool applies only to its associated version of the .NET Framework, be sure to use the appropriate version of the tool to configure an ASP.NET application.
Refer: MSDN: ASP.NET IIS Registration Tool (Aspnet_regiis.exe) [^]

Open the command prompt and move to needed version framework path. Once you are in the needed framework folder, you will find related exe, use it.
 
Share this answer
 
Comments
fukchai2000 28-May-12 3:53am    
I have moved to the respective version directory and it just show something like this:

C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319>aspnet_regiis.exe
C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319>aspnet_regiis.exe -i
C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319>aspnet_regiis.exe

I have uninstalled all .Net framework and re-install just .Net 4.0 and IIS. The result is still the same.

Thanks,
Henri

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900