Microsoft Office Excel cannot access the file ‘C:\inetpub\wwwroot\Download\mahedee.xlsx’

I have deployed my application in a 64 bit OS and got the following error at the time of uploading an excel file.

Microsoft Office Excel cannot access the file ‘c:\inetpub\wwwroot\ Download \ mahedee.xlsx’.
There are several possible reasons:
• The file name or path does not exist.
• The file is being used by another program.
• The workbook you are trying to save has the same name as a currently open workbook.

Solution:
1. Create directory “C:\Windows\SysWOW64\config\systemprofile\Desktop ” (for 64 bit Windows) or “C:\Windows\System32\config\systemprofile\Desktop ” (for 32 bit Windows)
2. Set Full control permissions for directory Desktop (for example in Win7 & IIS 7 & DefaultAppPool set permissions for user “IIS AppPool\DefaultAppPool”)

Could not access network location %SystemDrive%\inetpub\wwwroot\”

I have found the message – Could not access network location %SystemDrive%\inetpub\wwwroot\” – When I was trying to install Infragistic NetAdvantage on Windows 7. To solve the problem do the followings.

1. Type “regedit” in the Run From Start Menu dialog box to open the “Registry Editor”.
2. Find the following key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\InetStp\PathWWWRoot
3. Change the value of this registry key from “%SystemDrive%\inetpub\wwwroot” or ” \inetpub\wwwroot\” to “C:\inetpub\wwwroot”. If your default website in IIS is instead stored in a different location, set the value of this registry key to that path instead.

Then install your software.