Error Getting Cassini to work on the local computer

When I try to get cassini to work on the local machine, I get the following error:

The current identity (NT AUTHORITY\LOCAL SERVICE) does not have write access to 'C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files

In fact, I created a BAT file to do the following

cd\
cd C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\
aspnet_regiis -ga "NT AUTHORITY\LOCAL SERVICE"

and wondered if there is a way to do the same thing programmatically in C #. The goal is to make this an installer without relying on the BAT file.

+3
source share
1 answer

If all else fails, you can call aspnet_regiisusing System.Diagnostics.Process .

+2
source

Source: https://habr.com/ru/post/1759421/


All Articles