1
Posted on Saturday, August 16, 2008 at 12:32 PM.

Most of the viruses disable Folder options on the machine to restrict user from showing hidden files. Even if you successfully remove the virus, the folder options ate still not enabled. Don't worry you can follow procedure given below to enable folder options once again.

Method 1 : Using Registry Editor.

Click Start Menu –> Run or else Press Win key+R to open run dialog box.

Now type Regedit to open Registry Editor.

Navigate to the following keys

HKEY_CURRENT_USER\Software\Microsoft\Windows\Current Version\Policies\Explorer
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\Current Version\Policies\Explorer

Look for the dword value NoFolderOptions either delete it or set its value to 1

Method 2 : Using .reg file

If you are not familiar with registry editing you can try following method

Open Notepad and copy paste following code in it.

REGEDIT4
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
"NoFolderOptions"=dword:0000000

[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
"NoFolderOptions"=dword:0000000

Now save file as abhishek.reg. NOTE : Dont save file as .txt but as .reg
Now double click the file and when system asks for permission to add information in registry click Yes

Add_information_in_Registry

Folder Options will be enabled.

0
Posted on Saturday, August 9, 2008 at 12:21 PM.

If you are encountering some error message like “Registry editing has been disabled by your administrator”

Disabled_Registry_editor

This means that your system has been probably infected by a virus called rontokbro@mm. Now to remove the virus you will have to scan your computer with a good antivirus software. But Even if you remove the virus the registry editing will not be enabled. To Enable Registry editing again follow the procedure given below

Method 1 : Using Run Command

Click Start Menu –> Run or else Press Win key+R to open run dialog box.
Now Type

REG add HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System /v DisableRegistryTools /t REG_DWORD /d 0 /f

add Press Enter. Registry Editing will be enabled.

Method 2 : Using .reg file

Sometimes these bloody viruses also disable Run functionality. In this case you can follow following method.
Open Notepad and copy paste following code in it.

REGEDIT4
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
"DisableRegistryTools"=dword:00000000

Now save file as abhishek.reg. NOTE : Dont save file as .txt but as .reg
Now double click the file and when system asks for permission to add information in registry click Yes

Add_information_in_Registry

Registry Editing will be enabled.

0
Posted on Saturday, August 2, 2008 at 10:56 PM.
One of the basic requirements for websites is to restrict access to certain pages. This can be easily done using new security API and Role Management features provided in ASP.NET 2.0.

But its really annoying from user point of view to click on a link in Menu or Tree View control and later discover that he don't save sufficient privilege to access that page. This problem can be easily solved using Security Trimming. Once you enable security trimming for your site map only those items are shown to user on which he has access.

So follow the step by step procedure given below to upgrade your website.

Step 1 : Define Access Rules for your website.

To define folder level access rules open ASP.NET configuration tool and click on security Tab. Now under "Access Rules" section click on Add Access Rule to start defining access rules for your website.




NOTE : Rules defined, follow a top-to-bottom approach i.e. First of all first rule is used then second and so on. For Example in the picture if some one wants to access pages in Administrator folder, First of all .net will check that this user belongs to Administrator Role or not, If user belongs to Administrator role access will be granted else second rule will be checked which says to block all the users. So User who are in Administrator Role will be able to access pages. 
To Define page Level Access Rules you will have to manually edit web.config. 
Add following section in web.config in configuration section.


Step 2: Enable Security Trimming for Site map.

Security Trimming can be enabled by overriding the default Sitemap provider defined in machine.config.Add following code in web.config



Step 3 : Specify roles in web.sitemap file (optional) 

By default only those links will be shown to user on which he has access however if you want to explicitly show a node to a user, this can also be done by specifying role attribute in web.sitemap. This option can also be used to over come the problem if Parent node don't have any URL associated with it.

Define roles in web.sitemap 

 

Example

Before enabling security trimming all links are shown to all users



After enabling security trimming only those links are shown which user can access.

Menu Structure for anonymous user

Menu Structure for Administrator