Thursday, August 21, 2008

Error: Automation server can'nt create object

If you are getting error "Automation server can'nt create object" while creating activeX

var shell = new ActiveXObject("");

It could be due to security settings of your web browser. So to fix this error choose Internet Options from Tools menue and go to Security tab, now choose internet zone and click on Custom level...button. Now, in the security settings window go to "ActiveX controls and Plug-ins" section and enable "Initialize and script ActiveX controls not marked as safe for scripting" and "Run ActiveX controls and plug-ins" options. Enable same options for Local intranet zone also.

Now you should be able to create object.

How to create ASPNET Account

The aspnet_wp or ASP.NET Machine Account(ASPNET) is created when the Microsoft .Net Framework 1.1 is installed onto a Windows XP computer. And a registry key is created at following location:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\SpecialAccounts\UserList

You can aslo create it manually by creating a new key of DWORD called ASPNET and give it value 0 type Hexadec. under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows

It can also be created by issuing the following command from the run dialog (changing the framework version number as appropriate):
%systemroot%\Microsoft.NET\Framework\v1.1.4322\aspnet_regiis.exe -i

Although you can delete this account but than your applications may not function properly.

Error : Could not load file or assembly or one of its dependencies. Access is denied.

In case of web application if this error occurs, it means ASPNET account(for WindowsXP machine) or NETWORK SERVICE account (for Vista and Windows 2003 machine), does not have reqiured permissions(read/write) on the "%systemroot%\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files" folder.These are less privileged accounts used by web server to process the web request.
Actually aspnet_wp.exe worker process in IIS5 runs under ASPNET account to provide security against potential hacking.

It is shown in the user account list also whereas NETWORK SERVICE does not show up in it but rather is shown in the Security tab of the resources (like a folder) as a User Name like ASPNET that can be assigned permissoins. For that you need to do following steps:

1. right click on the folder, then
2. click on "Sharing and Security", then
3. click on "Security"
4. click on the "Add" button
5. click on "Advanced"
6. click on "Find Now"
7. Scroll down until you find "NETWORK SERVICE"

So follow above given steps go give permission(read/write) to ASPNET or NETWORK SERVICE account depending upon your OS on "%systemroot%\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files" folder.

Sunday, August 10, 2008

Error: "Access is Denied" during USB Driver Installation

First of all, make sure you are logged in with administrator account and have full permission on your machine. If you are still facing same problem then most probably the USBSTOR registry key has denied access to SYSTEM account.
So to give permission to USBSTOR registery key, open the regisrty editor and go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR
now right click on USBSTOR and choose permission from the shortcut menu, now check the SYSTEM account from the list for full permission also make sure that your user account has full permission, uncheck the deny checkbox if any and apply the changes.

Now you should be able to install the USB mass storage device driver.