Why is OpenSubKey() returning null on my 64-bit system?

Today i was debugging the code, it was written like this

 string _retValue = "";
            Microsoft.Win32.RegistryKey _rKey;
            Object _rKeyObject;
            string REG_KEY_PATH_PROFILE = "SOFTWARE\\Wow6432Node\\Mycompany\\e-business\\Platform\\profile\\";
                _rKey = Microsoft.Win32.Registry.LocalMachine;
                _rKeyObject = _rKey.OpenSubKey(REG_KEY_PATH_PROFILE).GetValue(keyName);
                _retValue = Convert.ToString(_rKeyObject);
                return _retValue;

It was returning null value every time, then i came to know i am building the application on 64 bit, To make the work around we can change project setup like this given below


Unable to access the IIS metabase


Today while working on one of my project, i was getting exception like given below.

Unable to access the IIS metabase.You do not have sufficient privilege to access IIS web sites on your machine


I found the two possible approach to fix this issue

1. Run the visual studio as “administrator Mode”

2. Permanently grant the IIS Metabase folder permissions to the current user.

First approach is straight forward, while for the second approach we have to go the given path


For this we have to do Win + E then Paste the given path in top address bar.

You will get the window like this


You click on “Continue” button. Now reload the project from Visual you will not get the above exception.

HTTP Error 403.14 – Forbidden The Web server is configured to not list the contents

While hosting the asp.net or asp.net MVC application on IIS, you might have faced this exception on browser
“HTTP Error 403.14 – Forbidden The Web server is configured to not list the contents”

To fix this issue, you might have to check the two possible setting in IIS

First: Make sure that the .NET Framework version value is v4.0.


For this you have to do like this

1. Open the Run dialog, type inetmgr and then click OK. This opens the IIS Manager.

2. In the left tree-view, locate the Sites node and find the Default Web Site node under it (or the name of the site where the error message appears).

3 Right-click the node and select Manage web site -> Advanced settings…. Note the name of the value Application pool. Close this dialog.

4. In the treeview to the left, locate and select the node Application pools.

5. In the list to the right, locate the Application pool with the same name as the one you noted in the web site settings. Right-click it and select Advanced settings

6. Make sure that the .NET Framework version value is v4.0. Click OK.

Second: Asp.net is not registered on Server

For this you have to go to
>>Visual Studio
>> Then Visual Studio Tool >> Visual Studio Command Prompt

>> Then Go to the given path C:\Windows\Microsoft.NET\Framework64\v4.0.30319
>> Then run the aspnet_regiis.exe -ir


Login failed for user ‘IIS APPPOOL\ASP.NET v4.0’


I was getting this error while hosting my project in IIS. I was not able to connect the database. Then i fix this error like this

Step 1: Go to Application Pools

Step2 : Select the application pool which one you have used

Step 3: Change the “identity” to LocalSystem


I hope this will help to somebody.

Microsoft JScript runtime error: Invalid origin: http://static.ak.facebook.com


Recently i was facing this problem, while working with Visual Studio 2010. I created simple project without any javascript file. But while doing compilation, i started to get this error,


“Microsoft JScript runtime error: Invalid origin: http://static.ak.facebook.com”


Then i became surprise, from where this error is coming, i donot have included any script file. Then i observe there ask me toobar on My IE 10 browser.

Then i disable that toolbar from browser. After that i didnot get this error. You can also fix this issue after uninstalling ask me toolbar from control panel.

I hope this will help to some one.

Window media player is not working on firefox.


In my recent project, i had used window media player to play some mp3 file then it was working fine with IE but it was not working with firefox.

Then I fixed the problem using this code. I hope it will help to other also

This code was not supporting on wordpress so i have attached in .doc file

Window Media Player Code

stack overflow at line 0 error in asp.net project

I was getting stack overflow at line 0 on my asp.net page. Generally this error will come if we will keep

<pages smartNavigation="true" maintainScrollPositionOnPostBack="true" />

in web config or asp.net page header part.

You can also disable that error by “Disable Script Debugging” option inside of Internet Explorer. If you know any other root cause of this issue then let me know.